Background image

This commit is contained in:
Pascal Engélibert 2020-12-08 18:16:05 +01:00
parent 9b7c651a8f
commit bd632e3ed1
6 changed files with 18 additions and 6 deletions

View File

@ -11,6 +11,7 @@ static STATIC_FILES: &[(&str, &[u8])] = &[
"LinBiolinum_R.otf",
include_bytes!("../static/LinBiolinum_R.otf"),
),
("background.jpg", include_bytes!("../static/background.jpg")),
];
pub fn init_static_files(dir: &Path) {

BIN
static/background.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -17,6 +17,10 @@ html, body {
font-size: 110%;
}
body {
background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), url("/static/background.jpg");
}
h1, h2, h3, h4 {
font-family: "Karma";
}
@ -48,6 +52,10 @@ h1, h2, h3, h4 {
padding: 4px;
}
.page {
background-color: rgba(255,255,255,0.95);
}
@media screen and (min-width: 801px) {
.center {
width: 800px;

View File

@ -7,7 +7,7 @@
<link rel="shortcut icon" href="/static/icon.png"/>
</head>
<body>
<div class="center">
<div class="center page">
<a href="/"><img id="banner" alt="ĞMarché" src="/static/banner.jpg"/></a>
<h1>Administration &#8211; ĞMarché</h1>
@ -55,7 +55,8 @@
<p><a href="https://forum.duniter.org">Toutes les questions techniques ont leur place sur le forum.</a></p>
<p><a href="https://git.p2p.legal/tuxmain/gmarche-rs">Code source</a> sous licence <a href="https://www.gnu.org/licenses/licenses.html#AGPL">GNU AGPL v3</a>. &#129408; Écrit en <a href="https://www.rust-lang.org">Rust</a>. Images de Attilax.<br/>
CopyLeft 2020 Pascal Engélibert</p>
CopyLeft 2020 Pascal Engélibert<br/>
Image de fond&nbsp;: Claudia Peters, FreeImages.com</a></p>
<p><a href="/">Accueil</a> &#8211; <a href="/admin/logout">Verrouiller</a></p>
</div>

View File

@ -7,7 +7,7 @@
<link rel="shortcut icon" href="/static/icon.png"/>
</head>
<body>
<div class="center">
<div class="center page">
<a href="/"><img id="banner" alt="ĞMarché" src="/static/banner.jpg"/></a>
<h1>Administration &#8211; ĞMarché</h1>
@ -36,7 +36,8 @@
<p><a href="https://forum.duniter.org">Toutes les questions techniques ont leur place sur le forum.</a></p>
<p><a href="https://git.p2p.legal/tuxmain/gmarche-rs">Code source</a> sous licence <a href="https://www.gnu.org/licenses/licenses.html#AGPL">GNU AGPL v3</a>. &#129408; Écrit en <a href="https://www.rust-lang.org">Rust</a>. Images de Attilax.<br/>
CopyLeft 2020 Pascal Engélibert</p>
CopyLeft 2020 Pascal Engélibert<br/>
Image de fond&nbsp;: Claudia Peters, FreeImages.com</a></p>
<p><a href="/">Accueil</a></p>
</div>

View File

@ -7,7 +7,7 @@
<link rel="shortcut icon" href="/static/icon.png"/>
</head>
<body>
<div class="center">
<div class="center page">
<a href="/"><img id="banner" alt="ĞMarché" src="/static/banner.jpg"/></a>
<h1>ĞMarché</h1>
@ -84,7 +84,8 @@
<p><a href="https://forum.duniter.org">Toutes les questions techniques ont leur place sur le forum.</a></p>
<p><a href="https://git.p2p.legal/tuxmain/gmarche-rs">Code source</a> sous licence <a href="https://www.gnu.org/licenses/licenses.html#AGPL">GNU AGPL v3</a>. &#129408; Écrit en <a href="https://www.rust-lang.org">Rust</a>. Images de Attilax.<br/>
CopyLeft 2020 Pascal Engélibert</p>
CopyLeft 2020 Pascal Engélibert<br/>
Image de fond&nbsp;: Claudia Peters, FreeImages.com</a></p>
<p><a href="/admin">Administration</a></p>
</div>