-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
90 lines (90 loc) · 2.39 KB
/
Copy pathindex.html
File metadata and controls
90 lines (90 loc) · 2.39 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Wilder — Join the Waitlist</title>
<style>
body {
margin: 0;
font-family: system-ui, -apple-system, sans-serif;
background: linear-gradient(120deg, #141e30, #243b55);
color: white;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
h1 {
font-size: 3rem;
margin-bottom: 0.5rem;
}
p {
font-size: 1.25rem;
opacity: 0.8;
margin-bottom: 2rem;
}
form {
display: flex;
flex-direction: row;
justify-content: center;
background: rgba(255,255,255,0.1);
border-radius: 8px;
overflow: hidden;
}
input[type="email"] {
border: none;
padding: 1rem;
font-size: 1rem;
width: 250px;
outline: none;
color: #333;
}
button {
background-color: #ff7a18;
border: none;
color: white;
padding: 1rem 1.5rem;
font-size: 1rem;
cursor: pointer;
}
button:hover {
background-color: #ff9e47;
}
footer {
position: absolute;
bottom: 20px;
font-size: 0.85rem;
opacity: 0.6;
}
</style>
</head>
<body>
<h1>Wilder</h1>
<p>Be the first to experience what’s next. Join the waitlist.</p>
<form id="waitlist-form" method="POST" action="/api/waitlist">
<input type="email" name="email" placeholder="you@example.com" required />
<button type="submit">Notify Me</button>
</form>
<footer>© 2024 Wilder</footer>
<script>
document.getElementById('waitlist-form').addEventListener('submit', async function (e) {
e.preventDefault();
const email = e.target.email.value;
const res = await fetch('/api/waitlist', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ email })
});
if (res.ok) {
alert('Thanks for joining the waitlist!');
e.target.reset();
} else {
alert('There was a problem. Please try again later.');
}
});
</script>
</body>
</html>