chore: Added website

This commit is contained in:
Ward Truyen 2024-07-26 14:23:26 +02:00
parent 6b9f37a4f8
commit c49a49b733
33 changed files with 131 additions and 16 deletions

View File

@ -1,13 +0,0 @@
#version: '3'
services:
sampleweb:
build: .
# ports:
# - "8000:3000"
labels:
- "traefik.http.routers.sampleweb.rule=Host(`ward.truyen.network`) && PathPrefix(`/`)"
- "traefik.http.routers.sampleweb.entrypoints=websecure"
# - "traefik.http.routers.sampleweb.tls=true"
# - "traefik.http.routers.sampleweb.tls.certresolver=letsencrypt"
- "traefik.enable=true"

17
docker/compose.yml Normal file
View File

@ -0,0 +1,17 @@
services:
ward:
build: ward
labels:
- "traefik.http.routers.sampleweb.rule=Host(`ward.truyen.network`) && PathPrefix(`/`)"
- "traefik.http.routers.sampleweb.entrypoints=websecure"
# - "traefik.http.routers.sampleweb.tls=true"
# - "traefik.http.routers.sampleweb.tls.certresolver=letsencrypt"
- "traefik.enable=true"
root:
build: root
labels:
- "traefik.http.routers.sampleweb.rule=Host(`truyen.network`) && PathPrefix(`/`)"
- "traefik.http.routers.sampleweb.entrypoints=websecure"
# - "traefik.http.routers.sampleweb.tls=true"
# - "traefik.http.routers.sampleweb.tls.certresolver=letsencrypt"
- "traefik.enable=true"

View File

@ -1,7 +1,7 @@
FROM node:lts-alpine3.20
WORKDIR /app
COPY src/ .
COPY ../../src/root .
RUN npm install --global serve
EXPOSE 3000

9
docker/ward/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM node:lts-alpine3.20
WORKDIR /app
COPY ../../src/ward .
RUN npm install --global serve
EXPOSE 3000
CMD [ "serve", "." ]
#http://localhost:3000

View File

@ -12,10 +12,10 @@ docker: docker-compose
docker-compose: docker-compose-up
docker-compose-up:
docker compose up -d
docker compose -f docker/compose/yml up -d
docker-compose-down:
docker compose down
docker compose -f docker/compose/yml down
docker-build:
docker build -t $(imageName) .

81
src/root/css/main.css Normal file
View File

@ -0,0 +1,81 @@
/* Author: Ward Truyen
* Version: 1.3.0
*/
html,
body {
margin: 0px;
padding: 0px;
background-image: linear-gradient(30deg, #FF72736F 70%, #FF72732F);
height: 100%;
display: flex;
flex-direction: column;
}
main {
margin: auto;
width: 80%;
border: 2px solid darkgreen;
padding: 10px;
background-color: white;
box-shadow: 3px 3px 3px black;
}
h1 {
margin-top: 4px;
margin-bottom: 8px;
text-decoration: underline;
}
header {
padding: 2px 16px 4px 16px;
/* width: 100%; */
border-bottom: 1px solid black;
/* background-image: linear-gradient(#0000008f, #0000004f); */
background-color: #80808080;
/* linear-gradient(#0000008f, #0000004f);*/
/* margin-top: 16px; */
text-shadow: 1px 1px 1px #0000004f;
}
header a {
/* border: solid 1px black; */
padding: 2px;
margin: 1px;
}
footer {
padding: 8px 16px 4px 16px;
/* width: 100%; */
border-top: 1px solid black;
/* background-color: #0000004f; */
background-image: linear-gradient(#0000008f, #0000004f);
/* margin-top: 16px; */
margin-top: auto;
text-shadow: 1px 1px 1px #0000004f;
}
footer h1,
footer h2,
footer h3,
footer p {
display: inline;
margin: 0px;
}
.float-right {
float: right;
}
.text-red {
color: red;
}
.button-red {
background-color: red;
}
.button-black {
background-color: black;
color: white;
}

21
src/root/index.html Normal file
View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<title>WTerminal home</title>
<link rel="stylesheet" href="css/main.css" />
</head>
<body>
<main>
<h1>Truyen home</h1>
<p>Under construction</p>
</main>
<footer>
<p class="float-right">Author: Ward Truyen</p>
</footer>
</body>
</html>

View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB