Compare commits
18 Commits
3a662c8498
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| d347df105a | |||
| a919fa38cb | |||
| 4b9ec8e395 | |||
| 837adf433d | |||
| 25a97bf982 | |||
| c98bab9868 | |||
| f2f6bf7708 | |||
| 1645ed76ca | |||
| ea3f061211 | |||
| cfd081abcd | |||
| fcc1326e86 | |||
| aac2bdf2e6 | |||
| a900c5f750 | |||
| 384cb7f7b8 | |||
| d4bfc88be7 | |||
| 0cd5d4c27c | |||
| 20d848623f | |||
| ecaa3bbf6a |
@ -4,9 +4,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>dangrubb.net</title>
|
<title>dangrubb.net</title>
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<link rel="stylesheet" href="./style.css">
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 15 KiB |
@ -1,7 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<link rel="icon" href="assets/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<link rel="icon" href="assets/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|||||||
@ -4,9 +4,10 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>dangrubb.net</title>
|
<title>dangrubb.net</title>
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<link rel="stylesheet" href="./style.css">
|
<link rel="stylesheet" href="./style.css">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
20
package-lock.json
generated
@ -8,6 +8,8 @@
|
|||||||
"name": "dangrubb-astro",
|
"name": "dangrubb-astro",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fontsource/geist-mono": "^5.3.0",
|
||||||
|
"@fontsource/instrument-sans": "^5.3.0",
|
||||||
"astro": "^6.1.9"
|
"astro": "^6.1.9"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
@ -593,6 +595,24 @@
|
|||||||
"node": ">=18"
|
"node": ">=18"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@fontsource/geist-mono": {
|
||||||
|
"version": "5.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@fontsource/geist-mono/-/geist-mono-5.3.0.tgz",
|
||||||
|
"integrity": "sha512-UtJ1BBBCVpMYdIcW7nEB45UAoAw5M53ZXs2t0ciPW+IokuAAIc56M8+kW5tXbRJCTpDw4XTtU7proT6NdQAHTg==",
|
||||||
|
"license": "OFL-1.1",
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ayuhito"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@fontsource/instrument-sans": {
|
||||||
|
"version": "5.3.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@fontsource/instrument-sans/-/instrument-sans-5.3.0.tgz",
|
||||||
|
"integrity": "sha512-QwXc4hb/px3XvSPS2CPAOgey8nyrQFxgxrmXQQ+pN+P51hKdAcchxpg8rSbjANFfPu6VKXhDqkVDucXMZ9CM5g==",
|
||||||
|
"license": "OFL-1.1",
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/ayuhito"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@img/colour": {
|
"node_modules/@img/colour": {
|
||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.1.0.tgz",
|
||||||
|
|||||||
@ -12,6 +12,8 @@
|
|||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@fontsource/geist-mono": "^5.3.0",
|
||||||
|
"@fontsource/instrument-sans": "^5.3.0",
|
||||||
"astro": "^6.1.9"
|
"astro": "^6.1.9"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BIN
public/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 15 KiB |
@ -1,7 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<link rel="icon" href="assets/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|||||||
@ -1,7 +1,9 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<link rel="icon" href="assets/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 15 KiB |
@ -1,9 +1,3 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-8 -8 460 460">
|
||||||
<path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" />
|
<path fill="#EC9770" stroke="#EC9770" stroke-width="14" stroke-linejoin="miter" stroke-miterlimit="6" d="M5.59 376.00 L72.55 277.00 L105.59 277.00 L53.36 349.85 L70.87 349.85 C92.57 349.85 115.47 349.34 134.74 340.19 C154.00 331.04 169.62 313.53 180.23 294.15 C190.84 274.77 196.44 253.52 196.03 231.92 C195.62 210.31 189.19 188.34 178.01 169.66 C166.83 150.99 150.90 135.61 132.45 123.77 C113.99 111.93 93.02 105.30 70.92 105.30 L25.89 105.30 L6.10 80.00 L70.57 80.00 C96.81 80.00 122.87 86.78 145.14 100.38 C167.40 113.98 185.87 132.97 198.54 155.81 C211.21 178.64 218.08 205.34 218.28 231.30 C218.49 257.27 212.03 282.51 199.70 305.82 C187.36 329.13 169.17 350.52 146.44 362.36 C123.71 374.20 96.46 376.00 70.41 376.00 L5.59 376.00 Z M438.41 376.00 L371.45 277.00 L338.41 277.00 L390.64 349.85 L373.13 349.85 C351.43 349.85 328.53 349.34 309.26 340.19 C290.00 331.04 274.38 313.53 263.77 294.15 C253.16 274.77 247.56 253.52 247.97 231.92 C248.38 210.31 254.81 188.34 265.99 169.66 C277.17 150.99 293.10 135.61 311.55 123.77 C330.01 111.93 350.98 105.30 373.08 105.30 L418.11 105.30 L437.90 80.00 L373.43 80.00 C347.19 80.00 321.13 86.78 298.86 100.38 C276.60 113.98 258.13 132.97 245.46 155.81 C232.79 178.64 225.92 205.34 225.72 231.30 C225.51 257.27 231.97 282.51 244.30 305.82 C256.64 329.13 274.83 350.52 297.56 362.36 C320.29 374.20 347.54 376.00 373.59 376.00 L438.41 376.00 Z"/>
|
||||||
<style>
|
|
||||||
path { fill: #000; }
|
|
||||||
@media (prefers-color-scheme: dark) {
|
|
||||||
path { fill: #FFF; }
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 749 B After Width: | Height: | Size: 1.4 KiB |
@ -4,14 +4,16 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>DGDN - Darnea | dangrubb.net</title>
|
<title>DGDN - Darnea | dangrubb.net</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<link rel="stylesheet" href="../../music.css">
|
<link rel="stylesheet" href="../../music.css">
|
||||||
<link rel="stylesheet" href="./player.css">
|
<link rel="stylesheet" href="./player.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="music-container">
|
<div class="music-container">
|
||||||
<div class="music-header">
|
<div class="music-header">
|
||||||
<h1><a href="/music">Music</a> / <a href="/music/Darnea">Darnea</a> / DGDN</h1>
|
<h1><a href="/music/">Music</a> / <a href="/music/Darnea/">Darnea</a> / DGDN</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="album-player">
|
<div class="album-player">
|
||||||
@ -39,7 +41,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="music-footer">
|
<div class="music-footer">
|
||||||
<p><a href="/music/Darnea">← back to artist</a></p>
|
<p><a href="/music/Darnea/">← back to artist</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
gap: 30px;
|
gap: 30px;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
background: rgba(107, 225, 233, 0.05);
|
background: rgb(var(--accent-rgb) / 0.05);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
@ -23,18 +23,18 @@
|
|||||||
.album-info h2 {
|
.album-info h2 {
|
||||||
margin: 0 0 5px 0;
|
margin: 0 0 5px 0;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
color: #9d9aa4;
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.album-info .artist-name {
|
.album-info .artist-name {
|
||||||
margin: 0 0 5px 0;
|
margin: 0 0 5px 0;
|
||||||
color: #6be1e9;
|
color: var(--accent);
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.album-info .album-desc {
|
.album-info .album-desc {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #6be1e9;
|
color: var(--accent);
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
}
|
}
|
||||||
@ -43,8 +43,8 @@
|
|||||||
.now-playing {
|
.now-playing {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background: rgba(107, 225, 233, 0.1);
|
background: rgb(var(--accent-rgb) / 0.1);
|
||||||
border: 1px solid rgba(107, 225, 233, 0.3);
|
border: 1px solid rgb(var(--accent-rgb) / 0.3);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
min-height: 60px;
|
min-height: 60px;
|
||||||
@ -55,11 +55,11 @@
|
|||||||
|
|
||||||
.now-playing p {
|
.now-playing p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
color: #9d9aa4;
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.now-playing.playing p {
|
.now-playing.playing p {
|
||||||
color: #6be1e9;
|
color: var(--accent);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -67,7 +67,7 @@
|
|||||||
#audio-player {
|
#audio-player {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
accent-color: #6be1e9;
|
accent-color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tracklist */
|
/* Tracklist */
|
||||||
@ -78,7 +78,7 @@
|
|||||||
.tracklist h3 {
|
.tracklist h3 {
|
||||||
margin: 0 0 20px 0;
|
margin: 0 0 20px 0;
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
color: #9d9aa4;
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tracklist ol {
|
.tracklist ol {
|
||||||
@ -90,29 +90,29 @@
|
|||||||
.tracklist li {
|
.tracklist li {
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
background: rgba(157, 154, 164, 0.05);
|
background: rgb(var(--text-rgb) / 0.05);
|
||||||
border: 1px solid rgba(107, 225, 233, 0.2);
|
border: 1px solid rgb(var(--accent-rgb) / 0.2);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: all 0.2s ease;
|
transition: all 0.2s ease;
|
||||||
color: #9d9aa4;
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tracklist li:hover {
|
.tracklist li:hover {
|
||||||
background: rgba(107, 225, 233, 0.1);
|
background: rgb(var(--accent-rgb) / 0.1);
|
||||||
border-color: rgba(107, 225, 233, 0.5);
|
border-color: rgb(var(--accent-rgb) / 0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tracklist li.active {
|
.tracklist li.active {
|
||||||
background: rgba(107, 225, 233, 0.2);
|
background: rgb(var(--accent-rgb) / 0.2);
|
||||||
border-color: #6be1e9;
|
border-color: var(--accent);
|
||||||
color: #6be1e9;
|
color: var(--accent);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.track-duration {
|
.track-duration {
|
||||||
float: right;
|
float: right;
|
||||||
color: #6be1e9;
|
color: var(--accent);
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -4,13 +4,15 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Darnea - dangrubb.net</title>
|
<title>Darnea - dangrubb.net</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<link rel="stylesheet" href="../music.css">
|
<link rel="stylesheet" href="../music.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="music-container">
|
<div class="music-container">
|
||||||
<div class="music-header">
|
<div class="music-header">
|
||||||
<h1><a href="/music">Music</a> / Darnea</h1>
|
<h1><a href="/music/">Music</a> / Darnea</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="artist-detail">
|
<div class="artist-detail">
|
||||||
@ -21,13 +23,13 @@
|
|||||||
<div class="albums-grid">
|
<div class="albums-grid">
|
||||||
<div class="album-card">
|
<div class="album-card">
|
||||||
<div class="album-cover">🔥</div>
|
<div class="album-cover">🔥</div>
|
||||||
<h3><a href="/music/Darnea/DGDN">DGDN</a></h3>
|
<h3><a href="/music/Darnea/DGDN/">DGDN</a></h3>
|
||||||
<p class="album-meta">8 tracks</p>
|
<p class="album-meta">8 tracks</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="music-footer">
|
<div class="music-footer">
|
||||||
<p><a href="/music">← back to music</a></p>
|
<p><a href="/music/">← back to music</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -4,7 +4,9 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>dangrubb.net Music</title>
|
<title>dangrubb.net Music</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon">
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<link rel="stylesheet" href="./music.css">
|
<link rel="stylesheet" href="./music.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -16,7 +18,7 @@
|
|||||||
<div class="artists-grid">
|
<div class="artists-grid">
|
||||||
<div class="artist-card">
|
<div class="artist-card">
|
||||||
<div class="artist-cover">🎤</div>
|
<div class="artist-cover">🎤</div>
|
||||||
<h2><a href="/music/Darnea">Darnea</a></h2>
|
<h2><a href="/music/Darnea/">Darnea</a></h2>
|
||||||
<p class="artist-meta">1 album</p>
|
<p class="artist-meta">1 album</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,9 +1,38 @@
|
|||||||
|
/* --- THEME ---
|
||||||
|
Dark is the default; a light palette switches on automatically with the visitor's system setting. */
|
||||||
|
:root {
|
||||||
|
color-scheme: dark light;
|
||||||
|
--bg: #0d0a14;
|
||||||
|
--text: #9d9aa4;
|
||||||
|
--accent: #6be1e9;
|
||||||
|
--text-rgb: 157 154 164;
|
||||||
|
--accent-rgb: 107 225 233;
|
||||||
|
--warn: #ffff00;
|
||||||
|
--panel-a: rgb(13 10 20 / 0.6);
|
||||||
|
--panel-b: rgb(50 30 80 / 0.3);
|
||||||
|
--shadow: rgb(0 0 0 / 0.4);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
:root {
|
||||||
|
--bg: #faf6f2;
|
||||||
|
--text: #4a4553;
|
||||||
|
--accent: #0a727c;
|
||||||
|
--text-rgb: 74 69 83;
|
||||||
|
--accent-rgb: 10 114 124;
|
||||||
|
--warn: #8a5a00;
|
||||||
|
--panel-a: rgb(255 255 255 / 0.7);
|
||||||
|
--panel-b: rgb(250 214 190 / 0.35);
|
||||||
|
--shadow: rgb(74 69 83 / 0.18);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* --- BASE STYLES (Merged from style.css) --- */
|
/* --- BASE STYLES (Merged from style.css) --- */
|
||||||
body {
|
body {
|
||||||
background: #0d0a14;
|
background: var(--bg);
|
||||||
padding: 40px 20px;
|
padding: 40px 20px;
|
||||||
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;
|
||||||
color: #9d9aa4;
|
color: var(--text);
|
||||||
/* Fixed the no-scroll issue here: */
|
/* Fixed the no-scroll issue here: */
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -14,7 +43,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #6be1e9;
|
color: var(--accent);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,19 +64,19 @@ a:visited {
|
|||||||
.music-header {
|
.music-header {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 50px;
|
margin-bottom: 50px;
|
||||||
border-bottom: 2px solid rgba(107, 225, 233, 0.3);
|
border-bottom: 2px solid rgb(var(--accent-rgb) / 0.3);
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.music-header h1 {
|
.music-header h1 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
color: #9d9aa4;
|
color: var(--text);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.music-header h1 a {
|
.music-header h1 a {
|
||||||
color: #6be1e9;
|
color: var(--accent);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Artists/Albums Grid */
|
/* Artists/Albums Grid */
|
||||||
@ -63,16 +92,16 @@ a:visited {
|
|||||||
.album-card {
|
.album-card {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background: rgba(157, 154, 164, 0.05);
|
background: rgb(var(--text-rgb) / 0.05);
|
||||||
border: 1px solid rgba(107, 225, 233, 0.2);
|
border: 1px solid rgb(var(--accent-rgb) / 0.2);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.artist-card:hover,
|
.artist-card:hover,
|
||||||
.album-card:hover {
|
.album-card:hover {
|
||||||
background: rgba(107, 225, 233, 0.1);
|
background: rgb(var(--accent-rgb) / 0.1);
|
||||||
border-color: rgba(107, 225, 233, 0.5);
|
border-color: rgb(var(--accent-rgb) / 0.5);
|
||||||
transform: translateY(-4px);
|
transform: translateY(-4px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,12 +115,12 @@ a:visited {
|
|||||||
.album-card h3 {
|
.album-card h3 {
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
font-size: 1.3rem;
|
font-size: 1.3rem;
|
||||||
color: #9d9aa4;
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
.artist-meta,
|
.artist-meta,
|
||||||
.album-meta {
|
.album-meta {
|
||||||
color: #6be1e9;
|
color: var(--accent);
|
||||||
font-size: 0.9rem;
|
font-size: 0.9rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
@ -101,7 +130,7 @@ a:visited {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 40px 0;
|
margin: 40px 0;
|
||||||
padding: 40px 20px;
|
padding: 40px 20px;
|
||||||
background: rgba(107, 225, 233, 0.05);
|
background: rgb(var(--accent-rgb) / 0.05);
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -113,7 +142,7 @@ a:visited {
|
|||||||
.artist-detail h2 {
|
.artist-detail h2 {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
font-size: 2.5rem;
|
font-size: 2.5rem;
|
||||||
color: #9d9aa4;
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Footer / Bottom Nav */
|
/* Footer / Bottom Nav */
|
||||||
@ -121,7 +150,7 @@ a:visited {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 60px;
|
margin-top: 60px;
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
border-top: 2px solid rgba(107, 225, 233, 0.3);
|
border-top: 2px solid rgb(var(--accent-rgb) / 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom-nav {
|
.bottom-nav {
|
||||||
@ -160,7 +189,7 @@ a:visited {
|
|||||||
.announcement {
|
.announcement {
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
display: block;
|
display: block;
|
||||||
border: 1px solid #ffff00;
|
border: 1px solid var(--warn);
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -168,7 +197,7 @@ a:visited {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.announcement a {
|
.announcement a {
|
||||||
color: #ffff00;
|
color: var(--warn);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,11 +210,11 @@ a:visited {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.blog-preview {
|
.blog-preview {
|
||||||
border: 1px solid rgba(155, 169, 180, 0.3);
|
border: 1px solid rgb(var(--text-rgb) / 0.3);
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
background: linear-gradient(135deg, rgba(13, 10, 20, 0.6), rgba(50, 30, 80, 0.3));
|
background: linear-gradient(135deg, var(--panel-a), var(--panel-b));
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
box-shadow: 0 4px 12px var(--shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- RESPONSIVE MEDIA QUERIES --- */
|
/* --- RESPONSIVE MEDIA QUERIES --- */
|
||||||
|
|||||||
BIN
public/src/img/DanGrubbLogoDark.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
3
public/src/img/DanGrubbLogoDark.svg
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 444 444">
|
||||||
|
<path fill="#090B11" d="M5.59 376.00 L72.55 277.00 L105.59 277.00 L53.36 349.85 L70.87 349.85 C92.57 349.85 115.47 349.34 134.74 340.19 C154.00 331.04 169.62 313.53 180.23 294.15 C190.84 274.77 196.44 253.52 196.03 231.92 C195.62 210.31 189.19 188.34 178.01 169.66 C166.83 150.99 150.90 135.61 132.45 123.77 C113.99 111.93 93.02 105.30 70.92 105.30 L25.89 105.30 L6.10 80.00 L70.57 80.00 C96.81 80.00 122.87 86.78 145.14 100.38 C167.40 113.98 185.87 132.97 198.54 155.81 C211.21 178.64 218.08 205.34 218.28 231.30 C218.49 257.27 212.03 282.51 199.70 305.82 C187.36 329.13 169.17 350.52 146.44 362.36 C123.71 374.20 96.46 376.00 70.41 376.00 L5.59 376.00 Z M438.41 376.00 L371.45 277.00 L338.41 277.00 L390.64 349.85 L373.13 349.85 C351.43 349.85 328.53 349.34 309.26 340.19 C290.00 331.04 274.38 313.53 263.77 294.15 C253.16 274.77 247.56 253.52 247.97 231.92 C248.38 210.31 254.81 188.34 265.99 169.66 C277.17 150.99 293.10 135.61 311.55 123.77 C330.01 111.93 350.98 105.30 373.08 105.30 L418.11 105.30 L437.90 80.00 L373.43 80.00 C347.19 80.00 321.13 86.78 298.86 100.38 C276.60 113.98 258.13 132.97 245.46 155.81 C232.79 178.64 225.92 205.34 225.72 231.30 C225.51 257.27 231.97 282.51 244.30 305.82 C256.64 329.13 274.83 350.52 297.56 362.36 C320.29 374.20 347.54 376.00 373.59 376.00 L438.41 376.00 Z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
3
public/src/img/DanGrubbLogoWhite.svg
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 444 444">
|
||||||
|
<path fill="#FFFFFF" d="M5.59 376.00 L72.55 277.00 L105.59 277.00 L53.36 349.85 L70.87 349.85 C92.57 349.85 115.47 349.34 134.74 340.19 C154.00 331.04 169.62 313.53 180.23 294.15 C190.84 274.77 196.44 253.52 196.03 231.92 C195.62 210.31 189.19 188.34 178.01 169.66 C166.83 150.99 150.90 135.61 132.45 123.77 C113.99 111.93 93.02 105.30 70.92 105.30 L25.89 105.30 L6.10 80.00 L70.57 80.00 C96.81 80.00 122.87 86.78 145.14 100.38 C167.40 113.98 185.87 132.97 198.54 155.81 C211.21 178.64 218.08 205.34 218.28 231.30 C218.49 257.27 212.03 282.51 199.70 305.82 C187.36 329.13 169.17 350.52 146.44 362.36 C123.71 374.20 96.46 376.00 70.41 376.00 L5.59 376.00 Z M438.41 376.00 L371.45 277.00 L338.41 277.00 L390.64 349.85 L373.13 349.85 C351.43 349.85 328.53 349.34 309.26 340.19 C290.00 331.04 274.38 313.53 263.77 294.15 C253.16 274.77 247.56 253.52 247.97 231.92 C248.38 210.31 254.81 188.34 265.99 169.66 C277.17 150.99 293.10 135.61 311.55 123.77 C330.01 111.93 350.98 105.30 373.08 105.30 L418.11 105.30 L437.90 80.00 L373.43 80.00 C347.19 80.00 321.13 86.78 298.86 100.38 C276.60 113.98 258.13 132.97 245.46 155.81 C232.79 178.64 225.92 205.34 225.72 231.30 C225.51 257.27 231.97 282.51 244.30 305.82 C256.64 329.13 274.83 350.52 297.56 362.36 C320.29 374.20 347.54 376.00 373.59 376.00 L438.41 376.00 Z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 15 KiB |
@ -8,7 +8,9 @@ const { title } = Astro.props;
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon" />
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<slot />
|
<slot />
|
||||||
|
|||||||
@ -8,7 +8,9 @@ const { title } = Astro.props;
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon" />
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css" />
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@ -8,7 +8,9 @@ const { title } = Astro.props;
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<link rel="icon" href="/src/img/favicon.ico" type="image/x-icon" />
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Barlow:wght@400;600;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Barlow:wght@400;600;700&display=swap" rel="stylesheet">
|
||||||
|
|||||||
44
src/layouts/RadianceBase.astro
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
import '@fontsource/instrument-sans/latin-400.css';
|
||||||
|
import '@fontsource/instrument-sans/latin-500.css';
|
||||||
|
import '@fontsource/geist-mono/latin-500.css';
|
||||||
|
|
||||||
|
const { title } = Astro.props;
|
||||||
|
---
|
||||||
|
|
||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<title>{title}</title>
|
||||||
|
<meta name="theme-color" content="#fff6f4" />
|
||||||
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<slot />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
<style is:global>
|
||||||
|
:root {
|
||||||
|
--ink: 9 11 17;
|
||||||
|
--ease: cubic-bezier(0.33, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
*, *::before, *::after { box-sizing: border-box; }
|
||||||
|
html, body { margin: 0; min-height: 100%; }
|
||||||
|
body {
|
||||||
|
background-color: #f9d9b3;
|
||||||
|
background-image:
|
||||||
|
radial-gradient(115% 80% at 50% 30%, transparent 45%, rgb(251 188 166 / 0.65) 100%),
|
||||||
|
linear-gradient(180deg, #fbddb7 0%, #f9e6bc 14%, #f9ebbc 30%, #f9d9b3 55%, #f3c19e 78%, #ee9972 92%, #ef815c 100%);
|
||||||
|
background-attachment: fixed;
|
||||||
|
color: rgb(var(--ink) / 0.8);
|
||||||
|
font-family: 'Instrument Sans', system-ui, sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
}
|
||||||
|
a { color: inherit; text-decoration: none; }
|
||||||
|
:focus-visible { outline: 2px solid rgb(var(--ink) / 0.7); outline-offset: 2px; }
|
||||||
|
</style>
|
||||||
@ -1,18 +1,17 @@
|
|||||||
---
|
---
|
||||||
import CrushBase from '../../layouts/CrushBase.astro';
|
import RadianceBase from '../../layouts/RadianceBase.astro';
|
||||||
import posts from '../../data/posts.json';
|
import posts from '../../data/posts.json';
|
||||||
---
|
---
|
||||||
|
|
||||||
<CrushBase title="dangrubb.net/blog">
|
<RadianceBase title="dangrubb.net/blog">
|
||||||
<div class="page">
|
<div class="page">
|
||||||
<header class="blog-header">
|
<header class="blog-header">
|
||||||
<div class="header-logo">
|
<a class="header-logo" href="/">
|
||||||
<img src="/src/img/DanGrubbLogoTeal.png" alt="dangrubb" class="logo-img">
|
<span class="sr-only">dangrubb.net home</span>
|
||||||
</div>
|
<img src="/src/img/DanGrubbLogoDark.svg" alt="" width="64" height="64" />
|
||||||
<p class="page-title">
|
</a>
|
||||||
<span class="title-name">dangrubb</span><span class="title-dot">.</span><span class="title-tld">net</span><span class="title-slash">/</span><span class="title-page">blog</span>
|
<h1 class="page-title">Blog</h1>
|
||||||
</p>
|
<p class="back-link"><a href="/">← Home</a></p>
|
||||||
<p class="back-link"><a href="/">← home</a></p>
|
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="blogs-container">
|
<div class="blogs-container">
|
||||||
@ -20,7 +19,7 @@ import posts from '../../data/posts.json';
|
|||||||
<article class="blog-post" id={post.slug}>
|
<article class="blog-post" id={post.slug}>
|
||||||
<h2 class="blog-post-title">{post.title}</h2>
|
<h2 class="blog-post-title">{post.title}</h2>
|
||||||
<div class="blog-post-date">
|
<div class="blog-post-date">
|
||||||
{new Date(post.date).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })}
|
{new Date(post.date + 'T12:00:00').toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' })}
|
||||||
</div>
|
</div>
|
||||||
<div class="blog-post-content" set:html={post.content} />
|
<div class="blog-post-content" set:html={post.content} />
|
||||||
<div class="blog-post-image">
|
<div class="blog-post-image">
|
||||||
@ -31,65 +30,49 @@ import posts from '../../data/posts.json';
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer class="blog-footer">
|
<footer class="blog-footer">
|
||||||
<a href="/">← home</a>
|
<a href="/">← Home</a>
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
</CrushBase>
|
</RadianceBase>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.page {
|
.page { min-height: 100vh; display: flex; flex-direction: column; }
|
||||||
min-height: 100vh;
|
.sr-only {
|
||||||
display: flex;
|
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
|
||||||
flex-direction: column;
|
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
|
||||||
background: var(--crush-white);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-header {
|
.blog-header { text-align: center; padding: 28px 20px 8px; }
|
||||||
text-align: center;
|
.header-logo { display: inline-block; margin-bottom: 18px; }
|
||||||
padding: 30px 20px 20px;
|
.header-logo img { width: 56px; height: 56px; }
|
||||||
background: linear-gradient(180deg, #e8f5f5 0%, transparent 100%);
|
|
||||||
border-bottom: 3px solid var(--crush-teal);
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-logo {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
margin-bottom: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-img {
|
|
||||||
width: 60px;
|
|
||||||
height: 60px;
|
|
||||||
object-fit: contain;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-title {
|
.page-title {
|
||||||
font-family: 'Alfa Slab One', 'Georgia', serif;
|
margin: 0 0 12px;
|
||||||
font-size: clamp(1.8rem, 5vw, 3rem);
|
font-weight: 400;
|
||||||
letter-spacing: -1px;
|
font-size: clamp(30px, 3.34vw, 56px);
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
margin-bottom: 8px;
|
letter-spacing: -0.03em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title-name { color: var(--crush-teal); }
|
.back-link, .blog-footer a {
|
||||||
.title-dot { color: var(--crush-teal-light); }
|
font-family: 'Geist Mono', ui-monospace, monospace;
|
||||||
.title-tld { color: var(--crush-teal-dark); }
|
font-weight: 500;
|
||||||
.title-slash { color: var(--crush-teal); }
|
font-size: 12px;
|
||||||
.title-page { color: var(--crush-teal-dark); font-size: 0.7em; }
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
.back-link {
|
|
||||||
font-size: 0.875rem;
|
|
||||||
color: var(--crush-teal);
|
|
||||||
margin-top: 4px;
|
|
||||||
}
|
}
|
||||||
.back-link a {
|
.back-link { margin: 0; }
|
||||||
color: var(--crush-teal);
|
.back-link a, .blog-footer a {
|
||||||
opacity: 0.7;
|
position: relative; display: inline-block; overflow: hidden;
|
||||||
}
|
}
|
||||||
.back-link a:hover { opacity: 1; }
|
.back-link a::after, .blog-footer a::after {
|
||||||
|
content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
|
||||||
|
background: rgb(var(--ink) / 0.3); transform: translateX(-101%); transition: transform 0.4s;
|
||||||
|
}
|
||||||
|
.back-link a:hover::after, .blog-footer a:hover::after { transform: none; }
|
||||||
|
|
||||||
.blogs-container {
|
.blogs-container {
|
||||||
margin: 30px auto;
|
margin: 32px auto;
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 20px;
|
padding: 0 20px;
|
||||||
@ -99,71 +82,46 @@ import posts from '../../data/posts.json';
|
|||||||
}
|
}
|
||||||
|
|
||||||
.blog-post {
|
.blog-post {
|
||||||
margin-bottom: 40px;
|
margin-bottom: 32px;
|
||||||
padding: 24px;
|
padding: 28px;
|
||||||
border: 1px solid rgba(0, 139, 139, 0.12);
|
background: #fff;
|
||||||
border-radius: 6px;
|
|
||||||
background: linear-gradient(135deg, #f0faf9, #f8f9fa);
|
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-post-title {
|
.blog-post-title {
|
||||||
color: var(--crush-teal);
|
margin: 0 0 8px;
|
||||||
font-weight: 700;
|
font-weight: 500;
|
||||||
font-size: 1.6rem;
|
font-size: 1.6rem;
|
||||||
|
letter-spacing: -0.03em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 6px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-post-date {
|
.blog-post-date {
|
||||||
color: var(--crush-teal-light);
|
font-family: 'Geist Mono', ui-monospace, monospace;
|
||||||
font-size: 0.85rem;
|
font-weight: 500;
|
||||||
|
font-size: 12px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 22px;
|
||||||
opacity: 0.7;
|
padding-bottom: 14px;
|
||||||
|
border-bottom: 1px solid rgb(var(--ink) / 0.15);
|
||||||
|
color: rgb(var(--ink) / 0.6);
|
||||||
}
|
}
|
||||||
|
|
||||||
.blog-post-content {
|
.blog-post-content { font-size: 1rem; line-height: 1.55; text-align: center; }
|
||||||
font-size: 0.95rem;
|
.blog-post-content :global(p) { margin: 0 0 15px; }
|
||||||
line-height: 1.6;
|
.blog-post-content :global(a) { text-decoration: underline; text-underline-offset: 3px; }
|
||||||
color: #333;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
.blog-post-content :global(p) {
|
|
||||||
margin: 0 0 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.blog-post-image {
|
.blog-post-image { display: flex; justify-content: center; margin-top: 20px; }
|
||||||
display: flex;
|
.blog-post-image img { max-width: 100%; height: auto; max-height: 60vh; }
|
||||||
justify-content: center;
|
|
||||||
margin-top: 20px;
|
|
||||||
}
|
|
||||||
.blog-post-image img {
|
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
max-height: 60vh;
|
|
||||||
border-radius: 4px;
|
|
||||||
box-shadow: 0 4px 12px rgba(0, 102, 102, 0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
.blog-footer {
|
.blog-footer { text-align: center; padding: 16px 20px 44px; margin-top: auto; }
|
||||||
text-align: center;
|
|
||||||
padding: 30px 20px 40px;
|
|
||||||
border-top: 3px solid var(--crush-teal);
|
|
||||||
background: linear-gradient(0deg, #e8f5f5 0%, transparent 100%);
|
|
||||||
margin-top: auto;
|
|
||||||
}
|
|
||||||
.blog-footer a {
|
|
||||||
color: var(--crush-teal);
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.blog-header { padding: 20px 15px 15px; }
|
.blogs-container { padding: 0 12px; }
|
||||||
.logo-img { width: 45px; height: 45px; }
|
.blog-post { padding: 18px; margin-bottom: 20px; }
|
||||||
.blogs-container { padding: 0 15px; }
|
.blog-post-title { font-size: 1.35rem; }
|
||||||
.blog-post { padding: 16px; margin-bottom: 24px; }
|
|
||||||
.blog-post-title { font-size: 1.3rem; }
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -1,182 +1,99 @@
|
|||||||
---
|
---
|
||||||
import CrushBase from '../layouts/CrushBase.astro';
|
import '@fontsource/instrument-sans/latin-400.css';
|
||||||
|
import '@fontsource/instrument-sans/latin-500.css';
|
||||||
|
import '@fontsource/geist-mono/latin-500.css';
|
||||||
|
import '../styles/radiance.css';
|
||||||
|
|
||||||
|
const nav = [
|
||||||
|
{ label: 'Intelligence Platform', href: 'https://ai.dangrubb.net' },
|
||||||
|
{ label: 'Exclusive Music', href: '/music/' },
|
||||||
|
{ label: 'Multimedia Entertainment', href: 'https://pi.dangrubb.net/jellyfin' },
|
||||||
|
{ label: 'Private Search', href: 'https://search.dangrubb.net' },
|
||||||
|
{ label: 'Storage Solutions', href: 'https://pi.dangrubb.net/nextcloud' },
|
||||||
|
];
|
||||||
|
const links = [
|
||||||
|
{ label: 'Blog', href: '/blog' },
|
||||||
|
{ label: 'CV', href: '/cv/' },
|
||||||
|
{ label: 'Git', href: 'https://pi.dangrubb.net/dangit/dangrubbb/dangrubb.net' },
|
||||||
|
];
|
||||||
---
|
---
|
||||||
|
|
||||||
<CrushBase title="dangrubb.net">
|
<!doctype html>
|
||||||
<div class="crush-page">
|
<html lang="en">
|
||||||
<header class="top-banner">
|
<head>
|
||||||
<div class="brand">
|
<meta charset="UTF-8" />
|
||||||
<span class="brand-name">dangrubb</span><span class="brand-dot">.</span><span class="brand-tld">net</span>
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<title>dangrubb.net</title>
|
||||||
|
<meta name="description" content="Welcome to dangrubb.net" />
|
||||||
|
<meta name="theme-color" content="#fff6f4" />
|
||||||
|
<link rel="icon" href="/favicon.ico" sizes="48x48">
|
||||||
|
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||||
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||||
|
<link rel="preload" as="image" href="/src/img/DanGrubbLogoWhite.svg" type="image/svg+xml" />
|
||||||
|
</head>
|
||||||
|
<body class="is-loading">
|
||||||
|
<div class="loader" id="loader" aria-hidden="true">
|
||||||
|
<div class="loader__stage">
|
||||||
|
<div class="scene">
|
||||||
|
<div class="cube">
|
||||||
|
<div class="cube__face cube__face--front"><img src="/src/img/DanGrubbLogoWhite.svg" alt="" width="140" height="140" /></div>
|
||||||
|
<div class="cube__face cube__face--back"><img src="/src/img/DanGrubbLogoWhite.svg" alt="" width="140" height="140" /></div>
|
||||||
|
<div class="cube__face cube__face--right"></div>
|
||||||
|
<div class="cube__face cube__face--left"></div>
|
||||||
|
<div class="cube__face cube__face--top"></div>
|
||||||
|
<div class="cube__face cube__face--bottom"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="tagline">OFFICIAL SITE</p>
|
<p class="loader__count" id="loader-count">000%</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<header class="bar">
|
||||||
|
<a class="bar__logo" href="/">
|
||||||
|
<span class="sr-only">dangrubb.net home</span>
|
||||||
|
<img src="/src/img/DanGrubbLogoDark.svg" alt="" width="48" height="48" />
|
||||||
|
</a>
|
||||||
|
|
||||||
|
<nav class="menu" id="menu" aria-label="Site">
|
||||||
|
<button class="menu__btn" id="menu-btn" type="button" aria-expanded="false" aria-controls="menu-panel">
|
||||||
|
<span class="sr-only">Site navigation</span>
|
||||||
|
<svg class="menu__icon menu__icon--open" viewBox="0 0 18 14" width="18" height="14" aria-hidden="true">
|
||||||
|
<path d="M0 1h2M5 1h13M0 7h10M13 7h5M0 13h2M5 13h13" stroke="currentColor" stroke-width="1.5" fill="none" />
|
||||||
|
</svg>
|
||||||
|
<svg class="menu__icon menu__icon--close" viewBox="0 0 18 18" width="18" height="18" aria-hidden="true">
|
||||||
|
<path d="M1 1l16 16M17 1L1 17" stroke="currentColor" stroke-width="1.5" fill="none" />
|
||||||
|
</svg>
|
||||||
|
</button>
|
||||||
|
<div class="menu__panel" id="menu-panel">
|
||||||
|
<ul class="menu__list">
|
||||||
|
{nav.map((item, i) => (
|
||||||
|
<li>
|
||||||
|
<a href={item.href}>
|
||||||
|
<span class="menu__num">{String(i + 1).padStart(2, '0')}</span>
|
||||||
|
<span class="menu__label">{item.label}</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
<div class="menu__links">
|
||||||
|
{links.map((l) => (
|
||||||
|
<a class="menu__link" href={l.href}><span>{l.label}</span></a>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main class="logo-section">
|
<main class="hero">
|
||||||
<img src="/src/img/pack-splatter.png" alt="" class="splatter-img">
|
<canvas class="hero__orb" id="orb" aria-hidden="true"></canvas>
|
||||||
<div class="logo-center">
|
<h1 class="hero__title" id="title">Welcome to dangrubb.net</h1>
|
||||||
<img src="/src/img/DanGrubbLogoTeal.png" alt="DanGrubb" class="logo-img">
|
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<footer class="bottom-nav">
|
<script>
|
||||||
<a href="https://ai.dangrubb.net" class="nav-item">AI</a>
|
import { startOrb } from '../scripts/orb.js';
|
||||||
<span class="nav-dot">•</span>
|
import { initUI } from '../scripts/ui.js';
|
||||||
<a href="/blog" class="nav-item">BLOG</a>
|
|
||||||
<span class="nav-dot">•</span>
|
|
||||||
<a href="/music" class="nav-item">MUSIC</a>
|
|
||||||
<span class="nav-dot">•</span>
|
|
||||||
<a href="https://pi.dangrubb.net/jellyfin" class="nav-item">MEDIA</a>
|
|
||||||
<span class="nav-dot">•</span>
|
|
||||||
<a href="https://pi.dangrubb.net/nextcloud" class="nav-item">STORAGE</a>
|
|
||||||
<span class="nav-dot">•</span>
|
|
||||||
<a href="/cv" class="nav-item">CV</a>
|
|
||||||
<span class="nav-dot">•</span>
|
|
||||||
<a href="https://pi.dangrubb.net/dangit" class="nav-item">GIT</a>
|
|
||||||
</footer>
|
|
||||||
</div>
|
|
||||||
</CrushBase>
|
|
||||||
|
|
||||||
<style>
|
initUI(startOrb);
|
||||||
.crush-page {
|
</script>
|
||||||
display: flex;
|
</body>
|
||||||
flex-direction: column;
|
</html>
|
||||||
height: 100vh;
|
|
||||||
height: 100dvh;
|
|
||||||
margin: 0;
|
|
||||||
background: var(--crush-white);
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-banner {
|
|
||||||
text-align: center;
|
|
||||||
padding: 16px 20px 10px;
|
|
||||||
background: linear-gradient(180deg, #e8f5f5 0%, transparent 100%);
|
|
||||||
border-bottom: 3px solid var(--crush-teal);
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand {
|
|
||||||
font-family: 'Alfa Slab One', 'Georgia', serif;
|
|
||||||
font-size: clamp(3rem, 10vw, 5rem);
|
|
||||||
color: var(--crush-teal);
|
|
||||||
letter-spacing: -2px;
|
|
||||||
line-height: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.brand-dot { color: var(--crush-teal-light); }
|
|
||||||
.brand-tld { color: var(--crush-teal-dark); }
|
|
||||||
|
|
||||||
.tagline {
|
|
||||||
font-size: 14px;
|
|
||||||
font-weight: 700;
|
|
||||||
letter-spacing: 4px;
|
|
||||||
color: var(--crush-teal);
|
|
||||||
margin-top: 8px;
|
|
||||||
text-transform: uppercase;
|
|
||||||
opacity: 0.8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-section {
|
|
||||||
flex: 1;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
overflow: hidden;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.splatter-img {
|
|
||||||
position: absolute;
|
|
||||||
inset: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
object-fit: contain;
|
|
||||||
pointer-events: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-center {
|
|
||||||
position: absolute;
|
|
||||||
inset: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
z-index: 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo-img {
|
|
||||||
width: 12%;
|
|
||||||
max-width: 160px;
|
|
||||||
aspect-ratio: 1;
|
|
||||||
object-fit: contain;
|
|
||||||
filter: drop-shadow(0 3px 8px rgba(0, 102, 102, 0.3));
|
|
||||||
}
|
|
||||||
|
|
||||||
.bottom-nav {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 8px;
|
|
||||||
padding: 20px 20px 28px;
|
|
||||||
background: linear-gradient(0deg, #e8f5f5 0%, transparent 100%);
|
|
||||||
border-top: 3px solid var(--crush-teal);
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item {
|
|
||||||
font-size: 18px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: var(--crush-teal);
|
|
||||||
letter-spacing: 2px;
|
|
||||||
padding: 8px 16px;
|
|
||||||
border-radius: 4px;
|
|
||||||
background: rgba(0, 139, 139, 0.05);
|
|
||||||
transition: all 0.3s ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-item:hover {
|
|
||||||
background: rgba(0, 139, 139, 0.15);
|
|
||||||
color: var(--crush-teal-dark);
|
|
||||||
transform: translateY(-3px);
|
|
||||||
box-shadow: 0 4px 12px rgba(0, 139, 139, 0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-dot {
|
|
||||||
font-size: 20px;
|
|
||||||
color: var(--crush-teal);
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
.brand { font-size: 2.5rem; }
|
|
||||||
.top-banner {
|
|
||||||
flex: 1;
|
|
||||||
flex-shrink: 1;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 12px 15px;
|
|
||||||
}
|
|
||||||
.logo-section {
|
|
||||||
aspect-ratio: 3 / 4;
|
|
||||||
flex: none;
|
|
||||||
}
|
|
||||||
.splatter-img {
|
|
||||||
object-fit: cover;
|
|
||||||
}
|
|
||||||
.logo-img { width: 36%; }
|
|
||||||
.nav-item { font-size: 16px; padding: 8px 14px; }
|
|
||||||
.bottom-nav {
|
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 3px;
|
|
||||||
padding: 4px 12px;
|
|
||||||
}
|
|
||||||
.nav-dot { display: none; }
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
1095
src/scripts/orb.js
Normal file
80
src/scripts/ui.js
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
// Loader, title reveal and menu behaviour for the home page.
|
||||||
|
|
||||||
|
export function initUI(startOrb) {
|
||||||
|
const body = document.body;
|
||||||
|
const loader = document.getElementById('loader');
|
||||||
|
const count = document.getElementById('loader-count');
|
||||||
|
const title = document.getElementById('title');
|
||||||
|
const canvas = document.getElementById('orb');
|
||||||
|
const reduced = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
||||||
|
|
||||||
|
// --- title: split into letters (each wrapped per word so lines break cleanly)
|
||||||
|
const text = title.textContent.trim();
|
||||||
|
title.setAttribute('aria-label', text);
|
||||||
|
title.textContent = '';
|
||||||
|
let n = 0;
|
||||||
|
text.split(' ').forEach((word, wi, words) => {
|
||||||
|
const w = document.createElement('span');
|
||||||
|
w.className = 'word';
|
||||||
|
w.setAttribute('aria-hidden', 'true');
|
||||||
|
for (const ch of word) {
|
||||||
|
const mask = document.createElement('span');
|
||||||
|
mask.className = 'ch';
|
||||||
|
const inner = document.createElement('span');
|
||||||
|
inner.textContent = ch;
|
||||||
|
inner.style.transitionDelay = `${0.04 * n++}s`;
|
||||||
|
mask.appendChild(inner);
|
||||||
|
w.appendChild(mask);
|
||||||
|
}
|
||||||
|
title.appendChild(w);
|
||||||
|
if (wi < words.length - 1) title.appendChild(document.createTextNode(' '));
|
||||||
|
});
|
||||||
|
|
||||||
|
// --- loader: counts up while fonts and the first orb frame get ready
|
||||||
|
let orbReady = false;
|
||||||
|
let fontsReady = false;
|
||||||
|
let shown = 0;
|
||||||
|
const started = performance.now();
|
||||||
|
const minimum = reduced ? 0 : 1100;
|
||||||
|
|
||||||
|
const webgl = startOrb(canvas, { onReady: () => { orbReady = true; } });
|
||||||
|
if (!webgl) { document.documentElement.classList.add('no-webgl'); orbReady = true; }
|
||||||
|
(document.fonts ? document.fonts.ready : Promise.resolve()).then(() => { fontsReady = true; });
|
||||||
|
|
||||||
|
function tick(now) {
|
||||||
|
const elapsed = now - started;
|
||||||
|
const real = (orbReady ? 0.5 : 0.1) + (fontsReady ? 0.5 : 0.15);
|
||||||
|
const timed = Math.min(1, elapsed / (minimum || 1));
|
||||||
|
const target = Math.min(real, timed) * 100;
|
||||||
|
shown += (target - shown) * 0.2;
|
||||||
|
if (target - shown < 0.5) shown = target;
|
||||||
|
count.textContent = String(Math.round(shown)).padStart(3, '0') + '%';
|
||||||
|
if (shown >= 99.5 && orbReady && fontsReady && elapsed >= minimum) return done();
|
||||||
|
requestAnimationFrame(tick);
|
||||||
|
}
|
||||||
|
requestAnimationFrame(tick);
|
||||||
|
|
||||||
|
function done() {
|
||||||
|
count.textContent = '100%';
|
||||||
|
body.classList.remove('is-loading');
|
||||||
|
body.classList.add('is-ready');
|
||||||
|
setTimeout(() => loader.remove(), 900);
|
||||||
|
}
|
||||||
|
|
||||||
|
// --- menu
|
||||||
|
const menu = document.getElementById('menu');
|
||||||
|
const btn = document.getElementById('menu-btn');
|
||||||
|
const panel = document.getElementById('menu-panel');
|
||||||
|
|
||||||
|
function setOpen(open) {
|
||||||
|
menu.classList.toggle('is-open', open);
|
||||||
|
btn.setAttribute('aria-expanded', String(open));
|
||||||
|
panel.toggleAttribute('inert', !open);
|
||||||
|
}
|
||||||
|
setOpen(false);
|
||||||
|
btn.addEventListener('click', () => setOpen(!menu.classList.contains('is-open')));
|
||||||
|
addEventListener('keydown', (e) => { if (e.key === 'Escape') { setOpen(false); btn.focus(); } });
|
||||||
|
document.addEventListener('pointerdown', (e) => {
|
||||||
|
if (menu.classList.contains('is-open') && !menu.contains(e.target)) setOpen(false);
|
||||||
|
});
|
||||||
|
}
|
||||||
196
src/styles/radiance.css
Normal file
@ -0,0 +1,196 @@
|
|||||||
|
/* Radiance home page. Sizes are written in --u units (1u = 1px on a 1600px-wide design). */
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--ink: 9 11 17;
|
||||||
|
--u: clamp(0.5px, 0.0625vw, 1.25px);
|
||||||
|
--ease: cubic-bezier(0.33, 0, 0.2, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
*, *::before, *::after { box-sizing: border-box; }
|
||||||
|
html, body { margin: 0; height: 100%; }
|
||||||
|
body {
|
||||||
|
overflow: hidden;
|
||||||
|
background: #fff6f4;
|
||||||
|
color: rgb(var(--ink) / 0.8);
|
||||||
|
font-family: 'Instrument Sans', system-ui, sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
}
|
||||||
|
a { color: inherit; text-decoration: none; }
|
||||||
|
ul { list-style: none; margin: 0; padding: 0; }
|
||||||
|
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
|
||||||
|
img { display: block; }
|
||||||
|
.sr-only {
|
||||||
|
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
|
||||||
|
overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
|
||||||
|
}
|
||||||
|
:focus-visible { outline: 2px solid rgb(var(--ink) / 0.7); outline-offset: 2px; }
|
||||||
|
|
||||||
|
/* ---------- hero ---------- */
|
||||||
|
.hero {
|
||||||
|
touch-action: none;
|
||||||
|
position: fixed; inset: 0;
|
||||||
|
background:
|
||||||
|
radial-gradient(115% 80% at 50% 40%, transparent 45%, rgb(251 188 166 / 0.65) 100%),
|
||||||
|
linear-gradient(180deg,
|
||||||
|
#fbddb7 0%, #f9e6bc 14%, #f9ebbc 30%, #f9d9b3 52%,
|
||||||
|
#f7cfac 62%, #f3c19e 70%, #eeae8a 79%, #ee9972 87%, #eb8b63 94%, #ef815c 100%);
|
||||||
|
}
|
||||||
|
.hero__orb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
|
||||||
|
|
||||||
|
.hero__title {
|
||||||
|
position: absolute; left: 0; right: 0; top: 24%;
|
||||||
|
margin: 0; padding: 0 24px;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: clamp(30px, 3.34vw, 64px);
|
||||||
|
line-height: 1;
|
||||||
|
letter-spacing: -0.03em;
|
||||||
|
color: rgb(var(--ink) / 0.8);
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.word { display: inline-block; white-space: nowrap; }
|
||||||
|
.ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
|
||||||
|
.ch > span {
|
||||||
|
display: inline-block;
|
||||||
|
transform: translateY(110%);
|
||||||
|
transition: transform 0.9s var(--ease);
|
||||||
|
}
|
||||||
|
.is-ready .ch > span { transform: none; }
|
||||||
|
|
||||||
|
/* fallback when WebGL is unavailable: a flat glowing sphere */
|
||||||
|
.no-webgl .hero::after {
|
||||||
|
content: ''; position: absolute; left: 50%; top: 52%;
|
||||||
|
width: 52.5vw; max-width: 1100px; aspect-ratio: 1; transform: translateX(-50%);
|
||||||
|
border-radius: 50%;
|
||||||
|
background: radial-gradient(circle at 35% 30%, #fdd29a, #fb9a63 60%, #f06a4a);
|
||||||
|
box-shadow: 0 0 0 2px rgb(255 235 230 / 0.8), 0 0 80px rgb(255 245 220 / 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- top bar ---------- */
|
||||||
|
.bar { position: fixed; z-index: 10; inset: 0 0 auto 0; pointer-events: none; }
|
||||||
|
.bar > * { pointer-events: auto; }
|
||||||
|
.bar__logo {
|
||||||
|
position: absolute; left: calc(14 * var(--u)); top: calc(14 * var(--u));
|
||||||
|
opacity: 0; transition: opacity 0.8s var(--ease) 0.2s;
|
||||||
|
}
|
||||||
|
.bar__logo img { width: calc(80 * var(--u)); height: calc(80 * var(--u)); min-width: 48px; min-height: 48px; }
|
||||||
|
.is-ready .bar__logo { opacity: 1; }
|
||||||
|
|
||||||
|
/* ---------- menu ---------- */
|
||||||
|
.menu {
|
||||||
|
position: absolute; right: calc(20 * var(--u)); top: calc(30 * var(--u));
|
||||||
|
opacity: 0; transition: opacity 0.8s var(--ease) 0.3s;
|
||||||
|
}
|
||||||
|
.is-ready .menu { opacity: 1; }
|
||||||
|
.menu__btn {
|
||||||
|
position: relative; z-index: 2;
|
||||||
|
display: flex; align-items: center; justify-content: center;
|
||||||
|
width: 40px; height: 40px;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) { .menu__btn { width: calc(64 * var(--u)); height: calc(64 * var(--u)); min-width: 40px; min-height: 40px; } }
|
||||||
|
.menu__icon { position: absolute; transition: opacity 0.25s, transform 0.4s var(--ease); }
|
||||||
|
.menu__icon--close { opacity: 0; transform: rotate(-45deg); }
|
||||||
|
.is-open .menu__icon--open { opacity: 0; transform: rotate(45deg); }
|
||||||
|
.is-open .menu__icon--close { opacity: 1; transform: none; }
|
||||||
|
|
||||||
|
.menu__panel {
|
||||||
|
position: absolute; top: 0; right: 0; z-index: 1;
|
||||||
|
background: #fff;
|
||||||
|
width: max-content; max-width: calc(100vw - 24px);
|
||||||
|
padding: calc(50 * var(--u)) calc(20 * var(--u)) calc(20 * var(--u));
|
||||||
|
clip-path: inset(0 0 100% 0);
|
||||||
|
visibility: hidden;
|
||||||
|
transition: clip-path 0.5s var(--ease), visibility 0s 0.5s;
|
||||||
|
}
|
||||||
|
.is-open .menu__panel { clip-path: inset(0); visibility: visible; transition: clip-path 0.5s var(--ease); }
|
||||||
|
@media (max-width: 767px) { .menu__panel { width: calc(100vw - 24px); padding: 64px 16px 16px; } }
|
||||||
|
|
||||||
|
.menu__list li { border-bottom: 1px solid rgb(var(--ink) / 0.15); }
|
||||||
|
.menu__list a {
|
||||||
|
display: flex; align-items: baseline;
|
||||||
|
padding: calc(6.5 * var(--u)) calc(60 * var(--u)) calc(6.5 * var(--u)) 0;
|
||||||
|
font-weight: 500; font-size: calc(18 * var(--u)); line-height: 1.2; white-space: nowrap;
|
||||||
|
transition: opacity 0.3s;
|
||||||
|
}
|
||||||
|
.menu__num {
|
||||||
|
margin-right: calc(16 * var(--u));
|
||||||
|
font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 500;
|
||||||
|
font-size: calc(14 * var(--u)); text-transform: uppercase; letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
.menu__list:hover a:not(:hover), .menu__list:focus-within a:not(:focus-visible):not(:hover) { opacity: 0.45; }
|
||||||
|
.menu__list li, .menu__links { transform: translateY(8px); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.4s; }
|
||||||
|
.is-open .menu__list li, .is-open .menu__links { transform: none; opacity: 1; }
|
||||||
|
.is-open .menu__list li:nth-child(1) { transition-delay: 0.10s; }
|
||||||
|
.is-open .menu__list li:nth-child(2) { transition-delay: 0.14s; }
|
||||||
|
.is-open .menu__list li:nth-child(3) { transition-delay: 0.18s; }
|
||||||
|
.is-open .menu__list li:nth-child(4) { transition-delay: 0.22s; }
|
||||||
|
.is-open .menu__list li:nth-child(5) { transition-delay: 0.26s; }
|
||||||
|
.is-open .menu__links { transition-delay: 0.32s; }
|
||||||
|
|
||||||
|
.menu__links { display: flex; gap: calc(24 * var(--u)); padding-top: calc(39 * var(--u)); }
|
||||||
|
.menu__link {
|
||||||
|
position: relative; display: inline-block; overflow: hidden;
|
||||||
|
font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 500;
|
||||||
|
font-size: calc(14 * var(--u)); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
.menu__link::after {
|
||||||
|
content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
|
||||||
|
background: rgb(var(--ink) / 0.3); transform: translateX(-101%); transition: transform 0.4s;
|
||||||
|
}
|
||||||
|
.menu__link:hover::after, .menu__link:focus-visible::after { transform: none; }
|
||||||
|
@media (max-width: 767px) {
|
||||||
|
.menu__list a { padding: 10px 40px 10px 0; font-size: 18px; }
|
||||||
|
.menu__num { font-size: 12px; margin-right: 14px; }
|
||||||
|
.menu__links { gap: 20px; padding-top: 28px; }
|
||||||
|
.menu__link { font-size: 12px; }
|
||||||
|
.bar__logo { left: 12px; top: 12px; }
|
||||||
|
.bar__logo img { width: 44px; height: 44px; }
|
||||||
|
.menu { right: 12px; top: 12px; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ---------- loader ---------- */
|
||||||
|
.loader {
|
||||||
|
position: fixed; inset: 0; z-index: 1000;
|
||||||
|
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
||||||
|
padding: 32px;
|
||||||
|
background: #fff6f4;
|
||||||
|
transition: opacity 0.7s var(--ease) 0.1s, visibility 0s 0.8s;
|
||||||
|
}
|
||||||
|
.is-ready .loader { opacity: 0; visibility: hidden; }
|
||||||
|
.loader__stage { flex-grow: 1; display: flex; align-items: center; }
|
||||||
|
.scene { margin: 80px; width: 140px; height: 140px; perspective: 400px; transform: translateZ(0); }
|
||||||
|
.cube {
|
||||||
|
position: relative; width: 140px; height: 140px;
|
||||||
|
transform-style: preserve-3d; transform: translateZ(-100px);
|
||||||
|
animation: spin 3s var(--ease) infinite;
|
||||||
|
}
|
||||||
|
.cube__face {
|
||||||
|
position: absolute; width: 140px; height: 140px;
|
||||||
|
background: rgb(var(--ink)); border: 2px solid rgb(var(--ink));
|
||||||
|
display: flex; align-items: center; justify-content: center;
|
||||||
|
}
|
||||||
|
.cube__face img { width: 100%; height: 100%; padding: 14px; }
|
||||||
|
.cube__face--front { transform: rotateY(0) translateZ(70px); }
|
||||||
|
.cube__face--right { transform: rotateY(90deg) translateZ(70px); }
|
||||||
|
.cube__face--back { transform: rotateY(180deg) translateZ(70px); }
|
||||||
|
.cube__face--left { transform: rotateY(-90deg) translateZ(70px); }
|
||||||
|
.cube__face--top { transform: rotateX(90deg) translateZ(70px); }
|
||||||
|
.cube__face--bottom { transform: rotateX(-90deg) translateZ(70px); }
|
||||||
|
.is-ready .cube { animation: none; }
|
||||||
|
@keyframes spin {
|
||||||
|
0% { transform: translateZ(-100px) rotateY(0); }
|
||||||
|
40%, 50% { transform: translateZ(-100px) rotateY(-180deg); }
|
||||||
|
90%, 100% { transform: translateZ(-100px) rotateY(-360deg); }
|
||||||
|
}
|
||||||
|
.loader__count {
|
||||||
|
margin: 0; flex-shrink: 0;
|
||||||
|
font-family: 'Geist Mono', ui-monospace, monospace; font-weight: 500;
|
||||||
|
font-size: 16px; line-height: 1; text-transform: uppercase; color: rgb(var(--ink) / 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.cube { animation: none; }
|
||||||
|
.ch > span { transform: none; transition: none; }
|
||||||
|
* { transition-duration: 0.01s !important; }
|
||||||
|
}
|
||||||