-
Notifications
You must be signed in to change notification settings - Fork 1
/
raag.html
243 lines (197 loc) · 3.98 KB
/
raag.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Raags</title>
<meta name="description" content="Interactive scales of Indian music">
<style>
:root {
--bg: hsl(0, 0%, 100%);
--text: hsl(0, 0%, 24%);
--soft: hsl(0, 0%, 47%);
--hard: hsl(0, 0%, 15%);
}
@media (prefers-color-scheme: dark) {
:root {
--bg: hsl(0, 0%, 4%);
--text: hsl(0, 0%, 90%);
--soft: hsl(0, 0%, 73%);
--hard: hsl(0, 0%, 100%);
}
}
html {
font-size: large;
}
body {
background-color: var(--bg);
color: var(--text);
font-family: system-ui, sans-serif;
display: grid;
grid-template-columns: 1fr min(31em, 100%) 1fr;
}
main,
footer {
grid-column: 2/3;
}
header {
font-family: serif;
font-style: italic;
text-align: center;
h1 {
font-size: 3rem;
margin-block-end: 1rem;
word-spacing: -5px;
}
p {
margin-block-start: 0;
font-size: 1.6rem;
}
}
.muted {
color: var(--soft);
}
footer {
font-size: smaller;
margin-block-start: 1em;
margin-block-end: 3em;
text-align: center;
a {
text-underline-offset: 5px;
font-weight: 500;
}
a {
color: var(--soft);
}
a:hover {
color: var(--text);
}
}
ul {
margin-block-start: 2.5rem;
margin-block-end: 2rem;
list-style: none;
padding-inline-start: 0;
li {
margin: 1rem;
/* Remove the margin on small screens (we already have a margin from the
* page edge on the main element). */
@media (max-width: 600px) {
margin-inline: 0;
}
a {
text-decoration: none;
opacity: 0.87;
}
a:hover {
opacity: 1;
}
}
}
.raag-card {
padding-inline: 1.25em;
padding-block: 0.75em;
border-radius: 3px;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.raag-name {
font-variant: small-caps;
text-transform: lowercase;
/* Shift up a bit to account for the empty space at the top of small-caps
* (compared to if they were normal caps). */
margin-block-end: 4px;
width: 150px;
}
.raag-notes {
flex-grow: 1;
flex-basis: calc(12px * (12 + 11));
display: flex;
justify-content: space-between;
& > div {
width: 12px;
height: 42px;
border-radius: 3px;
background-color: var(--mr-c-raag-note-on);
}
& > div.muted {
background-color: var(--mr-c-raag-note-off);
}
}
#bhairav {
background-color: oklch(49.35% 0.025 53.84);
color: oklch(84.24% 0.006 43.32);
--mr-c-raag-note-on: oklch(98% 0 0);
--mr-c-raag-note-off: oklch(84.24% 0.006 43.32 / 0.3);
@media (prefers-color-scheme: dark) {
background-color: oklch(25% 0.05 83.84);
color: oklch(75.15% 0.013 86.85);
--mr-c-raag-note-on: oklch(94% 0 0);
--mr-c-raag-note-off: oklch(75.15% 0.013 86.85 / 0.3);
}
}
#yaman {
background-color: oklch(52% 0.166 267);
color: oklch(94% 0 0);
--mr-c-raag-note-on: oklch(94% 0 0);
--mr-c-raag-note-off: oklch(80% 0.065 265 / 0.5);
}
</style>
</head>
<body>
<main>
<header>
<h1>raag <span class="muted">city</span></h1>
<p>रागों <span class="muted">की नगरी</span></p>
</header>
<ul>
<li>
<a href="raag/bhairav">
<div id="bhairav" class="raag-card">
<div class="raag-name">Bhairav</div>
<div class="raag-notes">
<div></div>
<div></div>
<div class="muted"></div>
<div class="muted"></div>
<div></div>
<div></div>
<div class="muted"></div>
<div></div>
<div></div>
<div class="muted"></div>
<div class="muted"></div>
<div></div>
</div></div>
</a>
</li>
<li>
<a href="raag/yaman">
<div id="yaman" class="raag-card">
<div class="raag-name">Yaman</div>
<div class="raag-notes">
<div></div>
<div class="muted"></div>
<div></div>
<div class="muted"></div>
<div></div>
<div class="muted"></div>
<div></div>
<div></div>
<div class="muted"></div>
<div></div>
<div class="muted"></div>
<div></div>
</div></div>
</a>
</li>
</ul>
</main>
<footer>
<a href="raag/about">FAQ</a>
</footer>
</body>
</html>