jfrery-zama commited on
Commit
73896a1
·
unverified ·
1 Parent(s): 357944a

back to simple design

Browse files
Files changed (1) hide show
  1. index.html +36 -42
index.html CHANGED
@@ -10,11 +10,14 @@
10
  @import url('https://fonts.googleapis.com/css2?family=Telegraf:wght@400;500;600;700&display=swap');
11
 
12
  :root {
13
- --yellow: #ffd200;
14
- --black: #000;
15
- --white: #fff;
16
- --grey-050: #f9f9f9;
17
- --grey-200: #e0e0e0;
 
 
 
18
  --container-max: 1200px;
19
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
20
  --spacing-unit: 8px;
@@ -24,12 +27,13 @@
24
  *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
25
  body {
26
  font-family: 'Telegraf', sans-serif;
27
- background: var(--yellow);
28
  color: var(--black);
29
  line-height: 1.5;
30
  font-weight: 400;
31
  }
32
 
 
33
  .explanation-text {
34
  font-size: 1.3rem;
35
  line-height: 1.6;
@@ -59,23 +63,21 @@
59
  height: 120px;
60
  }
61
  .contact-btn {
62
- border: 2px solid var(--black);
63
- background: transparent;
64
  color: var(--black);
65
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
66
- border-radius: 8px;
67
  font-size: 1rem;
68
  font-weight: 600;
69
  font-family: 'Telegraf', sans-serif;
70
  cursor: pointer;
71
- transition: all .2s ease;
72
  text-decoration: none;
73
  display: inline-block;
74
  }
75
  .contact-btn:hover {
76
- background: var(--black);
77
- color: var(--yellow);
78
- transform: translateY(-1px);
79
  }
80
 
81
  /* hero */
@@ -104,10 +106,10 @@
104
 
105
  .hero-diagram {
106
  background: var(--white);
107
- border: 2px solid var(--black);
108
- border-radius: 0;
109
  padding: calc(var(--spacing-unit) * 4);
110
- box-shadow: 8px 8px 0 var(--black);
111
  width: 100%;
112
  min-height: 400px;
113
  display: flex;
@@ -143,19 +145,18 @@
143
 
144
  .card {
145
  background: var(--white);
146
- border: 2px solid var(--black);
147
- border-radius: 0;
148
- box-shadow: 6px 6px 0 var(--black);
149
  padding: calc(var(--spacing-unit) * 4);
150
  min-height: 280px;
151
  display: flex;
152
  flex-direction: column;
153
- transition: transform 0.2s ease;
154
  }
155
 
156
  .card:hover {
157
- transform: translate(-2px, -2px);
158
- box-shadow: 8px 8px 0 var(--black);
159
  }
160
 
161
  .card h2 {
@@ -183,35 +184,34 @@
183
  textarea {
184
  width: 100%;
185
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
186
- border: 2px solid var(--black);
187
- border-radius: 0;
188
  font-family: 'Telegraf', sans-serif;
189
  font-size: 1.2rem;
190
  resize: vertical;
191
  background: var(--white);
192
  min-height: 60px;
193
- transition: all 0.2s ease;
194
  font-weight: 500;
195
  }
196
 
197
  textarea:focus {
198
  outline: none;
199
- transform: translate(-2px, -2px);
200
- box-shadow: 4px 4px 0 var(--black);
201
  }
202
 
203
  .btn {
204
- border: 2px solid var(--black);
205
- background: var(--yellow);
206
  color: var(--black);
207
  font-weight: 600;
208
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
209
  min-width: 160px;
210
  font-size: 1.2rem;
211
  font-family: 'Telegraf', sans-serif;
212
- border-radius: 0;
213
  cursor: pointer;
214
- transition: all .2s ease;
215
  display: inline-flex;
216
  align-items: center;
217
  justify-content: center;
@@ -220,9 +220,7 @@
220
  letter-spacing: -0.01em;
221
  }
222
  .btn:hover:not(:disabled) {
223
- background: var(--black);
224
- color: var(--yellow);
225
- transform: translateY(-2px);
226
  }
227
  .btn:disabled {
228
  opacity: .5;
@@ -253,8 +251,6 @@
253
  flex-shrink: 0;
254
  }
255
 
256
-
257
-
258
  footer {
259
  font-size: 1.2rem;
260
  text-align: center;
@@ -270,8 +266,8 @@
270
  font-family: 'Telegraf', sans-serif;
271
  padding: calc(var(--spacing-unit) * 3);
272
  background: var(--grey-050);
273
- border: 2px solid var(--black);
274
- border-radius: 8px;
275
  min-height: 80px;
276
  display: flex;
277
  flex-direction: column;
@@ -331,7 +327,6 @@
331
 
332
  .card {
333
  padding: calc(var(--spacing-unit) * 3);
334
- box-shadow: 4px 4px 0 var(--black);
335
  }
336
 
337
  .btn {
@@ -446,8 +441,7 @@
446
 
447
  <script type="module" src="wasm-demo.js"></script>
448
  <script>
449
- // Since the tokenizer loads automatically and there's no explicit loading status in the JS,
450
- // we'll hide the tokenizer status message on page load
451
  window.addEventListener('DOMContentLoaded', () => {
452
  const tokenizerStatus = document.getElementById('tokenizerStatus');
453
  if (tokenizerStatus) {
@@ -456,4 +450,4 @@
456
  });
457
  </script>
458
  </body>
459
- </html>
 
10
  @import url('https://fonts.googleapis.com/css2?family=Telegraf:wght@400;500;600;700&display=swap');
11
 
12
  :root {
13
+ /* palette tuned to match screenshot */
14
+ --white: #ffffff;
15
+ --black: #000000;
16
+ --grey-025: #f5f5f5;
17
+ --grey-050: #f0f0f0;
18
+ --grey-100: #e8e8e8;
19
+ --grey-200: #e0e0e0; /* button & border base */
20
+ --grey-300: #d4d4d4; /* button hover */
21
  --container-max: 1200px;
22
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
23
  --spacing-unit: 8px;
 
27
  *, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
28
  body {
29
  font-family: 'Telegraf', sans-serif;
30
+ background: var(--white); /* removed yellow */
31
  color: var(--black);
32
  line-height: 1.5;
33
  font-weight: 400;
34
  }
35
 
36
+ /* general copy */
37
  .explanation-text {
38
  font-size: 1.3rem;
39
  line-height: 1.6;
 
63
  height: 120px;
64
  }
65
  .contact-btn {
66
+ border: none; /* no thick outline */
67
+ background: var(--grey-200); /* light grey like screenshot */
68
  color: var(--black);
69
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
70
+ border-radius: 6px;
71
  font-size: 1rem;
72
  font-weight: 600;
73
  font-family: 'Telegraf', sans-serif;
74
  cursor: pointer;
75
+ transition: background .2s ease;
76
  text-decoration: none;
77
  display: inline-block;
78
  }
79
  .contact-btn:hover {
80
+ background: var(--grey-300); /* subtle hover */
 
 
81
  }
82
 
83
  /* hero */
 
106
 
107
  .hero-diagram {
108
  background: var(--white);
109
+ border: 1px solid var(--grey-200); /* lighter border */
110
+ border-radius: 4px;
111
  padding: calc(var(--spacing-unit) * 4);
112
+ box-shadow: none; /* removed strong shadow */
113
  width: 100%;
114
  min-height: 400px;
115
  display: flex;
 
145
 
146
  .card {
147
  background: var(--white);
148
+ border: 1px solid var(--grey-200); /* lighter soft border */
149
+ border-radius: 6px;
150
+ box-shadow: none; /* no drop shadow */
151
  padding: calc(var(--spacing-unit) * 4);
152
  min-height: 280px;
153
  display: flex;
154
  flex-direction: column;
155
+ transition: background 0.2s ease;
156
  }
157
 
158
  .card:hover {
159
+ background: var(--grey-025);
 
160
  }
161
 
162
  .card h2 {
 
184
  textarea {
185
  width: 100%;
186
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
187
+ border: 1px solid var(--grey-200);
188
+ border-radius: 4px;
189
  font-family: 'Telegraf', sans-serif;
190
  font-size: 1.2rem;
191
  resize: vertical;
192
  background: var(--white);
193
  min-height: 60px;
194
+ transition: border-color 0.2s ease;
195
  font-weight: 500;
196
  }
197
 
198
  textarea:focus {
199
  outline: none;
200
+ border-color: var(--grey-300);
 
201
  }
202
 
203
  .btn {
204
+ border: none; /* flat buttons */
205
+ background: var(--grey-200);
206
  color: var(--black);
207
  font-weight: 600;
208
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
209
  min-width: 160px;
210
  font-size: 1.2rem;
211
  font-family: 'Telegraf', sans-serif;
212
+ border-radius: 6px;
213
  cursor: pointer;
214
+ transition: background 0.2s ease;
215
  display: inline-flex;
216
  align-items: center;
217
  justify-content: center;
 
220
  letter-spacing: -0.01em;
221
  }
222
  .btn:hover:not(:disabled) {
223
+ background: var(--grey-300);
 
 
224
  }
225
  .btn:disabled {
226
  opacity: .5;
 
251
  flex-shrink: 0;
252
  }
253
 
 
 
254
  footer {
255
  font-size: 1.2rem;
256
  text-align: center;
 
266
  font-family: 'Telegraf', sans-serif;
267
  padding: calc(var(--spacing-unit) * 3);
268
  background: var(--grey-050);
269
+ border: 1px solid var(--grey-200);
270
+ border-radius: 6px;
271
  min-height: 80px;
272
  display: flex;
273
  flex-direction: column;
 
327
 
328
  .card {
329
  padding: calc(var(--spacing-unit) * 3);
 
330
  }
331
 
332
  .btn {
 
441
 
442
  <script type="module" src="wasm-demo.js"></script>
443
  <script>
444
+ // Hide tokenizer status on load
 
445
  window.addEventListener('DOMContentLoaded', () => {
446
  const tokenizerStatus = document.getElementById('tokenizerStatus');
447
  if (tokenizerStatus) {
 
450
  });
451
  </script>
452
  </body>
453
+ </html>