Skip to content

Commit

Permalink
Let it snow
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerrecs committed Nov 29, 2024
1 parent 6e0555f commit 649be3c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
20 changes: 20 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-simple-maps": "^3.0.0",
"react-snowfall": "^2.2.0",
"tailwind-merge": "^2.3.0",
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "^1.0.7",
Expand Down
5 changes: 4 additions & 1 deletion src/layout/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ViewTransitions } from "astro:transitions";
import { Tooltips } from 'astro-tooltips';
import Nav from "../components/Navbar.astro"
import '../globals.css'
import Snowfall from 'react-snowfall'
---

<html lang="en" class="scroll-smooth">
Expand Down Expand Up @@ -34,6 +34,9 @@ import '../globals.css'
<ViewTransitions />
</head>
<body class="bg-lightgrey w-full h-full min-h-screen text-black dark:text-white transition ease-in-out delay-50 flex flex-col items-center bg-[url('/img/skies.svg')] bg-cover">
<div class="top-0 absolute -z-10 min-h-screen w-screen">
<Snowfall color="#c7d0e6" client:only/>
</div>
<Nav />
<slot />
<Footer />
Expand Down

0 comments on commit 649be3c

Please sign in to comment.