404 page
A large 404, a short message and a button back home.
A large 404, a short message and a button back home.
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
*/
import { Button, Container, Group, Text, Title } from '@mantine/core';
import classes from './NotFoundTitle.module.css';
export function NotFoundTitle() {
return (
<Container className={classes.root}>
<div className={classes.label}>404</div>
<Title className={classes.title}>You have found a secret place.</Title>
<Text c="dimmed" size="lg" ta="center" className={classes.description}>
Unfortunately, this is only a 404 page. You may have mistyped the address, or the page has
been moved to another URL.
</Text>
<Group justify="center">
<Button variant="subtle" size="md">
Take me back to home page
</Button>
</Group>
</Container>
);
}
/**
* 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; headings use the theme font instead of Outfit.
*/
.root {
padding-top: 80px;
padding-bottom: 80px;
}
.label {
text-align: center;
font-weight: 500;
font-size: 38px;
line-height: 1;
margin-bottom: calc(1.5 * var(--mantine-spacing-xl));
color: var(--mantine-color-gray-2);
@media (max-width: 48em) {
font-size: 32px;
}
}
.description {
max-width: 500px;
margin: auto;
margin-top: var(--mantine-spacing-xl);
margin-bottom: calc(1.5 * var(--mantine-spacing-xl));
}
.title {
font-family: var(--mantine-font-family);
text-align: center;
font-weight: 500;
font-size: 38px;
@media (max-width: 48em) {
font-size: 32px;
}
}
Changed for this site: Mantine's PostCSS shorthands (@mixin, $mantine-breakpoint-*) are written out as plain CSS, so it runs without postcss-preset-mantine; headings use the theme font instead of Outfit.