From 4e1dc44f6d3919c35592e1d4d36ee9c8eaf4a009 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 ++++++++ src/app.html | 2 +- .../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 ++++++++++-------- 18 files changed, 35 insertions(+), 24 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/src/app.html b/src/app.html index 9ab5e86..5704d06 100644 --- a/src/app.html +++ b/src/app.html @@ -2,7 +2,7 @@ - + %sveltekit.head% 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 @@
- --> + - +