Files
tuono/apps/documentation/src/components/hero/hero.tsx
T

54 lines
1.4 KiB
TypeScript
Raw Normal View History

2024-07-27 11:33:34 +02:00
import {
Button,
Center,
Container,
CopyButton,
Group,
rem,
Text,
Title,
} from '@mantine/core'
import { IconCopy, IconCheck } from '@tabler/icons-react'
import { Link } from 'tuono'
export default function Hero(): JSX.Element {
return (
2024-08-17 20:16:26 +02:00
<Container size={1100} my={100}>
2024-07-27 11:33:34 +02:00
<Center>
2024-10-12 19:03:05 +02:00
<Title order={1}>The React/Rust full-stack framework</Title>
2024-07-27 11:33:34 +02:00
</Center>
<Center mt={50}>
<Text fz="18px">
2024-10-12 19:03:05 +02:00
The technologies we love seamlessly working together to unleash the
<strong> highest web performance</strong> ever met on React
2024-07-27 11:33:34 +02:00
</Text>
</Center>
<Center mt={50}>
<Group>
<Button component={Link} href="/documentation" size="lg">
2024-07-27 11:33:34 +02:00
Get Started
</Button>
<CopyButton value="cargo install tuono">
{({ copied, copy }) => (
<Button
onClick={copy}
size="lg"
style={{ border: 'solid 1px var(--mantine-color-violet-1)' }}
color="gray"
2024-08-18 12:25:12 +02:00
leftSection="$ cargo install tuono"
2024-07-27 11:33:34 +02:00
rightSection={
copied ? (
<IconCheck style={{ width: rem(20) }} />
) : (
<IconCopy style={{ width: rem(20) }} />
)
}
/>
)}
</CopyButton>
</Group>
</Center>
</Container>
)
}