Skip to content

Commit b2a3937

Browse files
committed
feat: use div for background
i dont really like this method but it seems like it fixes the flashing and works better on mobile devices, its the same as the old website. if it causes issues ill revert this
1 parent ccda89d commit b2a3937

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/Header.astro

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ import DownloadButton from "./ui/DownloadButton.astro";
77
<header
88
class="p-4 pb-0 flex flex-col gap-4 sm:flex-row sm:justify-between sm:items-center"
99
>
10+
<div
11+
class="w-screen h-screen fixed top-0 left-0 -z-50 bg-center bg-no-repeat bg-cover bg-[url('/img/background/prism-backgroundLight.svg')] dark:bg-[url('/img/background/prism-backgroundDark.svg')]"
12+
>
13+
</div>
1014
<div
1115
class="flex flex-col items-center text-center gap-4 sm:text-left sm:flex-row sm:justify-start"
1216
>

src/layouts/MainLayout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const {
2626
<link rel="sitemap" href="/sitemap-index.xml" />
2727
</head>
2828
<body
29-
class="flex flex-col min-h-screen max-w-4xl min-[128rem]:max-w-6xl mx-auto gap-4 sm:pb-4 bg-center bg-no-repeat bg-cover bg-fixed bg-prism-background-light dark:bg-prism-background-dark bg-[url('/img/background/prism-backgroundLight.svg')] dark:bg-[url('/img/background/prism-backgroundDark.svg')]"
29+
class="flex flex-col min-h-screen max-w-4xl min-[128rem]:max-w-6xl mx-auto gap-4 sm:pb-4 bg-prism-background-light dark:bg-prism-background-dark"
3030
>
3131
<Header />
3232
<main class="flex-1 flex flex-col gap-4">

0 commit comments

Comments
 (0)