Sign-in form with a title
A heading, a link to sign up, and a sign-in form in a card.
A heading, a link to sign up, and a sign-in form in a card.
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: sample addresses use example.com.
*/
import {
Anchor,
Button,
Checkbox,
Container,
Group,
Paper,
PasswordInput,
Text,
TextInput,
Title,
} from '@mantine/core';
import classes from './AuthenticationTitle.module.css';
export function AuthenticationTitle() {
return (
<Container size={420} my={40}>
<Title ta="center" className={classes.title}>
Welcome back!
</Title>
<Text className={classes.subtitle}>
Do not have an account yet? <Anchor>Create account</Anchor>
</Text>
<Paper withBorder shadow="sm" p={22} mt={30} radius="md">
<TextInput label="Email" placeholder="you@example.com" required radius="md" />
<PasswordInput label="Password" placeholder="Your password" required mt="md" radius="md" />
<Group justify="space-between" mt="lg">
<Checkbox label="Remember me" />
<Anchor component="button" size="sm">
Forgot password?
</Anchor>
</Group>
<Button fullWidth mt="xl" radius="md">
Sign in
</Button>
</Paper>
</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: headings use the theme font instead of Outfit.
*/
.title {
font-family: var(--mantine-font-family);
font-weight: 500;
}
.subtitle {
color: var(--mantine-color-dimmed);
font-size: var(--mantine-font-size-sm);
text-align: center;
margin-top: 5px;
}
Changed for this site: Sample addresses use example.com. Headings use the theme font instead of Outfit.