From 9afda59e27793cc8be019b0fcd84af9691572a41 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Fri, 18 Feb 2022 16:16:48 +0300 Subject: [PATCH] Split style into own file --- .drone.yml | 1 + .gitignore | 2 +- output/index.js | 2 +- output/template.hbs | 41 +---------------------------------------- public/style.css | 37 +++++++++++++++++++++++++++++++++++++ 5 files changed, 41 insertions(+), 42 deletions(-) create mode 100644 public/style.css diff --git a/.drone.yml b/.drone.yml index f0c09d9..717c57f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,6 +16,7 @@ steps: - git reset --hard origin/master - name: install commands: + - pwd - npm install - name: restart commands: diff --git a/.gitignore b/.gitignore index 7cdc5de..f4e0da4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ node_modules .vscode .env -index.html +public/index.html diff --git a/output/index.js b/output/index.js index 1f9f3c8..a6ea6ae 100644 --- a/output/index.js +++ b/output/index.js @@ -19,7 +19,7 @@ class Output { } async writeToFile (content) { - const filename = 'index.html' + const filename = './public/index.html' try { await fs.unlinkSync(filename) diff --git a/output/template.hbs b/output/template.hbs index fb4280c..0113977 100644 --- a/output/template.hbs +++ b/output/template.hbs @@ -4,47 +4,8 @@ + Warframe Market Gaps - -

Warframe Market Gaps

diff --git a/public/style.css b/public/style.css new file mode 100644 index 0000000..fe14b7e --- /dev/null +++ b/public/style.css @@ -0,0 +1,37 @@ +* { + font-family: sans-serif; +} + +a { + text-decoration: none; + color: black; +} + +table { + margin: 64px 0; + border-spacing: 0; +} + +tr { + text-align: left; +} + +tr:nth-child(even) { + background: rgb(240, 242, 243); +} + +td { + padding: 2px 16px; +} + +th { + padding: 8px 16px; +} + +.name { + text-transform: capitalize; +} + +.timestamp { + font-size: small; +} \ No newline at end of file