📈 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
Add some colours to logo
Blue Mouse55a62987c206
diff --git a/web/app/ui/icons/SwetrixLogo.tsx b/web/app/ui/icons/SwetrixLogo.tsxindex 64db12361..6b98ef0f7 100644--- a/web/app/ui/icons/SwetrixLogo.tsx+++ b/web/app/ui/icons/SwetrixLogo.tsx@@ -1,4 +1,5 @@import cx from 'clsx'+import { useId } from 'react'import { useTranslation } from 'react-i18next'import { isSelfhosted, ThemeType } from '~/lib/constants'@@ -12,6 +13,7 @@ interface SwetrixLogoProps {const SwetrixLogo = ({ className, theme: themeOverride }: SwetrixLogoProps) => {const { theme: currentTheme } = useTheme()const { t } = useTranslation()+ const gradientId = useId()const theme = themeOverride || currentTheme@@ -23,18 +25,40 @@ const SwetrixLogo = ({ className, theme: themeOverride }: SwetrixLogoProps) => {)}><svg- className={cx(theme === 'dark' ? 'text-white' : 'text-slate-900')}height='28'width='24'viewBox='0 0 24 28'aria-hidden='true'- fill='currentColor'>- <circle cx='4' cy='22' r='3' />- <circle cx='12' cy='22' r='3' />- <circle cx='12' cy='14' r='3' />- <circle cx='20' cy='14' r='3' />- <circle cx='12' cy='6' r='3' />+ <defs>+ <linearGradient+ id={gradientId}+ x1='20'+ y1='4'+ x2='4'+ y2='24'+ gradientUnits='userSpaceOnUse'+ >+ {theme === 'dark' ? (+ <>+ <stop offset='0%' stopColor='#f9fafb' />+ <stop offset='100%' stopColor='#4f46e5' />+ </>+ ) : (+ <>+ <stop offset='0%' stopColor='#0f172a' />+ <stop offset='100%' stopColor='#4f46e5' />+ </>+ )}+ </linearGradient>+ </defs>+ <g fill={`url(#${gradientId})`}>+ <circle cx='4' cy='22' r='3' />+ <circle cx='12' cy='22' r='3' />+ <circle cx='12' cy='14' r='3' />+ <circle cx='20' cy='14' r='3' />+ <circle cx='12' cy='6' r='3' />+ </g></svg><div className='flex flex-col'><span