forked from hackclub/site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhaxidraw.js
71 lines (69 loc) · 2.14 KB
/
haxidraw.js
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
71
import CardModel from './card-model'
import { Box, Flex, Grid, Text } from 'theme-ui'
import Buttons from './button'
/** @jsxImportSource theme-ui */
export default function Haxidraw({ stars }) {
return (
<CardModel
github_link="https://github.com/hackclub/blot/"
color="white"
sx={{
backgroundSize: 'cover',
backgroundColor: '#95C9E5',
backgroundImage: `linear-gradient(120deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.4) 70%), url('https://cloud-1tnl6uqvw-hack-club-bot.vercel.app/0image.png')`
}}
position={[null, 'bottom', 'bottom']}
highlight="#2b27f8d9"
filter="brightness(0.8)"
stars={stars}
>
<Text variant="title" as="h3" sx={{ fontSize: ['36px', 4, 5] }}>
Blot
</Text>
<Grid columns={[1, 2]}>
<Box>
<Text
as="p"
variant="subtitle"
sx={{ zIndex: 2, position: 'relative' }}
>
Blot is an open source drawing machine and online editor, designed
to be a fun and beginner friendly introduction to digital
fabrication and generative art.
</Text>
</Box>
<Box>
<Flex sx={{ flexDirection: 'column', mt: [3, 3, 4] }}>
<Buttons
id="51"
icon="align-left"
link="https://blot.hackclub.dev"
primary="rgba(255, 255, 255, 0.9)"
sx={{ color: 'black' }}
>
Learn more
</Buttons>
<Buttons
id="52"
icon="code"
link="https://blot.hackclub.dev/editor"
primary="rgba(255, 255, 255, 0.9)"
sx={{ color: 'black' }}
>
Create something in the editor
</Buttons>
<Buttons
id="54"
icon="slack"
link="/slack"
overrideColor="rgba(255, 255, 255, 0.7)"
sx={{ color: 'black' }}
>
Share your creations and chat on Slack
</Buttons>
</Flex>
</Box>
</Grid>
</CardModel>
)
}