📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
added theme switch smooth transition
Blue Moused58b5e347aba
diff --git a/public/index.html b/public/index.htmlindex f1721fb05..2810c3cac 100644--- a/public/index.html+++ b/public/index.html@@ -19,7 +19,7 @@<script src="%PUBLIC_URL%/env.js"></script><title>Swetrix Analytics</title></head>- <body>+ <body class="transition-colors duration-300"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body>diff --git a/src/pages/MainPage/index.jsx b/src/pages/MainPage/index.jsxindex e6c503bb5..ecb1e8bee 100644--- a/src/pages/MainPage/index.jsx+++ b/src/pages/MainPage/index.jsx@@ -96,8 +96,6 @@ const Features = ({ t }) => (const Main = () => {const { t } = useTranslation('common')const { theme } = useSelector(state => state.ui.theme)- const { stats } = useSelector(state => state.ui.misc)- console.log(stats)return (<Title title='Privacy Respecting Web Analytics Platform'>diff --git a/src/redux/reducers/ui/theme.js b/src/redux/reducers/ui/theme.jsindex db30f7ec5..3cbf5dfb6 100644--- a/src/redux/reducers/ui/theme.js+++ b/src/redux/reducers/ui/theme.js@@ -18,7 +18,7 @@ const getInitialTheme = () => {}const setTheme = (rawTheme) => {- const root = window.document.documentElement+ const root = window.document.bodyconst isDark = rawTheme === 'dark'root.classList.remove(isDark ? 'light' : 'dark')