Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ggsql-wasm/demo/src/quarto/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,13 @@ async function applyEditors(

const editorContainer = document.createElement("div");
editorContainer.className = "ggsql-editor-container";
const watermark = document.createElement("img");
watermark.className = "ggsql-editor-watermark";
watermark.src = SITE_ROOT + "assets/icon.svg";
watermark.alt = "";
watermark.setAttribute("aria-hidden", "true");
editorContainer.appendChild(watermark);

wrapper.appendChild(editorContainer);

const errorDisplay = document.createElement("div");
Expand Down
19 changes: 19 additions & 0 deletions ggsql-wasm/demo/src/quarto/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,28 @@
}

.ggsql-editor-container {
position: relative;
width: 100%;
}

.ggsql-editor-watermark {
position: absolute;
top: 4px;
right: 4px;
width: 32px;
height: 32px;
opacity: 0.5;
filter: grayscale(1);
pointer-events: none;
z-index: 10;
animation: ggsql-pulse 5s linear infinite;
}

@keyframes ggsql-pulse {
0%, 100% { transform: scale(0.95); }
50% { transform: scale(1.1); }
}

.ggsql-error-display {
padding: 6px 10px;
font-size: 12px;
Expand Down
Loading