From 1d20240af433eef0c44728c41b1416385e9a835a Mon Sep 17 00:00:00 2001 From: Ward Truyen Date: Mon, 29 Jul 2024 14:47:25 +0200 Subject: [PATCH] Initial commit --- Dockerfile | 8 ++++++ compose.yml | 9 +++++++ src/css/main.css | 65 ++++++++++++++++++++++++++++++++++++++++++++++++ src/index.html | 21 ++++++++++++++++ 4 files changed, 103 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml create mode 100644 src/css/main.css create mode 100644 src/index.html diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..447f0ff --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM node:lts-alpine3.20 + +WORKDIR /app +COPY src/ . + +RUN npm install --global serve +EXPOSE 3000 +CMD [ "serve", "." ] diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..f04a476 --- /dev/null +++ b/compose.yml @@ -0,0 +1,9 @@ +services: + siteward: + build: . + labels: + - "traefik.http.routers.siteward.rule=Host(`ward.truyen.network`) && PathPrefix(`/`)" + - "traefik.http.routers.siteward.entrypoints=websecure" +# - "traefik.http.routers.siteward.tls=true" +# - "traefik.http.routers.siteward.tls.certresolver=letsencrypt" + - "traefik.enable=true" diff --git a/src/css/main.css b/src/css/main.css new file mode 100644 index 0000000..dedff00 --- /dev/null +++ b/src/css/main.css @@ -0,0 +1,65 @@ +/* Author: Ward Truyen + * Version: 1.0.0 + */ + +:root { + color-scheme: light dark; +} + +html, +body { + margin: 0px; + padding: 0px; + height: 100%; + display: flex; + flex-direction: column; + /* colors */ + background-image: linear-gradient(-30deg, #C0E0FF6F 70%, #FFE0C04F); +} + +main { + margin: auto; + width: 80%; + padding: 10px; + min-height: 40%; + /* colors */ + border: 1px solid darkblue; + background-color: white; + box-shadow: 3px 3px 3px #30303090; +} + +main h1 { + font-family: "Raleway", sans-serif; + font-size: 4em; + margin-top: 4px; + margin-bottom: 8px; + text-decoration: underline; + text-shadow: 0px 0px 4px white, 2px 2px 6px; +} + +main p, +main a { + padding-left: 1em; +} + +.text-red { + color: red; +} + +@media(prefers-color-scheme: dark) { + + html, + body { + background-image: linear-gradient(-10deg, #1010206F 60%, #5050506F); + } + + main { + border: 1px solid darkgray; + background-color: black; + box-shadow: 3px 3px 5px #101010C0; + } + + main h1 { + text-shadow: 0px 0px 3px blue, 2px 2px 6px; + } +} diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..4cdceb1 --- /dev/null +++ b/src/index.html @@ -0,0 +1,21 @@ + + + + + Ward Truyen home + + + + + +
+

Ward Truyen home

+

Status:

+

Under construction

+

Links

+ truyen.network +
+ + + +