Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (36 loc) · 1.56 KB
/
Copy pathindex.html
File metadata and controls
44 lines (36 loc) · 1.56 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Sunset Times</title>
<meta name="description" content="Sunset times for the next two weeks, and a countdown to the earliest sunset of the year.">
<meta name="color-scheme" content="light dark">
<link rel="icon" href="favicon.svg" type="image/svg+xml">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap">
<link rel="stylesheet" href="styles.css">
<!-- SunCalc library (provides the SunCalc global used by calc.js) -->
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/suncalc/1.8.0/suncalc.min.js"></script>
<script type="module" src="main.js"></script>
</head>
<body>
<div class="page">
<header class="hero">
<h1>Countdown to Crepusculus</h1>
<p class="hero-subtitle">The Earliest Sunset of the Year</p>
</header>
<main class="card">
<div class="clock-wrap">
<canvas id="clock" role="img"
aria-label="Clock showing today's sunset time, with lines for the next two weeks of sunsets and the earliest sunset of the year"></canvas>
</div>
<section id="sunset-info" class="info" aria-live="polite"></section>
</main>
<footer class="page-footer" id="location"></footer>
</div>
</body>
</html>