Přidání vánočních prvků

This commit is contained in:
2024-12-06 16:53:24 +01:00
parent 9b7abb0703
commit 98f2b2a1e0
6 changed files with 54 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ import { ToastContainer } from 'react-toastify';
import { ProvideSettings } from './context/settings';
import 'react-toastify/dist/ReactToastify.css';
import './index.css';
import Snowfall from 'react-snowfall';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
@@ -16,7 +17,14 @@ root.render(
<ProvideAuth>
<ProvideSettings>
<SocketContext.Provider value={socket}>
<App />
<>
<Snowfall style={{
zIndex: 2,
position: 'fixed',
width: '100vw',
height: '100vh'}} />
<App />
</>
<ToastContainer />
</SocketContext.Provider>
</ProvideSettings>