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!

fixed media and press logos (#415)

Artem Boichukd42ef7065b5d
diff --git a/app/pages/Press/index.tsx b/app/pages/Press/index.tsx
index 17239a729..fc613b565 100644
--- a/app/pages/Press/index.tsx
+++ b/app/pages/Press/index.tsx
@@ -12,12 +12,13 @@ interface ILogoComponent {
description: string
logoPNG: string
logoSVG?: string
+ textColor?: string
}
-const LogoComponent = ({ description, logoSVG, logoPNG }: ILogoComponent): JSX.Element => (
+const LogoComponent = ({ description, logoSVG, logoPNG, textColor }: ILogoComponent): JSX.Element => (
<p>
- <b className='font-bold text-gray-900 dark:text-gray-50 tracking-tight'>{description}</b>
- <img className='h-20 mt-5 mb-2' src={logoSVG || logoPNG} alt={description} />
+ <b className={`font-bold tracking-tight ${textColor}`}>{description}</b>
+ <img className='h-16 sm:h-20 mt-5 mb-2' src={logoSVG || logoPNG} alt={description} />
{logoSVG && (
<a
href={logoSVG}
@@ -34,7 +35,7 @@ const LogoComponent = ({ description, logoSVG, logoPNG }: ILogoComponent): JSX.E
href={logoPNG}
target='_blank'
rel='noopener noreferrer'
- className='hover:underline text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500'
+ className='hover:underline text-indigo-400 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500'
>
PNG
</a>
@@ -44,6 +45,7 @@ const LogoComponent = ({ description, logoSVG, logoPNG }: ILogoComponent): JSX.E
LogoComponent.defaultProps = {
logoSVG: null,
+ textColor: 'text-gray-900 dark:text-gray-50',
}
const Press = (): JSX.Element => {
@@ -64,7 +66,7 @@ const Press = (): JSX.Element => {
url: (
<Link
to={routes.contact}
- className='font-medium hover:underline text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500'
+ className='font-medium hover:underline text-indigo-400 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500'
/>
),
}}
@@ -73,9 +75,13 @@ const Press = (): JSX.Element => {
{/* Logos */}
<h2 className='text-2xl mt-2 font-bold text-gray-900 dark:text-gray-50 tracking-tight'>{t('press.logos')}</h2>
- <div className='grid grid-cols-2 gap-4 mt-2'>
- <LogoComponent description={t('press.logo')} logoPNG='/assets/logo_blue.png' />
- <LogoComponent description={t('press.logoWhiteText')} logoPNG='/assets/logo_white.png' />
+ <div className='grid grid-cols-none sm:grid-cols-2 gap-4 mt-2'>
+ <div className='dark:bg-gray-100 p-2 rounded-lg backdrop-blur-lg bg-gray-100 '>
+ <LogoComponent description={t('press.logo')} logoPNG='/assets/logo_blue.png' textColor='text-black' />
+ </div>
+ <div className='dark:bg-slate-800 p-2 rounded-lg backdrop-blur-lg bg-slate-800'>
+ <LogoComponent description={t('press.logoWhiteText')} logoPNG='/assets/logo_white.png' textColor='text-white' />
+ </div>
</div>
<div className='grid grid-cols-2 gap-4 mt-8'>
<LogoComponent description={t('press.logoNoText')} logoPNG='/logo512.png' />
@@ -93,7 +99,7 @@ const Press = (): JSX.Element => {
<a
aria-label='Inter font website (opens in a new tab)'
href={FONT_INTER_URL}
- className='font-medium hover:underline text-indigo-600 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500'
+ className='font-medium hover:underline text-indigo-400 hover:text-indigo-500 dark:text-indigo-400 dark:hover:text-indigo-500'
target='_blank'
rel='noopener noreferrer'
/>