davanstrien HF Staff commited on
Commit
5438efc
·
verified ·
1 Parent(s): 3b09353

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +70 -3
index.html CHANGED
@@ -5,6 +5,7 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>SQL Console Demos</title>
7
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap" rel="stylesheet" />
 
8
  <script src="https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/dist/duckdb-browser.js"></script>
9
  <style>
10
  body {
@@ -42,7 +43,48 @@
42
  margin: 0;
43
  }
44
 
45
- /* Rest of the styles remain the same */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  </style>
47
  </head>
48
  <body>
@@ -55,10 +97,35 @@
55
  <p>Loading total annotations...</p>
56
  </div>
57
 
58
- <!-- Rest of the HTML remains the same -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  </div>
60
 
61
- <script>
 
 
 
62
  async function initDuckDB() {
63
  try {
64
  // Get the bundle from JSDelivr
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <title>SQL Console Demos</title>
7
  <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap" rel="stylesheet" />
8
+ <script src="https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/dist/duckdb-browser-blocking.js"></script>
9
  <script src="https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/dist/duckdb-browser.js"></script>
10
  <style>
11
  body {
 
43
  margin: 0;
44
  }
45
 
46
+ .grid {
47
+ display: flex;
48
+ flex-direction: column;
49
+ gap: 2rem;
50
+ }
51
+
52
+ .card {
53
+ background: white;
54
+ border-radius: 12px;
55
+ box-shadow: 0 1px 3px rgba(0,0,0,0.1);
56
+ padding: 1.5rem;
57
+ border: 1px solid #e5e7eb;
58
+ }
59
+
60
+ .card-title {
61
+ font-size: 1.25rem;
62
+ font-weight: 600;
63
+ margin-bottom: 1rem;
64
+ color: #111827;
65
+ }
66
+
67
+ .iframe-container {
68
+ border-radius: 8px;
69
+ overflow: hidden;
70
+ background: #fff;
71
+ }
72
+
73
+ iframe {
74
+ border: none;
75
+ width: 100%;
76
+ display: block;
77
+ }
78
+
79
+ @media (max-width: 768px) {
80
+ body {
81
+ padding: 1rem;
82
+ }
83
+
84
+ .card {
85
+ padding: 1rem;
86
+ }
87
+ }
88
  </style>
89
  </head>
90
  <body>
 
97
  <p>Loading total annotations...</p>
98
  </div>
99
 
100
+ <div class="grid">
101
+ <div class="card">
102
+ <div class="card-title">User Leaderboard</div>
103
+ <div class="iframe-container">
104
+ <iframe
105
+ src="https://huggingface.co/datasets/davanstrien/progress/embed/sql-console/NbscKj4"
106
+ frameborder="0"
107
+ height="560px">
108
+ </iframe>
109
+ </div>
110
+ </div>
111
+
112
+ <div class="card">
113
+ <div class="card-title">Language Leaderboard</div>
114
+ <div class="iframe-container">
115
+ <iframe
116
+ src="https://huggingface.co/datasets/davanstrien/progress/embed/sql-console/5Bhx9Ck"
117
+ frameborder="0"
118
+ height="560px">
119
+ </iframe>
120
+ </div>
121
+ </div>
122
+ </div>
123
  </div>
124
 
125
+ <script type="module">
126
+ // Import DuckDB
127
+ import * as duckdb from 'https://cdn.jsdelivr.net/npm/@duckdb/[email protected]/+esm'
128
+
129
  async function initDuckDB() {
130
  try {
131
  // Get the bundle from JSDelivr