feat(Docker): Add docker for browser-sync
Crop image to real content
Before Width: | Height: | Size: 469 KiB |
Before Width: | Height: | Size: 1.2 MiB |
Before Width: | Height: | Size: 1,001 KiB |
Before Width: | Height: | Size: 1 MiB |
|
@ -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
|
@ -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
|
@ -0,0 +1,9 @@
|
|||
FROM node:current-alpine
|
||||
|
||||
RUN npm -g install browser-sync
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
EXPOSE 3000 3001
|
||||
|
||||
ENTRYPOINT ["browser-sync"]
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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;
|
||||
}
|
Before Width: | Height: | Size: 417 KiB After Width: | Height: | Size: 417 KiB |
Before Width: | Height: | Size: 4 MiB After Width: | Height: | Size: 4 MiB |
BIN
src/assets/images/background.png
Normal file
After Width: | Height: | Size: 480 KiB |
Before Width: | Height: | Size: 281 KiB After Width: | Height: | Size: 281 KiB |
Before Width: | Height: | Size: 779 KiB After Width: | Height: | Size: 779 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 109 KiB |
Before Width: | Height: | Size: 177 KiB After Width: | Height: | Size: 177 KiB |
Before Width: | Height: | Size: 382 KiB After Width: | Height: | Size: 382 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 4 MiB After Width: | Height: | Size: 4 MiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 814 B After Width: | Height: | Size: 814 B |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 438 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 3.1 MiB After Width: | Height: | Size: 3.1 MiB |
Before Width: | Height: | Size: 2.7 MiB After Width: | Height: | Size: 2.7 MiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 1.4 MiB |
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 453 B |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 3 KiB After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 424 KiB After Width: | Height: | Size: 424 KiB |
Before Width: | Height: | Size: 716 KiB After Width: | Height: | Size: 716 KiB |
Before Width: | Height: | Size: 2 MiB After Width: | Height: | Size: 2 MiB |
Before Width: | Height: | Size: 2.8 MiB After Width: | Height: | Size: 2.8 MiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 879 B After Width: | Height: | Size: 879 B |
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
Before Width: | Height: | Size: 590 KiB After Width: | Height: | Size: 590 KiB |
Before Width: | Height: | Size: 739 KiB After Width: | Height: | Size: 739 KiB |
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 160 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 737 KiB After Width: | Height: | Size: 737 KiB |
Before Width: | Height: | Size: 2.1 MiB After Width: | Height: | Size: 2.1 MiB |
Before Width: | Height: | Size: 775 KiB After Width: | Height: | Size: 775 KiB |
Before Width: | Height: | Size: 2.2 MiB After Width: | Height: | Size: 2.2 MiB |
Before Width: | Height: | Size: 476 KiB After Width: | Height: | Size: 476 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
Before Width: | Height: | Size: 613 KiB After Width: | Height: | Size: 613 KiB |
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 137 KiB |
Before Width: | Height: | Size: 608 KiB After Width: | Height: | Size: 608 KiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
Before Width: | Height: | Size: 325 KiB After Width: | Height: | Size: 325 KiB |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 383 KiB After Width: | Height: | Size: 383 KiB |
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 1.7 MiB After Width: | Height: | Size: 1.7 MiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 349 KiB After Width: | Height: | Size: 349 KiB |
Before Width: | Height: | Size: 1 MiB After Width: | Height: | Size: 1 MiB |
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
Before Width: | Height: | Size: 592 KiB After Width: | Height: | Size: 592 KiB |
Before Width: | Height: | Size: 828 KiB After Width: | Height: | Size: 828 KiB |
Before Width: | Height: | Size: 726 B After Width: | Height: | Size: 726 B |
BIN
src/assets/images/user1.png
Normal file
After Width: | Height: | Size: 1.1 MiB |
Before Width: | Height: | Size: 2.2 MiB After Width: | Height: | Size: 2.2 MiB |
BIN
src/assets/images/user2.png
Normal file
After Width: | Height: | Size: 936 KiB |
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
BIN
src/assets/images/user3.png
Normal file
After Width: | Height: | Size: 968 KiB |
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 133 KiB |
Before Width: | Height: | Size: 374 KiB After Width: | Height: | Size: 374 KiB |