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!

update image import footer

Maksim Mrugc7e6455c9426
diff --git a/app/components/Footer/index.tsx b/app/components/Footer/index.tsx
index fa5d7d812..b8686d3da 100644
--- a/app/components/Footer/index.tsx
+++ b/app/components/Footer/index.tsx
@@ -12,6 +12,14 @@ import {
} from 'redux/constants'
import routesPath from 'routesPath'
+import LogoWhiteImage from 'assets/logo_white.png'
+import LinkedinImage from 'assets/linkedin.svg'
+import FirefoxImage from 'assets/firefox.svg'
+import ChromeImage from 'assets/chrome.svg'
+import PciImage from 'assets/pci.png'
+import VisaImage from 'assets/visa.png'
+import McImage from 'assets/mc.png'
+
const navigation = {
support: [
(authenticated: boolean | undefined): {
@@ -91,21 +99,21 @@ const navigation = {
name: 'LinkedIn',
href: LINKEDIN_URL,
icon: () => (
- <img className='h-6 w-6 opacity-75 hover:opacity-90 bg-white rounded' aria-hidden='true' src='/assets/linkedin.svg' alt='LinkedIn' />
+ <img className='h-6 w-6 opacity-75 hover:opacity-90 bg-white rounded' aria-hidden='true' src={LinkedinImage} alt='LinkedIn' />
),
},
{
name: 'Firefox Addon',
href: FIREFOX_ADDON_URL,
icon: () => (
- <img className='h-6 w-6 opacity-75 hover:opacity-90' aria-hidden='true' src='/assets/firefox.svg' alt='Firefox' />
+ <img className='h-6 w-6 opacity-75 hover:opacity-90' aria-hidden='true' src={FirefoxImage} alt='Firefox' />
),
},
{
name: 'Chrome Extension',
href: CHROME_EXTENSION_URL,
icon: () => (
- <img className='h-6 w-6 opacity-75 hover:opacity-90' aria-hidden='true' src='/assets/chrome.svg' alt='Chrome' />
+ <img className='h-6 w-6 opacity-75 hover:opacity-90' aria-hidden='true' src={ChromeImage} alt='Chrome' />
),
},
],
@@ -200,7 +208,7 @@ const Footer = ({ minimal, authenticated }: {
<div className='xl:grid xl:grid-cols-3 xl:gap-8'>
<div className='space-y-8 xl:col-span-1'>
<div className='flex gap-5 flex-wrap'>
- <img className='h-7' height='28px' src='/assets/logo_white.png' loading='lazy' alt='Swetrix Analytics' />
+ <img className='h-7' height='28px' src={LogoWhiteImage} loading='lazy' alt='Swetrix Analytics' />
</div>
<p className='text-gray-300 text-base'>
{t('footer.slogan')}
@@ -316,9 +324,9 @@ const Footer = ({ minimal, authenticated }: {
</div>
</div>
<div className='flex gap-5 flex-wrap col-span-2 items-center justify-end'>
- <img className='h-10 w-auto' src='/assets/pci.png' height='40' width='auto' loading='lazy' alt='PCI DSS' />
- <img className='h-10 w-auto' src='/assets/visa.png' height='40' width='auto' loading='lazy' alt='Visa' />
- <img className='h-10 w-auto' src='/assets/mc.png' height='40' width='auto' loading='lazy' alt='Mastercard' />
+ <img className='h-10 w-auto' src={PciImage} height='40' width='auto' loading='lazy' alt='PCI DSS' />
+ <img className='h-10 w-auto' src={VisaImage} height='40' width='auto' loading='lazy' alt='Visa' />
+ <img className='h-10 w-auto' src={McImage} height='40' width='auto' loading='lazy' alt='Mastercard' />
</div>
</div>
</div>