Refactors site to use interactive terminal UI

Moves site from static HTML to a dynamic terminal interface.

This commit represents a major overhaul, introducing:
- A functional terminal emulator implemented in JavaScript.
- Command parsing and execution framework.
- Various terminal commands for navigation and utility functions.
- SASS conversion.

The old CSS and simple HTML are completely removed. A new Hugo theme is implemented.
This commit is contained in:
Dan 2025-12-08 13:46:35 +00:00
parent d22b4ec65a
commit 23369f4ace
46 changed files with 3524 additions and 860 deletions

View file

@ -0,0 +1,23 @@
footer[role="contentinfo"] {
position: absolute;
bottom: 0;
right: 0;
z-index: 10000;
background: #000; // or whatever color you want
color: #0f0; // match your terminal green theme
padding: 5px;
text-align: center;
font-family: monospace;
border-top: 1px solid #0f0;
border-left: 1px solid #0f0;
border-top-left-radius: 5px;
a {
color: #0f0;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
}

View file

@ -0,0 +1,122 @@
.lava-lamp-container {
position: absolute;
bottom: 20%;
left: 20%;
width: 80px;
height: 150px;
display: flex;
flex-direction: column;
align-items: center;
z-index: 999;
}
.lamp-cap {
width: 60%;
height: 10%;
background: linear-gradient(180deg, #c0c0c0 0%, #888 50%, #666 100%);
border-radius: 60px 60px 0 0;
box-shadow:
0 2px 8px rgba(0, 0, 0, 0.5),
inset 0 2px 4px rgba(255, 255, 255, 0.3);
position: relative;
z-index: 10;
}
.lava-lamp {
position: relative;
width: 100%;
height: 102%; /*Being above 100% fixes the occasional gap when resizing the page, theoretically */
background: var(--lamp-bg, linear-gradient(180deg, #2a1a4a 0%, #1a0a3a 100%));
clip-path: polygon(20% 0, 80% 0, 100% 100%, 0% 100%);
overflow: hidden;
box-shadow:
inset 0 0 60px rgba(0, 0, 0, 0.3),
inset -10px 0 40px rgba(255, 255, 255, 0.1),
inset 10px 0 40px rgba(0, 0, 0, 0.2);
filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}
.lava-lamp::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 255, 255, 0.15) 20%,
rgba(255, 255, 255, 0.05) 40%,
transparent 60%
);
pointer-events: none;
}
.lamp-base {
width: 100%;
height: 20%;
background: linear-gradient(180deg, #888 0%, #555 40%, #333 100%);
border-radius: 0 0 40px 40px / 0 0 60px 60px;
box-shadow:
0 10px 30px rgba(0, 0, 0, 0.6),
inset 0 5px 10px rgba(255, 255, 255, 0.2),
inset 0 -5px 10px rgba(0, 0, 0, 0.5);
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.blob {
position: absolute;
border-radius: 50%;
background: var(
--blob-color,
radial-gradient(circle at 30% 30%, #ff6b9d, #c44569)
);
filter: url(#goo);
animation: float var(--duration) ease-in-out infinite;
opacity: 0.95;
mix-blend-mode: normal;
z-index: 3;
}
@keyframes float {
0%,
100% {
transform: translate(var(--start-x), var(--start-y)) scale(1);
}
25% {
transform: translate(var(--mid1-x), var(--mid1-y)) scale(var(--scale1, 1.1));
}
50% {
transform: translate(var(--mid2-x), var(--mid2-y)) scale(var(--scale2, 0.9));
}
75% {
transform: translate(var(--mid3-x), var(--mid3-y))
scale(var(--scale3, 1.05));
}
}
.lamp-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-35%, -50%) rotate(85deg);
font-size: 30px;
font-weight: bold;
color: rgba(224, 27, 36, 0);
transition: color 0.5s ease;
pointer-events: none;
z-index: 1;
letter-spacing: 2px;
}
.lava-lamp:hover .lamp-text {
color: rgba(224, 27, 36, 0.7);
}
.lava-lamp:hover {
cursor: pointer;
}

View file

@ -0,0 +1,28 @@
.nowplayingcard {
margin: auto;
}
.nowplayingcontainer-inner {
transition: 0.3s;
display: inline-flex;
.trackInfo {
width: 100%;
}
#album {
display: none;
}
}
img#trackart {
transition: 0.3s;
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(60%);
}
img#trackart[src=""] {
display: none;
}

View file

@ -0,0 +1,99 @@
#terminal {
padding: 3px;
height: 100vh;
width: 100%;
overflow-y: auto;
overflow-x: hidden;
}
.output-line {
margin: 2px 0;
white-space: pre-wrap;
word-wrap: break-word;
}
.boot-line {
opacity: 0;
animation: fadeIn 0.1s forwards;
}
@keyframes fadeIn {
to {
opacity: 1;
}
}
.input-line {
display: flex;
align-items: center;
margin-top: 10px;
}
.prompt {
color: #00ff00;
margin-right: 8px;
}
#input {
background: transparent;
border: none;
color: #00ff00;
font-family: monospace;
font-size: 12px;
outline: none;
flex: 1;
caret-color: #00ff00;
}
.cursor {
display: inline-block;
width: 8px;
height: 18px;
background: #00ff00;
animation: blink 1s infinite;
margin-left: 2px;
}
@keyframes blink {
0%,
49% {
opacity: 1;
}
50%,
100% {
opacity: 0;
}
}
.error {
color: #ff4444;
}
.success {
color: #44ff44;
}
.info {
color: #00ffff;
}
.warning {
color: #ff9900;
}
#terminal::-webkit-scrollbar {
width: 10px;
}
#terminal::-webkit-scrollbar-track {
background: #1a1a1a;
}
#terminal::-webkit-scrollbar-thumb {
background: #00ff00;
border-radius: 5px;
}
.hidden {
display: none;
}

View file

@ -0,0 +1,191 @@
/* VU Meter on desk */
.vu-meter {
position: absolute;
bottom: 18%;
right: 30%;
width: 120px;
height: 60px;
z-index: 8;
}
.vu-meter-body {
width: 100%;
height: 100%;
background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
border: 2px solid #333;
border-radius: 4px;
box-shadow:
0 4px 12px rgba(0, 0, 0, 0.7),
inset 0 2px 4px rgba(255, 255, 255, 0.1),
inset 0 -2px 4px rgba(0, 0, 0, 0.3);
padding: 8px;
display: flex;
flex-direction: column;
gap: 6px;
}
.vu-meter-screen {
flex: 1;
background: #0a0a0a;
border-radius: 2px;
padding: 6px 4px;
position: relative;
overflow: hidden;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}
.vu-bars {
display: flex;
align-items: flex-end;
justify-content: space-around;
height: 100%;
gap: 2px;
}
.vu-bar {
flex: 1;
background: linear-gradient(
to top,
#0f0 0%,
#0f0 60%,
#ff0 60%,
#ff0 85%,
#f00 85%,
#f00 100%
);
border-radius: 1px;
box-shadow:
0 0 4px rgba(0, 255, 0, 0.6),
inset 0 0 2px rgba(255, 255, 255, 0.2);
animation: vu-bounce 1.5s ease-in-out infinite;
animation-delay: var(--delay);
height: var(--height);
min-height: 10%;
}
@keyframes vu-bounce {
0%,
100% {
height: var(--height);
filter: brightness(1);
}
25% {
height: calc(var(--height) * 0.6);
filter: brightness(0.8);
}
50% {
height: calc(var(--height) * 1.2);
filter: brightness(1.2);
}
75% {
height: calc(var(--height) * 0.8);
filter: brightness(0.9);
}
}
/* Peak indicator line */
.vu-peak-line {
position: absolute;
top: 15%;
left: 4px;
right: 4px;
height: 1px;
background: #f00;
opacity: 0.6;
box-shadow: 0 0 3px #f00;
animation: peak-pulse 2s ease-in-out infinite;
}
@keyframes peak-pulse {
0%,
100% {
opacity: 0.6;
top: 15%;
}
50% {
opacity: 0.3;
top: 25%;
}
}
/* LED indicators */
.vu-leds {
display: flex;
justify-content: center;
gap: 8px;
}
.vu-led {
width: 5px;
height: 5px;
border-radius: 50%;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
.vu-led.green {
background: #0f0;
box-shadow:
0 0 6px #0f0,
inset 0 1px 2px rgba(0, 0, 0, 0.5);
animation: led-blink-green 2s ease-in-out infinite;
}
.vu-led.yellow {
background: #880;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
animation: led-blink-yellow 2s ease-in-out infinite;
}
.vu-led.red {
background: #400;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
animation: led-blink-red 2s ease-in-out infinite;
}
@keyframes led-blink-green {
0%,
100% {
background: #0f0;
box-shadow:
0 0 6px #0f0,
inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
50% {
background: #0a0;
box-shadow:
0 0 3px #0a0,
inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
}
@keyframes led-blink-yellow {
0%,
40%,
100% {
background: #880;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
50%,
60% {
background: #ff0;
box-shadow:
0 0 6px #ff0,
inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
}
@keyframes led-blink-red {
0%,
85%,
100% {
background: #400;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
90%,
95% {
background: #f00;
box-shadow:
0 0 6px #f00,
inset 0 1px 2px rgba(0, 0, 0, 0.5);
}
}