From fb994af5517cae22fc365cad223ca53f1096c9e4 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 +- 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/hahn.svg | 79 ------------------ static/haus.svg | 29 ------- static/perinet-logo.png | Bin 5185 -> 0 bytes static/perinet-periNODE.svg | 1 - static/perinet-security.svg | 1 - static/perinet-update.svg | 1 - static/sauna.svg | 24 ------ 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(+), 155 deletions(-) create mode 100644 Dockerfile rename {static => src/font}/7Auwp_0qiz-afTLGLQjUwkQ.woff2 (100%) delete mode 100644 static/favicon.png delete mode 100644 static/hahn.svg delete mode 100644 static/haus.svg 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/sauna.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 @@
- --> + - +