Simple footer
A logo on one side and a row of links on the other.
A logo on one side and a row of links on the other.
npm install @mantine/core
First time with Mantine UI? Set it up once.
/**
* Component from Mantine UI, https://ui.mantine.dev
* MIT License, Copyright (c) 2022 Vitaly Rtischev. Full text: https://github.com/mantinedev/ui.mantine.dev/blob/master/LICENCE
* Changed for Tastebud: the Mantine logo is a plain block and the word Studio.
*/
import { Anchor, Box, Container, Group, Text } from '@mantine/core';
import classes from './FooterSimple.module.css';
const links = [
{ link: '#', label: 'Contact' },
{ link: '#', label: 'Privacy' },
{ link: '#', label: 'Blog' },
{ link: '#', label: 'Careers' },
];
export function FooterSimple() {
const items = links.map((link) => (
<Anchor<'a'>
c="dimmed"
key={link.label}
href={link.link}
onClick={(event) => event.preventDefault()}
size="sm"
>
{link.label}
</Anchor>
));
return (
<div className={classes.footer}>
<Container className={classes.inner}>
<Group gap={8} wrap="nowrap">
<Box w={28} h={28} bg="blue.6" style={{ borderRadius: 8 }} aria-hidden />
<Text fw={700} size="lg">
Studio
</Text>
</Group>
<Group className={classes.links}>{items}</Group>
</Container>
</div>
);
}
/**
* Component from Mantine UI, https://ui.mantine.dev
* MIT License, Copyright (c) 2022 Vitaly Rtischev. Full text: https://github.com/mantinedev/ui.mantine.dev/blob/master/LICENCE
* Changed for Tastebud: Mantine's PostCSS shorthands (@mixin, $mantine-breakpoint-*) are written out as
* plain CSS, so it runs without postcss-preset-mantine.
*/
.footer {
margin-top: 120px;
border-top: 1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-5));
}
.inner {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: var(--mantine-spacing-xl);
padding-bottom: var(--mantine-spacing-xl);
@media (max-width: 36em) {
flex-direction: column;
}
}
.links {
@media (max-width: 36em) {
margin-top: var(--mantine-spacing-md);
}
}
Changed for this site: The Mantine logo is a plain block and the word Studio. Mantine's PostCSS shorthands (@mixin, $mantine-breakpoint-*) are written out as plain CSS, so it runs without postcss-preset-mantine.