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
/** @jsxImportSource npm:hono@3/jsx */
import date_me_doc_locations from "https://esm.town/v/stevekrouse/date_me_doc_locations";
import Layout from "https://esm.town/v/vawogbemi/dateme_layout";
export default function Home(c) {
return c.html(
<Layout activeTab={new URL(c.req.url).pathname}>
<div class="max-w-lg mx-auto p-10">
<div class="mb-10">
<div class="text-4xl font-bold mb-4">
I'm looking for a Man In Finance.
</div>
<div class="text-lg ">
Trust fund. 6'5". Blue Eyes.
</div>
</div>
<form class="space-y-4" action="/browse">
<div class="flex text-xl space-x-2">
<div>I'm Looking for a Man In Finance</div>
</div>
<div class="flex text-xl space-x-2">
<div>Between</div>
<input defaultValue={18} type="number" name="min-age" class="w-12 h-min border border-gray-300"></input>
<div>and</div>
<input defaultValue={70} type="number" name="max-age" class="w-12 border border-gray-300"></input>
<div>years old</div>
</div>
<div class="flex text-xl space-x-2">
<div>In</div>
<select name="location" class="border border-gray-300">
<option value="">...</option>
{date_me_doc_locations.map(
(location) => <option key={location} value={location}>{location}</option>,
)}
</select>
</div>
<div class="flex text-xl space-x-2">
<div>Who</div>
<select name="trust-fund" class="border border-gray-300">
<option value="" class="text-gray-500">...</option>
<option value="True">has</option>
<option value="False">doesn't have</option>
=
</select>
<div>a trust fund</div>
</div>
<div class="flex text-xl space-x-2">
<div>Who</div>
<select name="six-five" class="border border-gray-300">
<option value="" class="text-gray-500">...</option>
<option value="True">is</option>
<option value="False">is not</option>
=
</select>
<div>6'5"</div>
</div>
<div class="flex text-xl space-x-2">
<div>Who</div>
<select name="blue-eyes" class="border border-gray-300">
<option value="" class="text-gray-500">...</option>
<option value="True">has</option>
<option value="False">does not have</option>
=
</select>
<div>blue eyes</div>
</div>
<button class="border text-xl border-gray-300 px-4 py-2 bg-blue-500 text-white font-bold rounded">
Search
</button>
</form>
</div>
</Layout>,
);
}
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!
June 19, 2024