From f3ed1085d921a51a917b88fd7627fc2b8f782dad Mon Sep 17 00:00:00 2001 From: Nudesuppe42 Date: Sun, 14 Jan 2024 21:21:16 +0100 Subject: [PATCH] fix(footer): :iphone: Responsive Footer --- src/components/Footer.tsx | 39 +++++++++++++++++-------- src/components/LanguageSwitcher.tsx | 4 +-- src/styles/components/Footer.module.css | 30 +++++++++++++++++-- 3 files changed, 56 insertions(+), 17 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index b786cceb..b4a4436a 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -23,22 +23,37 @@ export default function Footer({ links, style }: FooterSimpleProps) { return (
- style={{ fontSize: '14px' }} c="dimmed" variant="text"> + + style={{ fontSize: '14px' }} + c="dimmed" + variant="text" + className={classes.copyright1} + > {t('copyright', { year: new Date().getFullYear() })} - {items} - - - - + + {items} + + + + + + + style={{ fontSize: '14px' }} + c="dimmed" + variant="text" + className={classes.copyright2} + > + {t('copyright', { year: new Date().getFullYear() })} +
); diff --git a/src/components/LanguageSwitcher.tsx b/src/components/LanguageSwitcher.tsx index 28ff0cb9..904240ef 100644 --- a/src/components/LanguageSwitcher.tsx +++ b/src/components/LanguageSwitcher.tsx @@ -18,7 +18,7 @@ export const languages = [ { label: '中文', code: 'zh', flag: 'cn' }, ]; -export function LanguageSwitcher() { +export function LanguageSwitcher({ className }: { className?: string }) { const [opened, setOpened] = useState(false); const { t } = useTranslation(); const router = useRouter(); @@ -55,7 +55,7 @@ export function LanguageSwitcher() { width="target" > - +