From 1fb02a0e31621241f38f232213bc3a8dd7a53269 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 src/lib/Header.svelte | 9 +++--- {static => src/lib/images}/hahn.svg | 0 {static => src/lib/images}/haus.svg | 0 {static => src/lib/images}/sauna.svg | 0 src/routes/+page.svelte | 2 +- src/routes/chicken/+page.svelte | 2 +- src/routes/sauna/+page.svelte | 5 +-- src/static/haus.svg | 29 ++++++++++++++++++ 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 ++++++++------- 18 files changed, 63 insertions(+), 23 deletions(-) create mode 100644 Dockerfile rename {static => src/font}/7Auwp_0qiz-afTLGLQjUwkQ.woff2 (100%) rename {static => src/lib/images}/hahn.svg (100%) rename {static => src/lib/images}/haus.svg (100%) rename {static => src/lib/images}/sauna.svg (100%) create mode 100644 src/static/haus.svg 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/src/lib/Header.svelte b/src/lib/Header.svelte index f0d13ca..fc2fdde 100644 --- a/src/lib/Header.svelte +++ b/src/lib/Header.svelte @@ -1,18 +1,17 @@
- --> + - +