From aed06019331966b38a4657b6b96fa1c5e295b5f8 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 5 Mar 2026 21:14:34 +0100 Subject: [PATCH] a bit of 3D --- css/{common.css => _common.css} | 0 css/heavy-metal.css | 65 +++++++++++++++++++++++++++++++++ css/neo-classic.css | 8 ++-- index.html | 16 ++++---- 4 files changed, 78 insertions(+), 11 deletions(-) rename css/{common.css => _common.css} (100%) create mode 100644 css/heavy-metal.css diff --git a/css/common.css b/css/_common.css similarity index 100% rename from css/common.css rename to css/_common.css diff --git a/css/heavy-metal.css b/css/heavy-metal.css new file mode 100644 index 0000000..74c8bca --- /dev/null +++ b/css/heavy-metal.css @@ -0,0 +1,65 @@ +#sceneDiv { + perspective: 500px; +} +#screenRow { + transform: rotateX(20deg); +} + +#screenRow .card { + box-shadow: + 0 10px 3px #25292d, + 0 15px 0 var(--bs-card-border-color) !important;; +} + +tr.matrix td:not(.mino) { + border-left: none; + border-bottom: none; +} + +.mino { + background-color: hsl(var(--hue), 55%, 55%); + background-image: linear-gradient(30deg, #fff4, transparent); + border: 1px outset hsl(var(--hue), 55%, 45%); + border-radius: 2px; + box-shadow: + 0 10px 3px hsl(var(--hue), 70%, 10%), + 0 15px 0 hsla(var(--hue), 90%, 40%, 70%); + opacity: 80%; + backdrop-filter: blur(6px); +} + +tr:last-of-type .mino { + boxd-shadow: none; +} + +.I { + --hue: 197; +} + +.J { + --hue: 217; +} + +.L { + --hue: 36; +} + +.O { + --hue: 60; +} + +.S { + --hue: 113; +} + +.T { + --hue: 268; +} + +.Z { + --hue: 0; +} + +.ghost { + opacity: 30%; +} \ No newline at end of file diff --git a/css/neo-classic.css b/css/neo-classic.css index 984b867..81dba93 100644 --- a/css/neo-classic.css +++ b/css/neo-classic.css @@ -10,10 +10,10 @@ tr.matrix td:not(.mino) { .mino { --color: hsl(var(--hue), var(--saturation), 60%); - --dark: hsl(var(--hue), var(--saturation), 25%); - --light: hsl(var(--hue), calc(0.66 * var(--saturation)), 84%); + --dark: hsl(var(--hue), var(--saturation), 28%); + --light: hsl(var(--hue), calc(0.66 * var(--saturation)), 90%); --border: hsl(var(--hue), var(--saturation), 40%); - --top: hsl(var(--hue), calc(0.6 * var(--saturation)), 68%); + --top: hsl(var(--hue), calc(0.6 * var(--saturation)), 75%); position: relative; background-color: var(--dark); background-image: radial-gradient( @@ -43,7 +43,7 @@ tr.matrix td:not(.mino) { background: var(--color); left: 3px; top: 3px; - border: 3px solid var(--border); + border: 2px solid var(--border); border-top-color: white; } diff --git a/index.html b/index.html index ae9c456..989d688 100644 --- a/index.html +++ b/index.html @@ -8,15 +8,16 @@ - + - + - - - + + + + @@ -27,7 +28,7 @@ - + @@ -73,9 +74,10 @@ + - +