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!

replace features list with icons & lower the Y gap for mobile devices

Blue Mouse9ec6ad40270a
diff --git a/src/pages/MainPage/index.tsx b/src/pages/MainPage/index.tsx
index dfa244da2..efe861870 100644
--- a/src/pages/MainPage/index.tsx
+++ b/src/pages/MainPage/index.tsx
@@ -7,6 +7,9 @@ import { useSelector } from 'react-redux'
import {
ArrowTopRightOnSquareIcon, ArrowSmallRightIcon, CheckCircleIcon, CheckIcon, XMarkIcon, ChevronRightIcon,
} from '@heroicons/react/24/solid'
+import {
+ CodeBracketIcon, PuzzlePieceIcon, ShareIcon, ArrowsPointingOutIcon, LightBulbIcon, ArrowTrendingUpIcon,
+} from '@heroicons/react/20/solid'
import { TypeAnimation } from 'react-type-animation'
import _map from 'lodash/map'
import _reduce from 'lodash/reduce'
@@ -127,6 +130,15 @@ const Lines = (): JSX.Element => (
</div>
)
+const M_FEATURES_ICONS = [
+ <ArrowsPointingOutIcon className='w-5 h-5' key='ArrowsPointingOutIcon' />,
+ <CodeBracketIcon className='w-5 h-5' key='CodeBracketIcon' />,
+ <PuzzlePieceIcon className='w-5 h-5' key='PuzzlePieceIcon' />,
+ <ArrowTrendingUpIcon className='w-5 h-5' key='ArrowTrendingUpIcon' />,
+ <LightBulbIcon className='w-5 h-5' key='LightBulbIcon' />,
+ <ShareIcon className='w-5 h-5' key='ShareIcon' />,
+]
+
const Main = (): JSX.Element => {
const { t, i18n: { language } }: {
t: (key: string, options?: {
@@ -512,15 +524,19 @@ const Main = (): JSX.Element => {
<h2 className='mt-20 text-center text-3xl sm:text-5xl text-slate-900 dark:text-white font-extrabold max-w-lg w-full mx-auto'>
{t('main.marketplaceBlock')}
</h2>
- <div className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-y-24 justify-between justify-items-center text-slate-900 dark:text-white pt-20 pb-36'>
+ <div className='grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-y-10 sm:gap-y-24 justify-between justify-items-center text-slate-900 dark:text-white pt-20 pb-36'>
{_map(t('main.mFeatures', { returnObjects: true }), (item: {
name: string
desc: string
}, index: number) => (
<div key={item.name} className='max-w-[310px] w-full'>
<div className='flex items-center'>
- <span className='text-slate-900 dark:text-gray-200 font-bold text-[26px] mr-[18px]'>{1 + index}</span>
- <h2 className='font-semibold text-xl'>{item.name}</h2>
+ <span className='text-slate-900 dark:text-gray-200 text-xl mr-4'>
+ {M_FEATURES_ICONS[index]}
+ </span>
+ <h2 className='font-semibold text-xl'>
+ {item.name}
+ </h2>
</div>
<p className='pl-9 text-slate-700 dark:text-gray-300'>{item.desc}</p>
</div>