Skip to content

Commit 02bb8a0

Browse files
committed
Tweak HTML/CSS
* use the native font stack * lowercase values
1 parent 0176d60 commit 02bb8a0

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

lib/byCountry.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,19 @@ exports.getCountryTable = async ({
140140
}
141141
const lastUpdated = countryData[0].lastUpdated;
142142
if (!isCurl) {
143-
const template = `<!DOCTYPE html>
143+
const template = `<!doctype html>
144144
<html lang="en">
145145
<head>
146-
<meta charset="UTF-8">
147-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
148-
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
146+
<meta charset="utf-8">
147+
<meta name="viewport" content="width=device-width, initial-scale=1">
149148
<title>Coronavirus Tracker</title>
150149
<style>
151150
body {
152-
background: #0D0208;
153-
color: #00FF41;
151+
background-color: #0d0208;
152+
color: #00ff41;
154153
}
155154
pre {
156-
font-family: 'Roboto Mono', monospace;
155+
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
157156
white-space: pre;
158157
}
159158
</style>

lib/corona.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,20 +161,19 @@ exports.getCompleteTable = async ({
161161
})
162162
const lastUpdated = countryData[0].lastUpdated;
163163
if (!isCurl) {
164-
const template = `<!DOCTYPE html>
164+
const template = `<!doctype html>
165165
<html lang="en">
166166
<head>
167-
<meta charset="UTF-8">
168-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
169-
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
167+
<meta charset="utf-8">
168+
<meta name="viewport" content="width=device-width, initial-scale=1">
170169
<title>Coronavirus Tracker</title>
171170
<style>
172171
body {
173-
background: #0D0208;
174-
color: #00FF41;
172+
background-color: #0d0208;
173+
color: #00ff41;
175174
}
176175
pre {
177-
font-family: 'Roboto Mono', monospace;
176+
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
178177
white-space: pre;
179178
}
180179
</style>

0 commit comments

Comments
 (0)