From ebb897dca40129a978397f28811baade061735d9 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Mon, 3 Nov 2025 00:46:49 +0100 Subject: [PATCH] fix: correctly embed styles.css --- routes/_app.tsx | 20 +++++++++++---- routes/_layout.tsx | 5 +--- static/global.css | 59 ++++++++++++++++++++++++--------------------- static/noise.png | Bin 0 -> 22606 bytes 4 files changed, 47 insertions(+), 37 deletions(-) create mode 100644 static/noise.png diff --git a/routes/_app.tsx b/routes/_app.tsx index af7eac4..0adf36f 100644 --- a/routes/_app.tsx +++ b/routes/_app.tsx @@ -1,11 +1,9 @@ +// deno-lint-ignore-file react-no-danger import { PageProps } from "$fresh/server.ts"; import { Partial } from "$fresh/runtime.ts"; -import { useEffect } from "preact/hooks"; export default function App({ Component }: PageProps) { - const globalCss = Deno - .readTextFileSync("./static/global.css") - .replaceAll("\n", ""); + const globalCss = Deno.readTextFileSync("./static/global.css"); return ( @@ -21,7 +19,19 @@ export default function App({ Component }: PageProps) { - + + +