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
/** @jsxImportSource https://esm.sh/react */
import Layout from "https://esm.town/v/pomdtr/dateme_layout";
import { handler } from "https://esm.town/v/pomdtr/ssr";
import date_me_doc_locations from "https://esm.town/v/stevekrouse/date_me_doc_locations";
export function Home(props) {
return (
<Layout activeTab={props.route}>
<div className="max-w-lg mx-auto p-10">
<div className="mb-10">
<div className="text-4xl font-bold mb-4">
Join the thoughtful dating revolution
</div>
<div className="text-lg ">
Date Me Docs are long-form, earnest dating profiles for serious romantic partners.
</div>
</div>
<form className="space-y-4" action="/browse">
<div className="flex text-xl space-x-2">
<div>I'm</div>
<select name="gender" className="border border-gray-300">
<option value="" className="text-gray-500">...</option>
<option value="m">male</option>
<option value="f">female</option>
<option value="nb">non-binary</option>
</select>
</div>
<div className="flex text-xl space-x-2">
<div>Looking for</div>
<select name="desired-gender" className="border border-gray-300">
<option value="">...</option>
<option value="m">male</option>
<option value="f">female</option>
<option value="nb">non-binary</option>
</select>
</div>
<div className="flex text-xl space-x-2">
<div>Between</div>
<input placeholder="..." type="number" name="min-age" className="w-12 h-min border border-gray-300"></input>
<div>and</div>
<input placeholder="..." type="number" name="max-age" className="w-12 border border-gray-300"></input>
<div>years old</div>
</div>
<div className="flex text-xl space-x-2">
<div>In</div>
<select name="location" className="border border-gray-300">
<option value="">...</option>
{date_me_doc_locations.map(
(location) => <option key={location} value={location}>{location}</option>,
)}
</select>
</div>
<button className="border text-xl border-gray-300 px-4 py-2 bg-blue-500 text-white font-bold rounded">
Search
</button>
</form>
</div>
</Layout>
);
}
export default handler(Home);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
v8
February 27, 2024