feat: bring back previous home page

This commit is contained in:
Sonny
2024-05-19 17:23:05 +02:00
committed by Sonny
parent b7d80d844d
commit e6803c174c
13 changed files with 223 additions and 11 deletions

View File

@@ -1,26 +1,26 @@
import PATHS from '#constants/paths';
import styled from '@emotion/styled';
import { Link } from '@inertiajs/react';
import { route } from '@izzyjs/route/client';
import { useTranslation } from 'react-i18next';
import ExternalLink from '~/components/common/external_link';
import packageJson from '../../../package.json';
import { route } from '@izzyjs/route/client';
const FooterStyle = styled.footer(({ theme }) => ({
fontSize: '0.9em',
color: theme.colors.grey,
textAlign: 'center',
paddingTop: '0.75em',
paddingBlock: '0.75em',
'& a:hover': {
textDecoration: 'underline',
},
}));
export default function Footer() {
export default function Footer({ className }: { className?: string }) {
const { t } = useTranslation('common');
return (
<FooterStyle>
<FooterStyle className={className}>
<div className="row">
<Link href={route('privacy').url}>{t('privacy')}</Link>
{' • '}