summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2021-02-07 20:33:46 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2021-02-08 19:56:29 +0100
commit786144052cae336a0c48fdfa576cffdafe9cae4a (patch)
tree96eeb8f2834915b16e49f1a75e71b8dcaab6e8ad
parenta747d119b1ef188dd15810dd9f2aa498553f3a7e (diff)
downloadquatuorbellefeuille.com-786144052cae336a0c48fdfa576cffdafe9cae4a.tar.xz
Add background to index and adapt colors
-rw-r--r--admin/img/bg.jpgbin0 -> 21486824 bytes
-rwxr-xr-xadmin/indexbg.sh17
-rw-r--r--images/index/bg1k.jpgbin0 -> 841793 bytes
-rw-r--r--images/index/bg2k.jpgbin0 -> 2806399 bytes
-rw-r--r--images/index/bg4k.jpgbin0 -> 9882942 bytes
-rw-r--r--images/index/bgmax.jpgbin0 -> 24386731 bytes
-rw-r--r--index.sh2
-rw-r--r--stylesheets/dark.css8
-rw-r--r--stylesheets/index.css3
9 files changed, 28 insertions, 2 deletions
diff --git a/admin/img/bg.jpg b/admin/img/bg.jpg
new file mode 100644
index 0000000..db83ec4
--- /dev/null
+++ b/admin/img/bg.jpg
Binary files differ
diff --git a/admin/indexbg.sh b/admin/indexbg.sh
new file mode 100755
index 0000000..3ef5f85
--- /dev/null
+++ b/admin/indexbg.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -eux
+
+OUTDIR=$(git rev-parse --show-toplevel)/images/index
+HERE=$(dirname $0)
+
+bg_src=${HERE}/img/bg.jpg
+bg_max=${OUTDIR}/bgmax.jpg
+bg_4k=${OUTDIR}/bg4k.jpg
+bg_2k=${OUTDIR}/bg2k.jpg
+bg_1k=${OUTDIR}/bg1k.jpg
+
+convert "${bg_src}" -flop "${bg_max}"
+convert "${bg_max}" -resize 4096x "${bg_4k}"
+convert "${bg_max}" -resize 2048x "${bg_2k}"
+convert "${bg_max}" -resize 1024x "${bg_1k}"
diff --git a/images/index/bg1k.jpg b/images/index/bg1k.jpg
new file mode 100644
index 0000000..e6d1d76
--- /dev/null
+++ b/images/index/bg1k.jpg
Binary files differ
diff --git a/images/index/bg2k.jpg b/images/index/bg2k.jpg
new file mode 100644
index 0000000..a11adf1
--- /dev/null
+++ b/images/index/bg2k.jpg
Binary files differ
diff --git a/images/index/bg4k.jpg b/images/index/bg4k.jpg
new file mode 100644
index 0000000..ab3e8f7
--- /dev/null
+++ b/images/index/bg4k.jpg
Binary files differ
diff --git a/images/index/bgmax.jpg b/images/index/bgmax.jpg
new file mode 100644
index 0000000..bf9d300
--- /dev/null
+++ b/images/index/bgmax.jpg
Binary files differ
diff --git a/index.sh b/index.sh
index 86bd36c..755fb5d 100644
--- a/index.sh
+++ b/index.sh
@@ -1,2 +1,2 @@
title=Bienvenue
-stylesheets=(index)
+stylesheets=(dark index)
diff --git a/stylesheets/dark.css b/stylesheets/dark.css
new file mode 100644
index 0000000..fd89914
--- /dev/null
+++ b/stylesheets/dark.css
@@ -0,0 +1,8 @@
+body {
+ background-color: black;
+ color: white;
+}
+
+header.banner img {
+ filter: brightness(10);
+}
diff --git a/stylesheets/index.css b/stylesheets/index.css
index 94e2d57..58ce4c7 100644
--- a/stylesheets/index.css
+++ b/stylesheets/index.css
@@ -1,5 +1,6 @@
body {
- background-color: #a33;
+ background: no-repeat center/cover url('backgroundflip.jpg');
+ background-position: 70% 30%;
}
main {