forked from codante-io/rinha-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (44 loc) · 1.33 KB
/
index.html
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rinha de Front-end</title>
</head>
<body>
<main
id="home-page"
class="flex min-h-screen flex-col items-center justify-center gap-6 p-4 text-center"
>
<h1 class="text-5xl font-bold">JSON Tree Viewer</h1>
<p class="text-2xl">
Simple JSON Viewer that runs completely on-client. No data exchange
</p>
<input
type="file"
id="load-json-input"
multiple
accept="application/json"
style="display: none"
/>
<button
id="load-json-button"
class="rounded-[5px] border bg-gradient-to-b from-gray-100 to-gray-50 px-3 py-[6px] font-medium leading-normal"
>
Load JSON
</button>
<p id="load-json-error" class="hidden text-invalid">
Invalid file. Please load a valid JSON file.
</p>
</main>
<main
id="json-page"
class="m-auto hidden max-w-2xl flex-col gap-2 whitespace-nowrap p-6"
>
<h1 id="json-name" class="mb-2 text-3xl">alltypes.json</h1>
<div id="json"></div>
</main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>