-
Notifications
You must be signed in to change notification settings - Fork 1
/
quotes.html
80 lines (65 loc) · 1.3 KB
/
quotes.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Quotes</title>
<meta name="description" content="Quotes linked by the words they contain">
<style>
body {
font-family: system-ui, sans-serif;
line-height: 1.4;
margin-block: 0;
}
a {
text-decoration: inherit;
color: rebeccapurple;
}
@media (prefers-color-scheme: dark) {
body {
background-color: oklch(31.14% 0.021 285.75);
color: oklch(90% 0.008 286.75);
}
a {
color: oklch(87.14% 0.031 7.09);
}
}
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
body {
background-color: oklch(21.14% 0.021 285.75);
color: oklch(90% 0.008 286.75);
}
}
main {
margin-block: 0;
margin-inline: 1rem;
display: flex;
justify-content: center;
align-items: center;
min-height: 60svh;
}
output {
max-width: 30rem;
}
footer {
min-height: 35svh;
display: flex;
justify-content: center;
align-items: end;
}
footer a {
width: 44px;
height: 44px;
border-radius: 2px /* nicer outline */;
text-align: center;
vertical-align: center;
opacity: 0.4;
}
</style>
<script type="module" src="./quotes/init.ts"></script>
</head>
<body>
<main><output>...</output></main>
<footer><a href="/">.</a></footer>
</body>
</html>