File size: 1,897 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import { Subheading } from "@/components/site/typography"
import {
  Box,
  Card,
  Container,
  Heading,
  SimpleGrid,
  Stack,
} from "@chakra-ui/react"
import { Metadata } from "next"
import Image from "next/image"
import Link from "next/link"
import { showcases } from ".velite"

export const metadata: Metadata = {
  title: "Showcase",
  description: "A collection of beautiful websites that are built in Chakra UI",
  openGraph: {
    images: `/og?title=Showcase`,
  },
}

export default function ShowcasePage() {
  return (
    <Box py="20" width="full">
      <Container>
        <Stack gap={{ base: "5", md: "10" }} mb="20">
          <Stack gap="5" pr="4" maxW="3xl" px="1.5">
            <Heading as="h1" textStyle={{ base: "4xl", md: "5xl" }}>
              Showcase
            </Heading>
            <Subheading>Beautiful websites built with Chakra UI</Subheading>
          </Stack>
        </Stack>

        <SimpleGrid columns={{ base: 1, md: 2, lg: 3 }} gap="6">
          {showcases.map(({ title, description, url, image }) => (
            <Card.Root
              size="sm"
              key={url}
              asChild
              cursor="pointer"
              overflow="hidden"
              focusVisibleRing="inside"
              width="100%"
            >
              <Link href={url}>
                <Image
                  src={`/${image}`}
                  alt={title}
                  width={420}
                  height={236}
                  objectFit="cover"
                />

                <Card.Body gap="1">
                  <Card.Title textStyle="sm">{title}</Card.Title>
                  <Card.Description textStyle="xs">
                    {description}
                  </Card.Description>
                </Card.Body>
              </Link>
            </Card.Root>
          ))}
        </SimpleGrid>
      </Container>
    </Box>
  )
}