diff --git a/bun.lockb b/bun.lockb index 43af876..fd84fb2 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index ddf9a58..a7b6f00 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "type": "module", "dependencies": { "@sveltejs/enhanced-img": "^0.3.9", + "clsx": "^2.1.1", "svelte-highlight": "^7.7.0" } } diff --git a/src/lib/uwu.ts b/src/lib/uwu.ts new file mode 100644 index 0000000..e430b5d --- /dev/null +++ b/src/lib/uwu.ts @@ -0,0 +1,4 @@ +import { page } from "$app/stores"; +import { get } from "svelte/store"; + +export const isUwU = () => get(page).url.searchParams.has("uwu"); diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index f78f3ef..65b59e9 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,6 +3,8 @@ import "../main.css"; import Footer from "$lib/components/Footer.svelte"; import Nav from "$lib/components/Nav.svelte"; + import { isUwU } from "$lib/uwu"; + import clsx from "clsx"; let { children } = $props(); globalThis.PKGS = "petalpkgs"; @@ -20,10 +22,14 @@