Skip to content

📈 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!

added dark-mode picture to the 'swetrix opensource' section

Blue Mousea89637ff1f76
diff --git a/public/assets/opensource_dark.png b/public/assets/opensource_dark.png
new file mode 100644
index 000000000..ade65ed02
Binary files /dev/null and b/public/assets/opensource_dark.png differ
diff --git a/public/assets/openSource.png b/public/assets/opensource_light.png
similarity index 100%
rename from public/assets/openSource.png
rename to public/assets/opensource_light.png
diff --git a/src/pages/MainPage/NewMainPage.jsx b/src/pages/MainPage/NewMainPage.jsx
index 8656c1839..13e669f62 100644
--- a/src/pages/MainPage/NewMainPage.jsx
+++ b/src/pages/MainPage/NewMainPage.jsx
@@ -519,7 +519,7 @@ const Main = () => {
</div>
</section>
<section className='flex items-center lg:flex-row flex-col-reverse justify-between max-w-[1300px] w-full mx-auto py-20 lg:py-32 px-5'>
- <img src='/assets/openSource.png' alt='Swetrix open source' />
+ <img src={theme === 'dark' ? '/assets/opensource_dark.png' : '/assets/opensource_light.png'} loading='lazy' alt='Swetrix open source' />
<div className='max-w-[516px] w-full lg:ml-5'>
<h1 className='text-[30px] md:text-[38px] text-white font-extrabold'>
<Trans