From 6c08b4aa4c89521cadd3c29f4daafc7cbb7fd994 Mon Sep 17 00:00:00 2001 From: YouHaveTrouble Date: Sun, 6 Apr 2025 21:40:05 +0200 Subject: [PATCH] rework home page --- src/assets/img/tiny_yht.png | Bin 0 -> 875 bytes src/components/Footer.astro | 2 +- src/components/Header.astro | 2 +- src/components/Logo.astro | 2 +- src/components/Nav.astro | 1 - src/layouts/BaseLayout.astro | 4 +- src/pages/index.astro | 339 +++++++++++++++++++++++++++-------- src/styles/global.css | 33 +--- 8 files changed, 273 insertions(+), 110 deletions(-) create mode 100755 src/assets/img/tiny_yht.png diff --git a/src/assets/img/tiny_yht.png b/src/assets/img/tiny_yht.png new file mode 100755 index 0000000000000000000000000000000000000000..12505af924300e5b2f205f1f624e1bf7fdceabfc GIT binary patch literal 875 zcmeAS@N?(olHy`uVBq!ia0vp^OM!R`2OE(5y70{t1_ov$PZ!6K3dXkw6|?82GqgSY zUEQI5JBL%mP5GM9iq4K3PBkemPZw-9G&M9$R$G>2dUdPnh7%{8I8s-4aP|aV4B%)9 z@o}5~xAmi2&H0-<*JmdkeUtl6C&K9X^X0Muv?R6a+1A`?8}@HKxT*5* zL*ZfzJNvma94DM&S?Pn9IJ0H@&dmvIzoVtkJp9`3-*YQ&|M^XpyZ0sXf$VN3WHHcL z*LF1jUCZkh8*|sF{q5J^YbF7S9xIRuj#|P?jPMh}Fm}*Z1JCNxOCXPNYFbeRgx8c=-07s=5uQSA^^PU#KrG zt3513j6Wg_&-0f_etq?nbMZX+H%70no)&hS3$(ob@#o8(j`;lnmW6rd{rF(`4zdkN^cH8^^Phk=p5r$>oIXJyOPvYylx0;Lf`uQTwKt@!3 z|28F5h)|$9Y8e|&mf!a`@8E*>^6xi!{rmO1CGfp{{hSB_u>p2gw$8%!`+su%t!E{W zbbtwK&Bhiv+qxqw%=7C~`OeS#duWCIzm%nf(i~9ZAMWJ`Q-1I-wY>_=L=2v;elF{r G5}E+^hH?r3 literal 0 HcmV?d00001 diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 72798bb..07d68b1 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -11,7 +11,7 @@ color: var(--text-secondary); font-size: .8em; margin: 1em auto; - max-width: 1400px; + max-width: var(--wrap); padding: 1em 2em; text-align: center; width: 100%; diff --git a/src/components/Header.astro b/src/components/Header.astro index d457d19..19c0da9 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -9,7 +9,7 @@ const { current = '' } = Astro.props; header { display: flex; margin: 0 auto; - max-width: 1400px; + max-width: var(--wrap); padding: 1em; width: 100%; } diff --git a/src/components/Logo.astro b/src/components/Logo.astro index be552b0..ec0a0c2 100644 --- a/src/components/Logo.astro +++ b/src/components/Logo.astro @@ -6,7 +6,7 @@ const { width, height } = Astro.props; --- - Logo displaying a stylized character with brown hair wearing purple hoodie on a light blue circle background + Logo displaying a stylized character with brown hair wearing purple hoodie on a light blue circle background + + + diff --git a/src/styles/global.css b/src/styles/global.css index 5800c9f..3d791f3 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -5,6 +5,7 @@ --primary-color: #548e9b; --font-family-serif: Merriweather, serif; --font-family-sans: 'Fira Sans', sans-serif; + --wrap: 1400px; } @view-transition { @@ -214,38 +215,6 @@ td { margin: 1em 0; } -.theme-toggle { - display: inline-flex; - align-items: center; - height: 100%; - padding: 0.33em 0.67em; - padding-top: 8px; - margin-left: 10px; - gap: 0.6em; - border-radius: 99em; - background-color: var(--theme-code-inline-bg); -} - -.theme-toggle > label:focus-within { - outline: 2px solid transparent; - box-shadow: 0 0 0 0.08em var(--theme-accent), 0 0 0 0.12em white; -} - -.theme-toggle > label { - color: var(--theme-code-inline-text); - position: relative; - display: flex; - align-items: center; - justify-content: center; - opacity: 0.5; - cursor: pointer; -} - -.theme-toggle .checked { - color: var(--theme-accent); - opacity: 1; -} - input[name='theme-toggle'] { position: absolute; opacity: 0;