Skip to content

Commit 151b2db

Browse files
authored
More levels; jump button; better stats (#249)
1 parent 6b00a30 commit 151b2db

3 files changed

Lines changed: 446 additions & 132 deletions

File tree

src/_includes/footer.njk

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,26 @@
8484
<span class="opacity-50">5S</span>
8585
</button>
8686
</div>
87+
<div class="mt-4 pt-4 border-t border-white/10">
88+
<label class="text-[8px] text-white/60 uppercase tracking-widest mb-1.5 block font-bold">Coordinate Jump (0-200)</label>
89+
<div class="flex gap-2">
90+
<input
91+
type="number"
92+
id="jump-lvl"
93+
placeholder="0"
94+
min="0"
95+
max="200"
96+
style="background-color: #000 !important; color: #00ffcc !important; border: 1px solid #00ffcc !important; width: 60px !important; height: 30px !important; font-size: 14px !important; padding: 0 5px !important; border-radius: 4px !important;"
97+
>
98+
<button
99+
onclick="jumpToLevel()"
100+
class="flex-1 bg-accent/20 hover:bg-accent/40 text-accent text-[10px] font-black py-1 rounded transition-all border border-accent/40 uppercase"
101+
style="height: 30px !important;"
102+
>
103+
EXECUTE
104+
</button>
105+
</div>
106+
</div>
87107

88108
<div class="flex gap-1.5 pt-2 border-t border-white/10">
89109
<button id="self-destruct-btn" onclick="startSelfDestruct()" class="flex-1 py-1.5 bg-red-600/10 hover:bg-red-600/30 text-red-500 text-[8px] border border-red-500/30 rounded flex justify-center gap-1">

src/assets/css/style.css

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,3 +422,61 @@ body[data-level="6"]::after {
422422
transform: scale(1.3);
423423
color: white !important;
424424
}
425+
#jump-lvl {
426+
font-family: 'Courier New', monospace;
427+
text-shadow: 0 0 5px var(--accent);
428+
}/* Ensure the text inside the jump box is always visible */
429+
#jump-lvl {
430+
appearance: textfield; /* Removes default arrows */
431+
-webkit-appearance: none;
432+
line-height: 30px !important;
433+
}
434+
435+
#jump-lvl::placeholder {
436+
color: rgba(0, 255, 204, 0.3) !important;
437+
}
438+
439+
/* Force standard text color even on focus */
440+
#jump-lvl:focus {
441+
outline: 2px solid #00ffcc !important;
442+
background-color: #000 !important;
443+
color: #00ffcc !important;
444+
}
445+
/* Base Force Aura Animation */
446+
@keyframes force-pulse {
447+
0% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 5px var(--glow-color)); }
448+
50% { transform: scale(1.1); filter: brightness(1.4) drop-shadow(0 0 20px var(--glow-color)); }
449+
100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 5px var(--glow-color)); }
450+
}
451+
452+
/* The Active Class */
453+
.force-glow {
454+
--glow-color: #38bdf8; /* Default Jedi Blue */
455+
position: relative;
456+
z-index: 10;
457+
transition: all 0.3s ease;
458+
animation: force-pulse 5s infinite ease-in-out;
459+
}
460+
461+
/* Sith Variant (Red Glow) */
462+
[data-level^="13"], [data-level^="14"], [data-level^="15"] .force-glow {
463+
--glow-color: #ef4444; /* Sith Red */
464+
}
465+
466+
/* Force Shadow ripple for the container */
467+
.force-glow::after {
468+
content: "";
469+
position: absolute;
470+
inset: -10px;
471+
border-radius: 50%;
472+
background: var(--glow-color);
473+
opacity: 0.2;
474+
filter: blur(15px);
475+
z-index: -1;
476+
}
477+
#level-progress {
478+
height: 100%;
479+
width: 0%; /* Initial state */
480+
transition: width 0.3s ease-in-out; /* This makes it "fill" instead of "jump" */
481+
box-shadow: 0 0 10px var(--accent);
482+
}

0 commit comments

Comments
 (0)