-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontactForm.js
More file actions
47 lines (45 loc) · 1.13 KB
/
contactForm.js
File metadata and controls
47 lines (45 loc) · 1.13 KB
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
import React from "react"
import { Box, Input } from '@chakra-ui/core';
import Button from './button';
const ContactForm = ({ referrer }) => (
<form action="https://api.formik.com/submit/codebrahma/contact" method="post">
<input
type="hidden"
name="_next"
value="https://codebrahma.com/thank-you"
/>
<input type="hidden" name="referrer" value={referrer} />
<Box width={[1, 1 / 2]}>
<Input
size="25"
rows="5"
required
as="textarea"
name="msg"
backgroundColor="black.4"
borderWidth={0}
borderRadius={3}
placeholder="💬 Tell us about your idea"
padding={1}
/>
</Box>
<Box width={[1, 1 / 2]} mt={1}>
<Input
name="email"
type="email"
required
backgroundColor="black.4"
borderWidth={0}
borderRadius={3}
placeholder="@ Email address"
lineHeight='1'
padding={1}
height='auto'
/>
</Box>
<Box width={[1, 1 / 3]} mt={1}>
<Button variant='outline'>Submit</Button>
</Box>
</form>
)
export default ContactForm