From 649be3c285371a665802d39336237a7054c85ed5 Mon Sep 17 00:00:00 2001 From: Simon Bjerre Date: Fri, 29 Nov 2024 06:34:50 +0100 Subject: [PATCH] Let it snow --- package-lock.json | 20 ++++++++++++++++++++ package.json | 1 + src/layout/Layout.astro | 5 ++++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index e14a146..68aed6f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,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", @@ -9222,6 +9223,12 @@ "react": "^18.2.0" } }, + "node_modules/react-fast-compare": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", + "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==", + "license": "MIT" + }, "node_modules/react-is": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", @@ -9297,6 +9304,19 @@ "react-dom": "^16.8.0 || 17.x || 18.x" } }, + "node_modules/react-snowfall": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/react-snowfall/-/react-snowfall-2.2.0.tgz", + "integrity": "sha512-dRk7vEHq/ZUOG+JHk2k/hH3HmliOWGXr4rKRDeW4mjWuHeI1r5h0Lc1r2jnTtUS1im702d6tCmNGymlNTdhXYg==", + "license": "MIT", + "dependencies": { + "react-fast-compare": "^3.2.2" + }, + "peerDependencies": { + "react": "^16.8 || 17.x || 18.x", + "react-dom": "^16.8 || 17.x || 18.x" + } + }, "node_modules/react-style-singleton": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/react-style-singleton/-/react-style-singleton-2.2.1.tgz", diff --git a/package.json b/package.json index e0ddedd..ca331bf 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/layout/Layout.astro b/src/layout/Layout.astro index d5a37e9..e371d95 100644 --- a/src/layout/Layout.astro +++ b/src/layout/Layout.astro @@ -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' --- @@ -34,6 +34,9 @@ import '../globals.css' +
+ +