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!

Merge pull request #122 from kruzhambus/addedComment

Andrii Rb11c3e334e48
diff --cc src/pages/MainPage/index.jsx
index f12d72b95,240e21aa3..443b9071d
--- a/src/pages/MainPage/index.jsx
+++ b/src/pages/MainPage/index.jsx
@@@ -105,14 -99,11 +105,14 @@@ const Main = () =>
</div>
</div>
</div>
-
+ {/* end first block with live demo */}
+ {/* section Core Analytics Features */}
<div className='dark:bg-gray-900 bg-white px-4 pb-24'>
- {/* section Core Analytics Features */}
<section className='flex pt-20 md:pt-48 flex-col-reverse md:flex-row items-center md:items-start md:justify-between max-w-7xl m-auto'>
- <img className='md:max-w-md md:mr-3 mt-3 md:mt-0 lg:max-w-full md:relative md:-top-10' src='/assets/CoreFeaturesLight.png' alt='Core Analytics Features' />
+ <picture>
+ <source srcSet='/assets/CoreFeaturesLight.webp' type='image/webp' />
+ <img src='/assets/CoreFeaturesLight.png' fetchpriority='high' className='md:max-w-md md:mr-3 mt-3 md:mt-0 lg:max-w-full md:relative md:-top-10' alt='Core Analytics Features' />
+ </picture>
<div className='max-w-lg'>
<h1 className='font-extrabold text-4xl dark:text-white text-gray-800'>
{t('main.coreFeatures.title')}
@@@ -510,12 -512,10 +520,13 @@@
</div>
</div>
</section> */}
-
+
+ {/* Advantages of using open source */}
<section className='flex items-center lg:flex-row flex-col-reverse justify-between max-w-7xl w-full mx-auto py-20 lg:py-32 px-5'>
- <img src={theme === 'dark' ? '/assets/opensource_dark.png' : '/assets/opensource_light.png'} loading='lazy' alt='Swetrix open source' />
+ <picture>
+ <source srcSet={theme === 'dark' ? '/assets/opensource_dark.webp' : '/assets/opensource_light.webp'} type='image/webp' />
+ <img src={theme === 'dark' ? '/assets/opensource_dark.png' : '/assets/opensource_light.png'} loading='lazy' alt='Swetrix open source' />
+ </picture>
<div className='max-w-lg w-full lg:ml-5'>
<h1 className='text-3xl md:text-4xl text-white font-extrabold'>
<Trans