From 1af68c7bf66b6a8b0350e073746b5c6ee4859528 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Tue, 31 Jan 2023 15:40:13 +0100 Subject: [PATCH] code-restructure --- Dockerfile | 11 ++++++++ .../font}/7Auwp_0qiz-afTLGLQjUwkQ.woff2 | Bin {static => src/images}/hahn.svg | 0 {static => src/images}/haus.svg | 0 {static => src/images}/sauna.svg | 0 src/lib/Header.svelte | 9 +++---- src/routes/+page.svelte | 2 +- src/routes/chicken/+page.svelte | 2 +- src/routes/sauna/+page.svelte | 5 ++-- static/favicon.png | Bin 13562 -> 0 bytes static/perinet-logo.png | Bin 5185 -> 0 bytes static/perinet-periNODE.svg | 1 - static/perinet-security.svg | 1 - static/perinet-update.svg | 1 - static/update-arrows.png | Bin 5027 -> 0 bytes static/update-plain.png | Bin 6566 -> 0 bytes svelte.config.js | 25 ++++++++++-------- 17 files changed, 34 insertions(+), 23 deletions(-) create mode 100644 Dockerfile rename {static => src/font}/7Auwp_0qiz-afTLGLQjUwkQ.woff2 (100%) rename {static => src/images}/hahn.svg (100%) rename {static => src/images}/haus.svg (100%) rename {static => src/images}/sauna.svg (100%) delete mode 100644 static/favicon.png delete mode 100644 static/perinet-logo.png delete mode 100644 static/perinet-periNODE.svg delete mode 100644 static/perinet-security.svg delete mode 100644 static/perinet-update.svg delete mode 100644 static/update-arrows.png delete mode 100644 static/update-plain.png diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f3918b0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM node:latest AS build +WORKDIR /app +COPY package.json ./ +COPY package-lock.json ./ +RUN npm install +COPY . ./ +RUN npm run build + +FROM nginx:1.19-alpine +COPY --from=build /app/build /usr/share/nginx/html + diff --git a/static/7Auwp_0qiz-afTLGLQjUwkQ.woff2 b/src/font/7Auwp_0qiz-afTLGLQjUwkQ.woff2 similarity index 100% rename from static/7Auwp_0qiz-afTLGLQjUwkQ.woff2 rename to src/font/7Auwp_0qiz-afTLGLQjUwkQ.woff2 diff --git a/static/hahn.svg b/src/images/hahn.svg similarity index 100% rename from static/hahn.svg rename to src/images/hahn.svg diff --git a/static/haus.svg b/src/images/haus.svg similarity index 100% rename from static/haus.svg rename to src/images/haus.svg diff --git a/static/sauna.svg b/src/images/sauna.svg similarity index 100% rename from static/sauna.svg rename to src/images/sauna.svg diff --git a/src/lib/Header.svelte b/src/lib/Header.svelte index f0d13ca..e03ed38 100644 --- a/src/lib/Header.svelte +++ b/src/lib/Header.svelte @@ -1,18 +1,17 @@
- --> + - +