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!

redesign footer

Blue Moused3683407865c
diff --git a/web/app/components/Footer/index.tsx b/web/app/components/Footer/index.tsx
index 9e08b4df6..660b2e1f9 100644
--- a/web/app/components/Footer/index.tsx
+++ b/web/app/components/Footer/index.tsx
@@ -189,7 +189,7 @@ const LanguageSelector = () => {
<Dropdown
position='up'
items={whitelist}
- buttonClassName='!py-2 !px-3 inline-flex items-center rounded-md bg-gray-700 hover:bg-gray-600 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:mr-0 [&>svg]:ml-1 font-medium !text-sm text-gray-300 hover:text-white border border-gray-600'
+ buttonClassName='!py-2 !px-3 inline-flex items-center rounded-md bg-transparent hover:bg-white/10 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:mr-0 [&>svg]:ml-1 font-medium !text-sm text-white border border-white/20'
title={
<span className='inline-flex items-center'>
<Flag className='mr-2 rounded-xs' country={languageFlag[language]} size={16} alt={languages[language]} />
@@ -253,7 +253,7 @@ const ThemeSelector = () => {
onSelect={(item) => setTheme(item.key as 'light' | 'dark')}
className='w-full sm:w-auto'
headless
- buttonClassName='!py-2 !px-3 inline-flex items-center rounded-md bg-gray-700 hover:bg-gray-600 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:mr-0 [&>svg]:ml-1 font-medium !text-sm text-gray-300 hover:text-white border border-gray-600'
+ buttonClassName='!py-2 !px-3 inline-flex items-center rounded-md bg-transparent hover:bg-white/10 [&>svg]:w-4 [&>svg]:h-4 [&>svg]:mr-0 [&>svg]:ml-1 font-medium !text-sm text-white border border-white/20'
/>
)
}
@@ -268,15 +268,20 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
const year = new Date().getFullYear()
return (
- <footer className='dark:bg-gray-750 bg-gray-800' aria-labelledby='footer-heading'>
+ <footer
+ className='relative overflow-hidden border-t border-white/10 bg-slate-900 pb-20'
+ aria-labelledby='footer-heading'
+ >
<h2 id='footer-heading' className='sr-only'>
Footer
</h2>
- <div className='px-4 pt-8 pb-5 sm:px-6 lg:px-8'>
+ <div className='absolute top-full left-1/2 mt-10 h-[20rem] w-[36rem] -translate-x-1/2 bg-[#C8F2F8]/50 mix-blend-plus-lighter blur-[256px]' />
+ <div className='absolute top-full left-1/2 size-96 -translate-x-1/2 bg-[#C8F2F8]/50 mix-blend-overlay blur-[256px]' />
+ <div className='mx-auto max-w-7xl px-4 pt-8 pb-5 sm:px-6 lg:px-8 lg:pt-12'>
<div className='xl:grid xl:grid-cols-2 xl:gap-8'>
<div className='space-y-5 xl:col-span-1'>
<SwetrixLogo theme='dark' lazy />
- <p className='text-base text-gray-300'>
+ <p className='text-base text-white'>
{isSelfhosted ? (
<Trans
t={t}
@@ -296,7 +301,7 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
t('footer.description')
)}
</p>
- <div className='flex text-gray-300'>
+ <div className='flex text-white'>
<Trans t={t} i18nKey='footer.madeInHostedIn'>
<Flag className='mx-[1ch]' country='GB' size={18} alt='GB' aria-hidden='true' />
<Flag className='mx-[1ch]' country='UA' size={18} alt='UA' aria-hidden='true' />
@@ -311,7 +316,7 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
title={item.name}
target='_blank'
rel='noopener noreferrer'
- className='text-gray-400 hover:text-gray-300'
+ className='text-white hover:text-gray-200'
aria-label={`${item.name} (opens in a new tab)`}
>
<span className='sr-only'>{item.name}</span>
@@ -324,14 +329,14 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
<LanguageSelector />
<ThemeSelector />
</div>
- <p className='text-base text-gray-300'>
+ <p className='text-base text-white'>
&copy; {year} {t('footer.copy')}
</p>
<a
href='https://u24.gov.ua/'
target='_blank'
rel='noreferrer noopener'
- className='block max-w-max items-center border-b-2 border-transparent text-base text-gray-300 hover:border-gray-300'
+ className='block max-w-max items-center border-b-2 border-transparent text-base text-white hover:border-white'
>
{t('main.ukrSupport')}
<SquareArrowOutUpRightIcon className='mb-1 ml-1 inline size-4' strokeWidth={1.5} />
@@ -341,7 +346,7 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
<div className='mt-12 xl:mt-0'>
<div className='grid grid-cols-2 gap-8 md:grid-cols-3'>
<div>
- <h3 className='text-sm font-semibold tracking-wider text-white uppercase'>{t('footer.features')}</h3>
+ <h3 className='text-sm font-bold tracking-wider text-white uppercase'>{t('footer.features')}</h3>
<ul className='mt-4 space-y-4'>
{_map(navigation.features, (data) => {
const { value, key, href, internal } = data
@@ -351,13 +356,13 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
return (
<li key={displayValue}>
{internal ? (
- <Link to={href} className='text-base text-gray-300 hover:text-white'>
+ <Link to={href} className='text-base text-white hover:text-gray-200'>
{displayValue}
</Link>
) : (
<a
href={href}
- className='text-base text-gray-300 hover:text-white'
+ className='text-base text-white hover:text-gray-200'
target='_blank'
rel='noopener noreferrer'
aria-label={`${displayValue} (opens in a new tab)`}
@@ -371,18 +376,18 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
</ul>
</div>
<div>
- <h3 className='text-sm font-semibold tracking-wider text-white uppercase'>{t('footer.company')}</h3>
+ <h3 className='text-sm font-bold tracking-wider text-white uppercase'>{t('footer.company')}</h3>
<ul className='mt-4 space-y-4'>
{_map(navigation.company, ({ key, href, internal }) => (
<li key={key}>
{internal ? (
- <Link to={href} className='text-base text-gray-300 hover:text-white'>
+ <Link to={href} className='text-base text-white hover:text-gray-200'>
{t(`footer.${key}`)}
</Link>
) : (
<a
href={href}
- className='text-base text-gray-300 hover:text-white'
+ className='text-base text-white hover:text-gray-200'
target='_blank'
rel='noopener noreferrer'
aria-label={`${t(`footer.${key}`)} (opens in a new tab)`}
@@ -395,7 +400,7 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
</ul>
</div>
<div className='mt-12 md:mt-0'>
- <h3 className='text-sm font-semibold tracking-wider text-white uppercase'>{t('footer.legal')}</h3>
+ <h3 className='text-sm font-bold tracking-wider text-white uppercase'>{t('footer.legal')}</h3>
<ul className='mt-4 space-y-4'>
{_map(navigation.legal, (func) => {
const { key, href, internal } = func(isAuthenticated)
@@ -403,13 +408,13 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
return (
<li key={key}>
{internal ? (
- <Link to={href} className='text-base text-gray-300 hover:text-white'>
+ <Link to={href} className='text-base text-white hover:text-gray-200'>
{t(`footer.${key}`)}
</Link>
) : (
<a
href={href}
- className='text-base text-gray-300 hover:text-white'
+ className='text-base text-white hover:text-gray-200'
target='_blank'
rel='noopener noreferrer'
aria-label={`${t(`footer.${key}`)} (opens in a new tab)`}
@@ -424,7 +429,7 @@ const Footer = ({ showDBIPMessage }: FooterProps) => {
{showDBIPMessage ? (
<li>
<a
- className='text-base text-gray-300 hover:text-white'
+ className='text-base text-white hover:text-gray-200'
target='_blank'
rel='noopener noreferrer'
href='https://db-ip.com'