Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
189 lines (189 loc) · 6.97 KB
/
Copy pathindex.html
File metadata and controls
189 lines (189 loc) · 6.97 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#16181d" />
<script>
(function () {
try {
var stored = localStorage.getItem("dms-theme")
var theme = stored === "night" || stored === "contrast" ? stored : "day"
var root = document.documentElement
var page = { day: "#eef1f5", night: "#101218", contrast: "#ffffff" }
var chrome = { day: "#16181d", night: "#101218", contrast: "#000000" }
root.setAttribute("data-theme", theme)
root.style.colorScheme = theme === "night" ? "dark" : "light"
root.style.backgroundColor = page[theme]
var meta = document.querySelector('meta[name="theme-color"]')
if (meta) meta.setAttribute("content", chrome[theme])
} catch (e) {}
})()
</script>
<title>DETRO — Delhi Metro Simple</title>
<meta
name="description"
content="DETRO plans a Delhi Metro trip. Pick two stations and see the train, where to change, and the fare. Free, ad-free, and independent of DMRC."
/>
<meta name="robots" content="index, follow" />
<meta name="application-name" content="DETRO" />
<meta name="apple-mobile-web-app-title" content="DETRO" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
<link rel="canonical" href="https://detro.pages.dev/" />
<meta property="og:title" content="DETRO — Delhi Metro Simple" />
<meta
property="og:description"
content="DETRO plans a Delhi Metro trip. Pick two stations and see the train, where to change, and the fare. Free, ad-free, and independent of DMRC."
/>
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_IN" />
<meta property="og:site_name" content="DETRO" />
<meta property="og:url" content="https://detro.pages.dev/" />
<meta property="og:image" content="https://detro.pages.dev/share/cover.jpg" />
<meta property="og:image:secure_url" content="https://detro.pages.dev/share/cover.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="550" />
<meta property="og:image:height" content="377" />
<meta property="og:image:alt" content="The Great Wave off Kanagawa, a woodblock print by Katsushika Hokusai" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="DETRO — Delhi Metro Simple" />
<meta
name="twitter:description"
content="DETRO plans a Delhi Metro trip. Pick two stations and see the train, where to change, and the fare. Free, ad-free, and independent of DMRC."
/>
<meta name="twitter:image" content="https://detro.pages.dev/share/cover.jpg" />
<meta name="twitter:image:alt" content="The Great Wave off Kanagawa, a woodblock print by Katsushika Hokusai" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="manifest" href="/manifest.webmanifest" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "DETRO",
"alternateName": "Delhi Metro Simple",
"applicationCategory": "TravelApplication",
"operatingSystem": "Web",
"inLanguage": "en",
"isAccessibleForFree": true,
"url": "https://detro.pages.dev/",
"image": "https://detro.pages.dev/share/cover.jpg",
"description": "DETRO plans a Delhi Metro trip. Pick two stations and see the train, where to change, and the fare. Free, ad-free, and independent of DMRC.",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "INR"
}
}
</script>
<style>
html, body {
margin: 0;
min-height: 100%;
min-height: 100dvh;
background: #eef1f5;
color-scheme: light;
}
html[data-theme="night"],
html[data-theme="night"] body {
background: #101218;
color-scheme: dark;
}
html[data-theme="contrast"],
html[data-theme="contrast"] body {
background: #fff;
color-scheme: light;
}
.boot {
min-height: 100vh;
min-height: 100dvh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1.25rem;
margin: 0;
padding: 2rem;
background: inherit;
color: #16181d;
font-family: "IBM Plex Sans", sans-serif;
text-align: center;
}
.boot img {
width: 96px;
height: 96px;
padding: 12px;
background: #f3f5f8;
border-radius: 20px;
animation: boot-pulse 1.6s ease-in-out infinite;
}
.boot p {
margin: 0;
max-width: 18rem;
font-size: 1.15rem;
font-weight: 600;
line-height: 1.35;
}
@keyframes boot-pulse {
50% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
.boot img { animation: none; }
}
html[data-theme="night"] .boot {
color: #e8eaef;
}
html[data-theme="night"] .boot img {
background: #14161c;
}
html[data-theme="contrast"] .boot {
color: #000;
}
html[data-theme="contrast"] .boot img {
background: #f0f0f0;
}
</style>
</head>
<body>
<div id="root">
<div class="boot">
<img src="/attractions/metro-people.svg" alt="" width="96" height="96" />
<p id="boot-line">Laying Delhi’s routes onto this phone</p>
</div>
<noscript>
<main>
<h1>DETRO — Delhi Metro Simple</h1>
<p>DETRO plans a Delhi Metro trip. Choose a start station and a destination to see the train, where to change, and the fare. Free, ad-free, and not an official DMRC app.</p>
<nav>
<a href="/">Plan a route</a>
<a href="/status">Status</a>
<a href="/saved">Saved trips</a>
<a href="/city">Delhi Metro city map</a>
<a href="/play">Play</a>
<a href="/lines">Lines</a>
<a href="/help">Help</a>
</nav>
</main>
</noscript>
</div>
<script>
const bootLines = [
"Laying Delhi’s routes onto this phone",
"Packing fares and platforms for the ride home",
"Saving the first train and the last",
"Unfolding the city for a cut signal",
]
let bootIndex = 0
const bootTimer = setInterval(() => {
const line = document.getElementById("boot-line")
if (!line) {
clearInterval(bootTimer)
return
}
bootIndex = (bootIndex + 1) % bootLines.length
line.textContent = bootLines[bootIndex]
}, 1600)
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>