diff --git a/aksel.nav.no/website/package.json b/aksel.nav.no/website/package.json index 172c3e0256..f77e78fd8e 100644 --- a/aksel.nav.no/website/package.json +++ b/aksel.nav.no/website/package.json @@ -66,6 +66,7 @@ "react-markdown": "^9.0.1", "react-responsive-masonry": "2.2.0", "react-rx": "^2.1.3", + "react-snowfall": "^2.2.0", "remark-gfm": "^4.0.0", "sanity": "3.59.0", "sanity-plugin-iframe-pane": "^3.1.6", diff --git a/aksel.nav.no/website/pages/index.tsx b/aksel.nav.no/website/pages/index.tsx index 50caba927c..48e9454447 100644 --- a/aksel.nav.no/website/pages/index.tsx +++ b/aksel.nav.no/website/pages/index.tsx @@ -3,6 +3,7 @@ import cl from "clsx"; import { groq } from "next-sanity"; import { GetStaticProps } from "next/types"; import { useState } from "react"; +import Snowfall from "react-snowfall"; import { CompassIcon, ComponentIcon, @@ -197,6 +198,17 @@ const Forside = ({ page, tema, blocks }: PageProps["props"]) => { />
+ {!pause && ( +
+ +
+ )}