-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwork.js
More file actions
28 lines (25 loc) · 724 Bytes
/
work.js
File metadata and controls
28 lines (25 loc) · 724 Bytes
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
import NextLink from 'next/link'
import { Heading, Box, Image, Link, Badge } from '@chakra-ui/react'
import { ChevronRightIcon } from '@chakra-ui/icons'
export const Title = ({ children }) => (
<Box>
<Link as={NextLink} href="/works">
Works
</Link>
<span>
{' '}
<ChevronRightIcon />{' '}
</span>
<Heading display="inline-block" as="h3" fontSize={20} mb={4}>
{children}
</Heading>
</Box>
)
export const WorkImage = ({ src, alt }) => (
<Image borderRadius="lg" w="full" src={src} alt={alt} mb={4} />
)
export const Meta = ({ children }) => (
<Badge colorScheme="green" mr={2}>
{children}
</Badge>
)