-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNewsletter.tsx
102 lines (100 loc) · 4.03 KB
/
Newsletter.tsx
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import { Container } from '@/app/common/Container'
import { Button } from '@/app/foundation/components/Button'
function ArrowRightIcon(props: React.ComponentPropsWithoutRef<'svg'>) {
return (
<svg aria-hidden="true" viewBox="0 0 24 24" {...props}>
<path
d="m14 7 5 5-5 5M19 12H5"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
/>
</svg>
)
}
export function Newsletter() {
return (
<section id="newsletter" aria-label="Newsletter">
<Container>
<div className="relative -mx-4 overflow-hidden bg-primary-50 px-4 py-20 sm:-mx-6 sm:px-6 md:mx-0 md:rounded-5xl md:px-16 xl:px-24 xl:py-36">
<div className="relative mx-auto grid max-w-2xl grid-cols-1 gap-x-32 gap-y-14 xl:max-w-none xl:grid-cols-2">
<div>
<p className="font-display text-4xl font-bold tracking-tighter text-primary-900 sm:text-5xl">
Apply for a grant
</p>
<p className="mt-4 text-lg tracking-tight text-primary-900">
We’re looking for projects that are making a positive impact on
the world. If that sounds like you, please apply and we’ll be in
touch if it’s a good fit.
</p>
</div>
<form
action="https://formspree.io/f/xeqyqypn"
method="POST"
className="space-y-5"
>
<label className="block space-y-2">
<div className="font-bold text-primary-700">Name</div>
<input
name="name"
autoComplete="name"
type="text"
className="w-full rounded-lg border px-5 py-4 shadow focus:outline-none focus:ring-2 focus:ring-primary-500"
placeholder="What's your full name?"
/>
</label>
<label className="block space-y-2">
<div className="font-bold text-primary-700">Email</div>
<input
name="email"
autoComplete="email"
type="email"
className="w-full rounded-lg border px-5 py-4 shadow focus:outline-none focus:ring-2 focus:ring-primary-500"
placeholder="What's your work or school email?"
/>
</label>
<fieldset className="space-y-2">
<legend className="font-bold text-primary-700">Topic</legend>
<label className="flex items-center space-x-2">
<input
name="topic"
value="Sponsor my community event"
type="radio"
defaultChecked
/>
<div>Sponsor my community event</div>
</label>
<label className="flex items-center space-x-2">
<input
name="topic"
value="Invest in my impact startup"
type="radio"
/>
<div>Invest in my impact startup</div>
</label>
<label className="flex items-center space-x-2">
<input name="topic" value="Something else" type="radio" />
<div>Something else</div>
</label>
</fieldset>
<label className="block space-y-2">
<div className="font-bold text-primary-700">Message</div>
<textarea
name="message"
rows={5}
className="w-full resize-y rounded-lg border px-5 py-4 shadow focus:outline-none focus:ring-2 focus:ring-primary-500"
placeholder="What are you working on?"
/>
</label>
<div className="ml-12">
<Button type="submit">Send message</Button>
</div>
</form>
</div>
</div>
</Container>
</section>
)
}