File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ mkdirSync(distDir, { recursive: true });
1212
1313// Copy static files
1414console . log ( "Copying static files..." ) ;
15- copyFileSync ( join ( __dirname , "src/index.html " ) , join ( distDir , "index.html " ) ) ;
15+ copyFileSync ( join ( __dirname , "src/index.qmd " ) , join ( distDir , "index.qmd " ) ) ;
1616copyFileSync (
1717 join ( __dirname , "../pkg/ggsql_wasm_bg.wasm" ) ,
1818 join ( distDir , "ggsql_wasm_bg.wasm" ) ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ---
2+ pagetitle : " ggsql Playground"
3+ page-layout : custom
4+ section-divs : false
5+ toc : false
6+ lightbox : false
7+ repo-actions : false
8+ include-in-header :
9+ - text : |
10+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
11+ <link rel="stylesheet" href="bundle.css" />
12+ include-after-body :
13+ - text : |
14+ <script type="module" src="bundle.js"></script>
15+ ---
16+
17+ ``` {=html}
18+ <div id="app">
19+ <div id="mobile-toolbar">
20+ <select id="mobile-example-select">
21+ <option value="" disabled selected>Select an example…</option>
22+ </select>
23+ </div>
24+ <div id="sidebar">
25+ <div id="status" class="loading">Initializing...</div>
26+ <div class="sidebar-section">
27+ <h3>Tables</h3>
28+ <ul id="table-list" class="table-list"></ul>
29+ </div>
30+ <div class="sidebar-section">
31+ <h3>Upload</h3>
32+ <div class="file-input-wrapper">
33+ <input type="file" id="csv-upload" accept=".csv,.parquet" />
34+ <label for="csv-upload" class="file-input-label">Upload Data</label>
35+ </div>
36+ </div>
37+ <div class="sidebar-section">
38+ <div id="examples-list"></div>
39+ </div>
40+ </div>
41+ <div id="editor-container"></div>
42+ <div id="viz-container">
43+ <div id="viz-output"></div>
44+ </div>
45+ <div id="error-panel">
46+ <h3 class="panel-label">Problems</h3>
47+ <div id="error-messages"></div>
48+ </div>
49+ </div>
50+ ```
Original file line number Diff line number Diff line change @@ -16,26 +16,16 @@ body {
1616# app {
1717 display : grid;
1818 grid-template-columns : 200px 1fr 1fr ;
19- grid-template-rows : 40 px 1fr 150px ;
19+ grid-template-rows : 1fr 150px ;
2020 height : 100vh ;
2121 gap : 1px ;
22- background : # 94D2BD ;
23- }
24-
25- # header {
26- grid-column : 1 / -1 ;
27- background : # DEF1EB ;
28- padding : 0 16px ;
29- display : flex;
30- align-items : center;
31- justify-content : space-between;
32- border-bottom : 1px solid # 94D2BD ;
22+ background : # 005F73 ;
23+ border-top : 2px solid # 005F73 ;
24+ padding-top : 0 ;
3325}
3426
35- # header h1 {
36- font-size : 14px ;
37- font-weight : 700 ;
38- color : # 005F73 ;
27+ # app h3 {
28+ margin-top : 0 ;
3929}
4030
4131# status {
6050}
6151
6252# sidebar {
63- grid-row : 2 / 4 ;
53+ grid-row : 1 / 3 ;
6454 background : # DEF1EB ;
6555 border-right : 1px solid # 94D2BD ;
6656 overflow-y : auto;
@@ -284,17 +274,13 @@ body {
284274@media (max-width : 1024px ) {
285275 # app {
286276 grid-template-columns : 1fr ;
287- grid-template-rows : 40px auto 1fr 1fr 100px ;
288- }
289-
290- # header {
291- grid-row : 1 ;
277+ grid-template-rows : auto 1fr 1fr 100px ;
292278 }
293279
294280 # mobile-toolbar {
295281 display : flex;
296282 align-items : center;
297- grid-row : 2 ;
283+ grid-row : 1 ;
298284 grid-column : 1 ;
299285 background : # DEF1EB ;
300286 padding : 6px 16px ;
@@ -317,17 +303,17 @@ body {
317303 }
318304
319305 # viz-container {
320- grid-row : 3 ;
306+ grid-row : 2 ;
321307 grid-column : 1 ;
322308 }
323309
324310 # editor-container {
325- grid-row : 4 ;
311+ grid-row : 3 ;
326312 grid-column : 1 ;
327313 }
328314
329315 # error-panel {
330- grid-row : 5 ;
316+ grid-row : 4 ;
331317 grid-column : 1 ;
332318 }
333319}
You can’t perform that action at this time.
0 commit comments