Skip to content

Commit 28389a8

Browse files
authored
Merge pull request sagarkarira#36 from XhmikosR/front
Tweak HTML/CSS
2 parents bc6ad2a + 02bb8a0 commit 28389a8

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
@@ -135,20 +135,19 @@ exports.getCountryTable = async ({
135135

136136
const { lastUpdated } = countryData[0];
137137
if (!isCurl) {
138-
const template = `<!DOCTYPE html>
138+
const template = `<!doctype html>
139139
<html lang="en">
140140
<head>
141-
<meta charset="UTF-8">
142-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
143-
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap" rel="stylesheet">
141+
<meta charset="utf-8">
142+
<meta name="viewport" content="width=device-width, initial-scale=1">
144143
<title>Coronavirus Tracker</title>
145144
<style>
146145
body {
147-
background: #0D0208;
148-
color: #00FF41;
146+
background-color: #0d0208;
147+
color: #00ff41;
149148
}
150149
pre {
151-
font-family: 'Roboto Mono', monospace;
150+
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
152151
white-space: pre;
153152
}
154153
</style>

lib/corona.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,20 +140,19 @@ exports.getCompleteTable = async ({
140140
});
141141
const { lastUpdated } = countryData[0];
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>

0 commit comments

Comments
 (0)