aboutsummaryrefslogtreecommitdiff
path: root/src/pages/join/index.html
blob: 6677f89c3e99166ecff3b371a85d47356365698b (plain) (blame)
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
<!--: extends page.html -->
<!--: replace title -->
join
<!--: endreplace -->

<!--: replace extraHead -->
<style>
	form {
		max-width: 50%;
	}

	form > label, fieldset, input[type="submit"] {
		display: block;
		margin-bottom: 5px;
	}

	label:has(> input:invalid)::before {
		color: var(--red);
		content: "!";
	}

	label:has(> input:required, textarea:required)::after {
		color: var(--red);
		content: "*";
	}

	input, textarea {
		appearance: none;
		background-color: black;
		border: 2px solid white;
		color: white;
		font-family: inherit;
	}

	textarea {
		font-size: inherit;
		vertical-align: 0;
	}

	input[type="submit"]:hover {
		background-color: white;
		color: white;
	}
</style>
<!--: endreplace -->

<!--: replace body -->
<main>
	<form action="#" method="post">
		<header>
			<h2>Join the club.</h2>
			<p class="subtle">Required fields are marked with an asterisk.</p>
		</header>

		<label>
			Name: <input name="name" type="text" required />
		</label>
		<label>
			URL of your personal website:
			<input name="website" type="url" />
		</label>
		<label>
			Tell us a bit about yourself:
			<textarea name="about" required></textarea>
		</label>
		<label>
			Enter an e-mail address:
			<input name="email" type="email" required />
		</label>
		<input type="submit" value="Done" />
	</form>
</main>
<!--: endreplace -->