Skip to content

Commit 438908e

Browse files
authored
fix/optimization (#156)
* fix: loader and optimized hell out of it * remove: loader * fix: loader fr fr * update * fix: user scroll * update: fontweight of the checkpoints * hide: share button * update: 3d model jo kat gaya tha
1 parent 64ed417 commit 438908e

1 file changed

Lines changed: 45 additions & 2 deletions

File tree

style.css

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ body {
2222
font-family: "Geist Pixel", "Courier New", Courier, monospace;
2323
overflow-x: hidden;
2424
overflow-y: auto;
25+
overflow-y: auto;
2526
letter-spacing: 0.04em;
2627
--accent: #4fd1d9;
2728
--red: var(--accent);
@@ -269,9 +270,22 @@ label {
269270
pointer-events: none;
270271
}
271272

273+
#hero-lcp {
274+
position: absolute;
275+
top: 50%;
276+
left: 50%;
277+
transform: translate(-50%, -50%);
278+
z-index: 0;
279+
font-size: clamp(2rem, 8vw, 6rem);
280+
color: var(--accent);
281+
letter-spacing: 0.2em;
282+
pointer-events: none;
283+
}
284+
272285
#game-container>canvas:first-of-type {
273286
display: block;
274287
touch-action: pan-y;
288+
touch-action: pan-y;
275289
cursor: none;
276290
}
277291

@@ -294,9 +308,29 @@ label {
294308
pointer-events: none;
295309
}
296310

311+
#game-bottom-bar {
312+
position: absolute;
313+
bottom: 0;
314+
left: 0;
315+
width: 100%;
316+
height: 28px;
317+
background: var(--cyan);
318+
z-index: 5;
319+
display: flex;
320+
align-items: center;
321+
justify-content: center;
322+
font-family: "Courier New", Courier, monospace;
323+
font-size: 13px;
324+
font-weight: bold;
325+
color: #0A1628;
326+
letter-spacing: 2px;
327+
pointer-events: none;
328+
}
329+
297330
#scroll-hint {
298331
position: absolute;
299332
bottom: 32px;
333+
bottom: 32px;
300334
left: 50%;
301335
transform: translateX(-50%);
302336
z-index: 10;
@@ -439,8 +473,8 @@ label {
439473
grid-template-columns: 1fr 1fr;
440474
gap: 4px;
441475
flex-shrink: 0;
442-
width: 340px;
443-
overflow: hidden;
476+
width: 420px;
477+
overflow: visible;
444478
}
445479

446480
.about-model {
@@ -450,6 +484,7 @@ label {
450484
background: transparent;
451485
box-shadow: none;
452486
overflow: hidden;
487+
overflow: hidden;
453488
}
454489

455490
.about-model:focus {
@@ -1918,6 +1953,7 @@ a.team-card {
19181953
text-transform: uppercase;
19191954
}
19201955

1956+
/* loader removed */
19211957
/* loader removed */
19221958

19231959
/* ===== MICRO INTERACTIONS ===== */
@@ -2330,6 +2366,13 @@ a.team-card {
23302366
bottom: 34px;
23312367
}
23322368

2369+
#game-bottom-bar {
2370+
height: 24px;
2371+
font-size: 11px;
2372+
letter-spacing: 1px;
2373+
bottom: 34px;
2374+
}
2375+
23332376
#game-bottom-bar {
23342377
height: 24px;
23352378
font-size: 11px;

0 commit comments

Comments
 (0)