Hero with text
A centred headline, a short line and two buttons over a pattern of dots.
A centred headline, a short line and two buttons over a pattern of dots.
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 sample copy names no other brands.
*/
import { Button, Container, Text, Title } from '@mantine/core';
import { Dots } from './Dots';
import classes from './HeroText.module.css';
export function HeroText() {
return (
<Container className={classes.wrapper} size={1400}>
<Dots className={classes.dots} style={{ left: 0, top: 0 }} />
<Dots className={classes.dots} style={{ left: 60, top: 0 }} />
<Dots className={classes.dots} style={{ left: 0, top: 140 }} />
<Dots className={classes.dots} style={{ right: 0, top: 60 }} />
<div className={classes.inner}>
<Title className={classes.title}>
Automated AI{' '}
<Text component="span" className={classes.highlight} inherit>
code reviews
</Text>{' '}
for any stack
</Title>
<Container p={0} size={600}>
<Text size="lg" c="dimmed" className={classes.description}>
Build more reliable software with AI companion. AI is also trained to detect lazy
developers who do nothing and just complain online.
</Text>
</Container>
<div className={classes.controls}>
<Button className={classes.control} size="lg" variant="default" color="gray">
Book a demo
</Button>
<Button className={classes.control} size="lg">
Purchase a license
</Button>
</div>
</div>
</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
*/
export interface DotsProps extends React.ComponentPropsWithoutRef<'svg'> {
size?: number;
radius?: number;
}
export function Dots({ size = 185, radius = 2.5, ...others }: DotsProps) {
return (
<svg
aria-hidden
xmlns="http://www.w3.org/2000/svg"
fill="currentColor"
viewBox="0 0 185 185"
width={size}
height={size}
{...others}
>
<rect width="5" height="5" rx={radius} />
<rect width="5" height="5" x="60" rx={radius} />
<rect width="5" height="5" x="120" rx={radius} />
<rect width="5" height="5" x="20" rx={radius} />
<rect width="5" height="5" x="80" rx={radius} />
<rect width="5" height="5" x="140" rx={radius} />
<rect width="5" height="5" x="40" rx={radius} />
<rect width="5" height="5" x="100" rx={radius} />
<rect width="5" height="5" x="160" rx={radius} />
<rect width="5" height="5" x="180" rx={radius} />
<rect width="5" height="5" y="20" rx={radius} />
<rect width="5" height="5" x="60" y="20" rx={radius} />
<rect width="5" height="5" x="120" y="20" rx={radius} />
<rect width="5" height="5" x="20" y="20" rx={radius} />
<rect width="5" height="5" x="80" y="20" rx={radius} />
<rect width="5" height="5" x="140" y="20" rx={radius} />
<rect width="5" height="5" x="40" y="20" rx={radius} />
<rect width="5" height="5" x="100" y="20" rx={radius} />
<rect width="5" height="5" x="160" y="20" rx={radius} />
<rect width="5" height="5" x="180" y="20" rx={radius} />
<rect width="5" height="5" y="40" rx={radius} />
<rect width="5" height="5" x="60" y="40" rx={radius} />
<rect width="5" height="5" x="120" y="40" rx={radius} />
<rect width="5" height="5" x="20" y="40" rx={radius} />
<rect width="5" height="5" x="80" y="40" rx={radius} />
<rect width="5" height="5" x="140" y="40" rx={radius} />
<rect width="5" height="5" x="40" y="40" rx={radius} />
<rect width="5" height="5" x="100" y="40" rx={radius} />
<rect width="5" height="5" x="160" y="40" rx={radius} />
<rect width="5" height="5" x="180" y="40" rx={radius} />
<rect width="5" height="5" y="60" rx={radius} />
<rect width="5" height="5" x="60" y="60" rx={radius} />
<rect width="5" height="5" x="120" y="60" rx={radius} />
<rect width="5" height="5" x="20" y="60" rx={radius} />
<rect width="5" height="5" x="80" y="60" rx={radius} />
<rect width="5" height="5" x="140" y="60" rx={radius} />
<rect width="5" height="5" x="40" y="60" rx={radius} />
<rect width="5" height="5" x="100" y="60" rx={radius} />
<rect width="5" height="5" x="160" y="60" rx={radius} />
<rect width="5" height="5" x="180" y="60" rx={radius} />
<rect width="5" height="5" y="80" rx={radius} />
<rect width="5" height="5" x="60" y="80" rx={radius} />
<rect width="5" height="5" x="120" y="80" rx={radius} />
<rect width="5" height="5" x="20" y="80" rx={radius} />
<rect width="5" height="5" x="80" y="80" rx={radius} />
<rect width="5" height="5" x="140" y="80" rx={radius} />
<rect width="5" height="5" x="40" y="80" rx={radius} />
<rect width="5" height="5" x="100" y="80" rx={radius} />
<rect width="5" height="5" x="160" y="80" rx={radius} />
<rect width="5" height="5" x="180" y="80" rx={radius} />
<rect width="5" height="5" y="100" rx={radius} />
<rect width="5" height="5" x="60" y="100" rx={radius} />
<rect width="5" height="5" x="120" y="100" rx={radius} />
<rect width="5" height="5" x="20" y="100" rx={radius} />
<rect width="5" height="5" x="80" y="100" rx={radius} />
<rect width="5" height="5" x="140" y="100" rx={radius} />
<rect width="5" height="5" x="40" y="100" rx={radius} />
<rect width="5" height="5" x="100" y="100" rx={radius} />
<rect width="5" height="5" x="160" y="100" rx={radius} />
<rect width="5" height="5" x="180" y="100" rx={radius} />
<rect width="5" height="5" y="120" rx={radius} />
<rect width="5" height="5" x="60" y="120" rx={radius} />
<rect width="5" height="5" x="120" y="120" rx={radius} />
<rect width="5" height="5" x="20" y="120" rx={radius} />
<rect width="5" height="5" x="80" y="120" rx={radius} />
<rect width="5" height="5" x="140" y="120" rx={radius} />
<rect width="5" height="5" x="40" y="120" rx={radius} />
<rect width="5" height="5" x="100" y="120" rx={radius} />
<rect width="5" height="5" x="160" y="120" rx={radius} />
<rect width="5" height="5" x="180" y="120" rx={radius} />
<rect width="5" height="5" y="140" rx={radius} />
<rect width="5" height="5" x="60" y="140" rx={radius} />
<rect width="5" height="5" x="120" y="140" rx={radius} />
<rect width="5" height="5" x="20" y="140" rx={radius} />
<rect width="5" height="5" x="80" y="140" rx={radius} />
<rect width="5" height="5" x="140" y="140" rx={radius} />
<rect width="5" height="5" x="40" y="140" rx={radius} />
<rect width="5" height="5" x="100" y="140" rx={radius} />
<rect width="5" height="5" x="160" y="140" rx={radius} />
<rect width="5" height="5" x="180" y="140" rx={radius} />
<rect width="5" height="5" y="160" rx={radius} />
<rect width="5" height="5" x="60" y="160" rx={radius} />
<rect width="5" height="5" x="120" y="160" rx={radius} />
<rect width="5" height="5" x="20" y="160" rx={radius} />
<rect width="5" height="5" x="80" y="160" rx={radius} />
<rect width="5" height="5" x="140" y="160" rx={radius} />
<rect width="5" height="5" x="40" y="160" rx={radius} />
<rect width="5" height="5" x="100" y="160" rx={radius} />
<rect width="5" height="5" x="160" y="160" rx={radius} />
<rect width="5" height="5" x="180" y="160" rx={radius} />
<rect width="5" height="5" y="180" rx={radius} />
<rect width="5" height="5" x="60" y="180" rx={radius} />
<rect width="5" height="5" x="120" y="180" rx={radius} />
<rect width="5" height="5" x="20" y="180" rx={radius} />
<rect width="5" height="5" x="80" y="180" rx={radius} />
<rect width="5" height="5" x="140" y="180" rx={radius} />
<rect width="5" height="5" x="40" y="180" rx={radius} />
<rect width="5" height="5" x="100" y="180" rx={radius} />
<rect width="5" height="5" x="160" y="180" rx={radius} />
<rect width="5" height="5" x="180" y="180" rx={radius} />
</svg>
);
}
/**
* 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.
*/
.wrapper {
position: relative;
padding-top: 120px;
padding-bottom: 80px;
@media (max-width: 48em) {
padding-top: 80px;
padding-bottom: 60px;
}
}
.inner {
position: relative;
z-index: 1;
}
.dots {
position: absolute;
color: light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5));
@media (max-width: 48em) {
display: none;
}
}
.dotsLeft {
left: 0;
top: 0;
}
.title {
text-align: center;
font-weight: 800;
font-size: 40px;
letter-spacing: -1px;
color: light-dark(var(--mantine-color-black), var(--mantine-color-white));
margin-bottom: var(--mantine-spacing-xs);
font-family: var(--mantine-font-family);
@media (max-width: 36em) {
font-size: 28px;
text-align: left;
}
}
.highlight {
color: light-dark(var(--mantine-color-blue-6), var(--mantine-color-blue-4));
}
.description {
text-align: center;
@media (max-width: 36em) {
text-align: left;
font-size: var(--mantine-font-size-md);
}
}
.controls {
margin-top: var(--mantine-spacing-lg);
display: flex;
justify-content: center;
@media (max-width: 36em) {
flex-direction: column;
}
}
.control {
&:not(:first-of-type) {
margin-left: var(--mantine-spacing-md);
}
@media (max-width: 36em) {
height: 42px;
font-size: var(--mantine-font-size-md);
&:not(:first-of-type) {
margin-top: var(--mantine-spacing-md);
margin-left: 0;
}
}
}
Changed for this site: The sample copy names no other brands. 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.