mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 12:52:47 -07:00
934a83c0e2
* fix: README spelling * fix: CONTRIBUTING spelling * fix: CODE_OF_CONDUCT * fix: documentation spelling
54 lines
1.4 KiB
TypeScript
54 lines
1.4 KiB
TypeScript
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 (
|
|
<Container size={1100} my={100}>
|
|
<Center>
|
|
<Title order={1}>The React/Rust full-stack framework</Title>
|
|
</Center>
|
|
<Center mt={50}>
|
|
<Text fz="18px">
|
|
The technologies we love seamlessly working together to unleash the
|
|
<strong> highest web performance</strong> ever met on React
|
|
</Text>
|
|
</Center>
|
|
<Center mt={50}>
|
|
<Group>
|
|
<Button component={Link} href="/documentation" size="lg">
|
|
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"
|
|
leftSection="$ cargo install tuono"
|
|
rightSection={
|
|
copied ? (
|
|
<IconCheck style={{ width: rem(20) }} />
|
|
) : (
|
|
<IconCopy style={{ width: rem(20) }} />
|
|
)
|
|
}
|
|
/>
|
|
)}
|
|
</CopyButton>
|
|
</Group>
|
|
</Center>
|
|
</Container>
|
|
)
|
|
}
|