Victor Lacasse-Beaudoin
996aa67984
Bump golang -> `1.21.4` Bump alpine -> `3.18.4` Exposer fichiers html sur `/*` Exposer fichiers css sur `/public/css/*` Exposer fichiers js sur `/public/js/*` Retirer prefix cgo de build step Ajouter `public/` à build step Retirer `public/static/` de `static/` dans run step Retirer mentions à static_dir dans `cmd/server.go` Retirer flag `server.static_dir`, `--static_dir` de serverCmd Retirer paramètre `static_dir` de `runServer` Remplacer middleware `RemoveTrailingSlash` -> `AddTrailingSlash` Ajouter `echo.Group`s pour exposition statique avec config Refactor déclaration de routes api derrière groupe `/api` Fix références de fichiers js et css dans `index.html` et `slider.js` BREAKING: static_dir n'est plus utilisé, les fichiers sont maintenant embedded
79 lines
No EOL
1.2 KiB
CSS
79 lines
No EOL
1.2 KiB
CSS
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
display: flex;
|
|
flex-flow: column;
|
|
height: 100vh;
|
|
}
|
|
|
|
embed {
|
|
max-width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
#contenu {
|
|
background-color: black;
|
|
text-align: center;
|
|
width: 100%;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
#bar {
|
|
width: 100%;
|
|
background-image: linear-gradient(to right, #033ead, #3093d1);
|
|
color: white;
|
|
font-family: 'Roboto', sans-serif;
|
|
font-weight: bold;
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 75px;
|
|
}
|
|
|
|
img#bar-bg {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: -1;
|
|
}
|
|
|
|
#time {
|
|
font-size: 300%;
|
|
height: 53px;
|
|
}
|
|
|
|
#text-content {
|
|
white-space: nowrap;
|
|
z-index: 1;
|
|
display: block;
|
|
height: 100%;
|
|
padding-top: 55px;
|
|
position: relative;
|
|
}
|
|
|
|
#text-container {
|
|
height: 100%;
|
|
background-image: linear-gradient(to right, #033ead, #3093d1);
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 20px;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
#text-content div {
|
|
display: block;
|
|
position: fixed;
|
|
height: 100%;
|
|
}
|
|
|
|
#date-time {
|
|
display: flex;
|
|
flex-flow: column;
|
|
align-items: center;
|
|
height: 100%;
|
|
background-color: #033ead;
|
|
z-index: 1;
|
|
width: 225px;
|
|
} |