-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
87 lines (82 loc) · 3.68 KB
/
index.php
File metadata and controls
87 lines (82 loc) · 3.68 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
<?php
$styleVersion = file_exists("styles.css") ? filemtime("styles.css") : time();
$scriptVersion = file_exists("script.js") ? filemtime("script.js") : time();
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>do i need spf?</title>
<meta
name="description"
content="A tiny, maximalist web app that checks your local UV index and says if you should wear SPF."
/>
<link rel="icon" type="image/png" href="/images/thumb.png" />
<link rel="apple-touch-icon" href="/images/thumb.png" />
<link rel="shortcut icon" href="/images/thumb.png" />
<meta property="og:image" content="/images/thumb.png" />
<meta name="twitter:image" content="/images/thumb.png" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css?v=<?= $styleVersion ?>" />
</head>
<body>
<main id="app" class="app is-loading">
<section class="block block-primary">
<div class="burst" aria-hidden="true"></div>
<div class="poster">
<div class="card-stack">
<div class="card">
<div class="headline" id="headline">Loading…</div>
<div class="subhead" id="subhead">
Grabbing your sky vibes.
</div>
</div>
</div>
</div>
</section>
<section class="block block-secondary">
<div class="meta">
<div class="meta-row">
<span class="label">UV now</span>
<span class="value" id="uv-now">—</span>
</div>
<div class="meta-row">
<span class="label">UV max today</span>
<span class="value" id="uv-max">—</span>
</div>
<div class="meta-row">
<span class="label">Location</span>
<span class="value" id="location">—</span>
</div>
</div>
<div class="actions">
<button id="retry" class="btn" hidden>
Retry Geolocation
</button>
<div class="manual" id="manual">
<label for="city">No location? Type a city:</label>
<div class="manual-row">
<input
id="city"
type="text"
placeholder="e.g. Tokyo, JP"
/>
<button id="lookup" class="btn">Check UV</button>
</div>
<div class="hint">Uses Open‑Meteo geocoding</div>
</div>
</div>
</section>
<footer class="block block-tertiary">
<p class="disclaimer">view spf 420 source @ <a href="https://github.com/bawanyadam/spf-420" target="_blank">github</a><br>made by Adam Goehrig‑Bawany</p>
</footer>
</main>
<script src="script.js?v=<?= $scriptVersion ?>" defer></script>
</body>
</html>