diff --git a/src/components/Computer.svelte b/src/components/Computer.svelte index bc9b167..86a9d97 100644 --- a/src/components/Computer.svelte +++ b/src/components/Computer.svelte @@ -98,7 +98,7 @@ }); -
+
diff --git a/src/components/Music.svelte b/src/components/Music.svelte index 0494f53..f5eb1e7 100644 --- a/src/components/Music.svelte +++ b/src/components/Music.svelte @@ -26,7 +26,7 @@ }); -
+
diff --git a/src/components/Projects.svelte b/src/components/Projects.svelte index b8f94c7..65c90ba 100644 --- a/src/components/Projects.svelte +++ b/src/components/Projects.svelte @@ -133,7 +133,7 @@
{/snippet} -
+
{@render projectColumn(leftColumn)} {@render projectColumn(rightColumn)}
diff --git a/src/components/ThemeButton.svelte b/src/components/ThemeButton.svelte new file mode 100644 index 0000000..445fa97 --- /dev/null +++ b/src/components/ThemeButton.svelte @@ -0,0 +1,31 @@ + + + diff --git a/src/components/Tools.astro b/src/components/Tools.astro index 2da30ed..e68e88c 100644 --- a/src/components/Tools.astro +++ b/src/components/Tools.astro @@ -16,7 +16,7 @@ import DockerIcon from "../assets/icons/coding/docker.svg"; import LinuxIcon from "../assets/icons/coding/linux.svg"; --- -
+
tools @@ -26,9 +26,7 @@ import LinuxIcon from "../assets/icons/coding/linux.svg";
-
+
VSCodium @@ -46,9 +44,7 @@ import LinuxIcon from "../assets/icons/coding/linux.svg";
-
+
TypeScript @@ -78,9 +74,7 @@ import LinuxIcon from "../assets/icons/coding/linux.svg";
-
+
Svelte diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 759f688..0e6e524 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -6,6 +6,7 @@ import "../style.css"; import { Image } from "astro:assets"; +import ThemeButton from "../components/ThemeButton.svelte"; import Socials from "../components/Socials.astro"; import Clock from "../components/Clock.svelte"; import Online from "../components/Online.svelte"; @@ -15,11 +16,10 @@ import Footer from "../components/Footer.astro"; import KawaiiLogo from "../assets/kawaii.svg"; import TrafficConeAlt from "../assets/traffic-cone-alt.svg"; -import Lunar from "../assets/lunar.svg"; import ProfilePicture from "../../public/pfp.webp"; --- - + @@ -71,10 +71,10 @@ import ProfilePicture from "../../public/pfp.webp"; - + - +
@@ -86,7 +86,7 @@ import ProfilePicture from "../../public/pfp.webp"; height="160" alt="profile picture" decoding="async" - class="rounded-full animate-spin animate-duration-2s hover:animate-running not-hover:animate-pause max-h-40 max-w-40 min-h-40 min-w-40" + class="rounded-full drop-shadow-md animate-spin animate-duration-2s hover:animate-running not-hover:animate-pause max-h-40 max-w-40 min-h-40 min-w-40" /> diff --git a/src/pages/buttons.astro b/src/pages/buttons.astro index df7320a..41a9b22 100644 --- a/src/pages/buttons.astro +++ b/src/pages/buttons.astro @@ -5,7 +5,9 @@ import EightyEightyThirtyOne from "../components/88x31.svelte"; --- -
+
buttons

diff --git a/src/pages/index.astro b/src/pages/index.astro index 178e17a..45a566c 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -10,7 +10,7 @@ import LocationIcon from "../assets/icons/location.svg"; --- -

+
about

Hey! I'm trafficlunar. I'm a year old self-proclaimed full-stack developer. @@ -45,7 +45,9 @@ import LocationIcon from "../assets/icons/location.svg"; -

+

projects
diff --git a/src/style.css b/src/style.css index eaeef3e..7c71b95 100644 --- a/src/style.css +++ b/src/style.css @@ -19,6 +19,39 @@ } } + /* Catppuccin Latte */ + --color-rosewater: #dc8a78; + --color-flamingo: #dd7878; + --color-pink: #ea76cb; + --color-mauve: #8839ef; + --color-red: #d20f39; + --color-maroon: #e64553; + --color-peach: #fe640b; + --color-yellow: #df8e1d; + --color-green: #40a02b; + --color-teal: #179287; + --color-sky: #04a5e5; + --color-sapphire: #209fb5; + --color-blue: #1e66f5; + --color-lavender: #7287fd; + --color-text: #4c4f69; + --color-subtext1: #5c5f77; + --color-subtext0: #6c6f85; + --color-overlay2: #7c7f93; + --color-overlay1: #8c8fa1; + --color-overlay0: #9ca0b0; + --color-surface2: #acb0be; + --color-surface1: #bcc0cc; + --color-surface0: #ccd0da; + --color-base: #eff1f5; + --color-mantle: #e6e9ef; + --color-crust: #dce0e8; + + --color-base-darker: #eceef3; + --color-peach-darker: #ebcec1; +} + +html[data-theme="dark"] { /* Catppuccin Frappe */ --color-rosewater: #f2d5cf; --color-flamingo: #eebebe; @@ -121,3 +154,21 @@ section legend::after { [data-tooltip]:hover::after { @apply opacity-100 scale-100; } + +/* Theme switching transition */ +::view-transition-new(root) { + mask: url('data:image/svg+xml,') right top / 0 + no-repeat; + animation: scale 1s; + animation-fill-mode: both; +} + +::view-transition-old(root) { + animation: none; +} + +@keyframes scale { + to { + mask-size: 250vmax; + } +}