feat(Docker): Add docker for browser-sync

Crop image to real content
This commit is contained in:
Hactarus 2023-03-16 12:42:09 +01:00
parent 82a2744d84
commit c03e53e769
105 changed files with 155 additions and 111 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 469 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,001 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

View file

@ -1,21 +0,0 @@
// https://web.dev/building-a-theme-switch-component/
const storageKey = 'theme-preference'
const getColorPreference = () => {
if (localStorage.getItem(storageKey))
return localStorage.getItem(storageKey)
else
return window.matchMedia('(prefers-color-scheme: dark)').matches
? 'dark'
: 'light'
}
const setPreference = () => {
localStorage.setItem(storageKey, theme.value)
reflectPreference()
}
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', ({matches:isDark}) => {
theme.value = isDark ? 'dark' : 'light'
setPreference()
})

11
docker-compose.yml Normal file
View file

@ -0,0 +1,11 @@
---
services:
web:
build: docker
volumes:
- ./src:/data
- /data/node_modules
ports:
- "3000:3000"
- "3001:3001"
command: start --server --files "/data"

9
docker/Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM node:current-alpine
RUN npm -g install browser-sync
WORKDIR /data
EXPOSE 3000 3001
ENTRYPOINT ["browser-sync"]

View file

@ -1,21 +1,21 @@
:root {
--color-active: #FF00C7;
--color-bg-head: #77A3D2;
--color-bg-sctn-pink: #EDCCE7;
--color-bg-sctn-green: #CDFB52;
--color-bg-sctn-blue: #52f8fb;
--color-bg-sctn-fuscia: #FF00C7;
--color-active: #FF00C7;
--color-visited: #4B003B;
--color-hover: #EDCCE7;
--color-link: #000000;
--color-icone: #fff;
--color-discu-pink: #FFB4EF;
--color-link-f: #00fa6c;
--color-link-block: #4B003B;
--color-bg-sctn-green: #CDFB52;
--color-bg-sctn-pink: #EDCCE7;
--color-bg: #000000;
--color-txt: #ffffff;
--color-txt-b: #000000;
--color-discu-pink: #4B003B;
--color-discu-green: #1C4D00;
--color-discu-blue: #00354B;
--color-discu-green: #1C4D00;
--color-discu-pink: #4B003B;
--color-discu-pink: #FFB4EF;
--color-hover: #EDCCE7;
--color-icone: #fff;
--color-link-block: #4B003B;
--color-link-f: #00fa6c;
--color-link: #000000;
--color-txt-b: #000000;
--color-txt: #ffffff;
--color-visited: #4B003B;
}

View file

@ -1,22 +1,22 @@
:root {
--color-active: #FF00C7;
--color-bg-head: #77A3D2;
--color-bg: white;
--color-bg-sctn-pink: #EDCCE7;
--color-bg-sctn-green: #CDFB52;
--color-bg-sctn-blue: #52f8fb;
--color-bg-sctn-fuscia: #FF00C7;
--color-active: #FF00C7;
--color-visited: #4B003B;
--color-hover: #EDCCE7;
--color-link: #000000;
--color-icone: #fff;
--color-discu-pink: #FFB4EF;
--color-link-f: #00fa6c;
--color-link-block: #4B003B;
--color-txt: #23f3f3;
--color-link: #000000;
--color-icone: #000;
--color-discu-pink: #FFB4EF;
--color-discu-green: #CEFFB2;
--color-bg-sctn-green: #CDFB52;
--color-bg-sctn-pink: #EDCCE7;
--color-bg: white;
--color-discu-blue: #B4E9FF;
--color-discu-green: #CEFFB2;
--color-discu-pink: #FFB4EF;
--color-discu-pink: #FFB4EF;
--color-hover: #EDCCE7;
--color-icone: #000;
--color-icone: #fff;
--color-link-block: #4B003B;
--color-link-f: #00fa6c;
--color-link: #000000;
--color-link: #000000;
--color-txt: #23f3f3;
--color-visited: #4B003B;
}

View file

@ -1,17 +1,18 @@
/* Navigation */
body {
margin: 0;
padding: 0;
}
header {
height: 5vh;
}
header > nav {
menu {
margin: 0;
padding: 0;
position: fixed;
top: 0;
right: 0;
left: 0;
height: 5vh;
background-color: transparent;
vertical-align: middle;
background-repeat: no-repeat;
border: none;
cursor: pointer;
@ -20,7 +21,9 @@ header > nav {
color: var(--color-link);
}
nav>ul {
menu>ul {
margin: 0;
padding: 0;
display: flex;
flex-direction: row;
width: 100%;
@ -28,8 +31,11 @@ nav>ul {
justify-content: space-around;
}
nav>ul>li {
flex: auto;
menu>ul>li {
flex: content;
}
header {
}
section {
@ -78,18 +84,17 @@ h2 {
.fond {
background-repeat: no-repeat;
background-size: cover;
padding-bottom: 100%;
padding-top: 18vh;
background-size: 100% auto;
background-image: url(../images/background.png);
background-color: var(--color-bg-head);
filter: contrast(130%);
text-align: center;
}
.fond > img{
width: 50vw;
min-height: 20vh;
}
.highlight {
background: linear-gradient(120deg, #ff00e329 0%, #74ff0069 100%);
background-repeat: no-repeat;
background-size: 100% 20%;
background-position: 0 60%;
img {
max-width: 100vw;
}

View file

Before

Width:  |  Height:  |  Size: 417 KiB

After

Width:  |  Height:  |  Size: 417 KiB

View file

Before

Width:  |  Height:  |  Size: 4 MiB

After

Width:  |  Height:  |  Size: 4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 KiB

View file

Before

Width:  |  Height:  |  Size: 281 KiB

After

Width:  |  Height:  |  Size: 281 KiB

View file

Before

Width:  |  Height:  |  Size: 779 KiB

After

Width:  |  Height:  |  Size: 779 KiB

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

View file

Before

Width:  |  Height:  |  Size: 109 KiB

After

Width:  |  Height:  |  Size: 109 KiB

View file

Before

Width:  |  Height:  |  Size: 177 KiB

After

Width:  |  Height:  |  Size: 177 KiB

View file

Before

Width:  |  Height:  |  Size: 382 KiB

After

Width:  |  Height:  |  Size: 382 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

Before

Width:  |  Height:  |  Size: 4 MiB

After

Width:  |  Height:  |  Size: 4 MiB

View file

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View file

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View file

Before

Width:  |  Height:  |  Size: 814 B

After

Width:  |  Height:  |  Size: 814 B

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 438 B

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

Before

Width:  |  Height:  |  Size: 3.1 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

View file

Before

Width:  |  Height:  |  Size: 2.7 MiB

After

Width:  |  Height:  |  Size: 2.7 MiB

View file

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View file

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 453 B

View file

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

Before

Width:  |  Height:  |  Size: 3 KiB

After

Width:  |  Height:  |  Size: 3 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

View file

Before

Width:  |  Height:  |  Size: 424 KiB

After

Width:  |  Height:  |  Size: 424 KiB

View file

Before

Width:  |  Height:  |  Size: 716 KiB

After

Width:  |  Height:  |  Size: 716 KiB

View file

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 2 MiB

View file

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View file

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

View file

Before

Width:  |  Height:  |  Size: 879 B

After

Width:  |  Height:  |  Size: 879 B

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB

View file

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

View file

Before

Width:  |  Height:  |  Size: 590 KiB

After

Width:  |  Height:  |  Size: 590 KiB

View file

Before

Width:  |  Height:  |  Size: 739 KiB

After

Width:  |  Height:  |  Size: 739 KiB

View file

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

View file

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

View file

Before

Width:  |  Height:  |  Size: 737 KiB

After

Width:  |  Height:  |  Size: 737 KiB

View file

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

View file

Before

Width:  |  Height:  |  Size: 775 KiB

After

Width:  |  Height:  |  Size: 775 KiB

View file

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

View file

Before

Width:  |  Height:  |  Size: 476 KiB

After

Width:  |  Height:  |  Size: 476 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View file

Before

Width:  |  Height:  |  Size: 84 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View file

Before

Width:  |  Height:  |  Size: 613 KiB

After

Width:  |  Height:  |  Size: 613 KiB

View file

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

View file

Before

Width:  |  Height:  |  Size: 608 KiB

After

Width:  |  Height:  |  Size: 608 KiB

View file

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

View file

Before

Width:  |  Height:  |  Size: 325 KiB

After

Width:  |  Height:  |  Size: 325 KiB

View file

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View file

Before

Width:  |  Height:  |  Size: 383 KiB

After

Width:  |  Height:  |  Size: 383 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

View file

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View file

Before

Width:  |  Height:  |  Size: 349 KiB

After

Width:  |  Height:  |  Size: 349 KiB

View file

Before

Width:  |  Height:  |  Size: 1 MiB

After

Width:  |  Height:  |  Size: 1 MiB

View file

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View file

Before

Width:  |  Height:  |  Size: 592 KiB

After

Width:  |  Height:  |  Size: 592 KiB

View file

Before

Width:  |  Height:  |  Size: 828 KiB

After

Width:  |  Height:  |  Size: 828 KiB

View file

Before

Width:  |  Height:  |  Size: 726 B

After

Width:  |  Height:  |  Size: 726 B

BIN
src/assets/images/user1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

Before

Width:  |  Height:  |  Size: 2.2 MiB

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
src/assets/images/user2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

BIN
src/assets/images/user3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 968 KiB

View file

Before

Width:  |  Height:  |  Size: 1.9 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

View file

Before

Width:  |  Height:  |  Size: 133 KiB

After

Width:  |  Height:  |  Size: 133 KiB

View file

Before

Width:  |  Height:  |  Size: 374 KiB

After

Width:  |  Height:  |  Size: 374 KiB

Some files were not shown because too many files have changed in this diff Show more