Skip to content

Commit

Permalink
Add snow
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabendorf committed Dec 8, 2024
1 parent ef0c53f commit b820c44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import { useSettings } from "./hooks/useSettings";
import Navbar from "./components/Navbar";
import Footer from "./components/Footer";
import PageContainer from "./components/PageContainer";
import Snowfall from 'react-snowfall'

function App() {
const [{ theme }] = useSettings();
const isDecember = new Date().getMonth() === 11;

useEffect(() => {
if (theme === "dark") {
Expand All @@ -22,6 +24,12 @@ function App() {

return (
<PageContainer>
{isDecember && (
<Snowfall
// Changes the snowflake color
color="#00BCD4"
/>
)}
<ToastContainer
hideProgressBar
position="top-center"
Expand Down

1 comment on commit b820c44

@maxbax0808
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't there be snow in January as well?

Please sign in to comment.