Skip to content

Commit

Permalink
feat: remove snowfall effect (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
BurakYs authored Jan 2, 2025
1 parent fa2a577 commit e8e146d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
15 changes: 0 additions & 15 deletions client/app/layout-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,10 @@ import useGeneralStore from '@/stores/general';
import FullPageLoading from './components/FullPageLoading';
import useLanguageStore from '@/stores/language';
import ReportButtonProvider from '@/app/components/Providers/ReportButton';
import Snowfall from 'react-snowfall';
import useThemeStore from '@/stores/theme';

export default function RootLayoutContent({ children }) {
const language = useLanguageStore(state => state.language);
const showFullPageLoading = useGeneralStore(state => state.showFullPageLoading);
const theme = useThemeStore(state => state.theme);

useEffect(() => {
const html = document.documentElement;
Expand All @@ -33,18 +30,6 @@ export default function RootLayoutContent({ children }) {

return (
<section key={language}>
<Snowfall
snowflakeCount={100}
speed={[0.5, 1]}
wind={[1, 4.5]}
radius={[0.5, 3]}
style={{
zIndex: 9999999,
position: 'fixed'
}}
color={theme === 'dark' ? '#fff' : '#000'}
/>

<Script
defer={true}
src={config.analytics.script}
Expand Down
1 change: 0 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
"react-markdown": "^9.0.1",
"react-medium-image-zoom": "^5.2.11",
"react-ripples": "^2.2.1",
"react-snowfall": "^2.2.0",
"react-syntax-highlighter": "^15.5.0",
"react-text-transition": "^3.1.0",
"react-twemoji": "^0.6.0",
Expand Down
20 changes: 0 additions & 20 deletions client/pnpm-lock.yaml

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

0 comments on commit e8e146d

Please sign in to comment.