From e02fdc0e0f0c9aead3252acb4ff25d1e156d5156 Mon Sep 17 00:00:00 2001 From: Halfdan Date: Sat, 21 Jan 2023 18:26:59 +0100 Subject: [PATCH] Adding a footer with links to our different online presences --- static/static/img/gitea_logo.svg | 57 +++++++++++++++++++ static/static/img/mastodon_logo.svg | 4 ++ static/static/img/matrix_logo.svg | 7 +++ .../datacoop2020/assets/static/css/style.scss | 30 +++++++++- .../datacoop2020/layouts/_default/baseof.html | 5 +- .../datacoop2020/layouts/partials/footer.html | 3 + 6 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 static/static/img/gitea_logo.svg create mode 100644 static/static/img/mastodon_logo.svg create mode 100644 static/static/img/matrix_logo.svg create mode 100644 themes/datacoop2020/layouts/partials/footer.html diff --git a/static/static/img/gitea_logo.svg b/static/static/img/gitea_logo.svg new file mode 100644 index 00000000..892018dc --- /dev/null +++ b/static/static/img/gitea_logo.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + diff --git a/static/static/img/mastodon_logo.svg b/static/static/img/mastodon_logo.svg new file mode 100644 index 00000000..78c4c136 --- /dev/null +++ b/static/static/img/mastodon_logo.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/static/img/matrix_logo.svg b/static/static/img/matrix_logo.svg new file mode 100644 index 00000000..a683ec93 --- /dev/null +++ b/static/static/img/matrix_logo.svg @@ -0,0 +1,7 @@ + + +Matrix (protocol) logo + + + + diff --git a/themes/datacoop2020/assets/static/css/style.scss b/themes/datacoop2020/assets/static/css/style.scss index c3ac1db0..7fc53e78 100644 --- a/themes/datacoop2020/assets/static/css/style.scss +++ b/themes/datacoop2020/assets/static/css/style.scss @@ -190,6 +190,21 @@ aside header a img { height : 140px; } +aside > footer { + position : fixed; + bottom : 0; +} + +aside > footer img { + margin-right : 5px; + opacity : 0.5; +} + +aside > footer img:hover { + opacity : 1; +} + + dl.dl-services { display : grid; column-gap : 2rem; @@ -238,7 +253,15 @@ dl.dl-services { display : none; } - aside nav.display { + aside.display nav { + display : inherit; + } + + aside > footer { + display : none; + } + + aside.display > footer { display : inherit; } @@ -254,6 +277,11 @@ dl.dl-services { font-size : 3rem; } + aside > footer { + position : relative; + bottom : 0; + } + header .nav-toggle { cursor : pointer; display : block; diff --git a/themes/datacoop2020/layouts/_default/baseof.html b/themes/datacoop2020/layouts/_default/baseof.html index 1b9a7397..ab6ce440 100644 --- a/themes/datacoop2020/layouts/_default/baseof.html +++ b/themes/datacoop2020/layouts/_default/baseof.html @@ -13,6 +13,9 @@ {{ partial "nav.html" . }} +
@@ -21,7 +24,7 @@