From 5c7a924be2e1972fc30ba0fafcf1fa3d3d72a43c Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 18 Nov 2024 13:40:21 -0600 Subject: [PATCH] Add Bluesky and Mastadon accounts, and add some Mastodon metadata to header --- templates/Footer.php | 20 +++++++++++--- templates/Header.php | 57 +++++++++++++++++++++------------------- www/css/core.css | 8 ++++++ www/images/bluesky.svg | 4 +++ www/images/facebook.svg | 46 +++----------------------------- www/images/instagram.svg | 2 +- www/images/mastodon.svg | 6 +++++ www/images/x.svg | 2 +- 8 files changed, 69 insertions(+), 76 deletions(-) create mode 100644 www/images/bluesky.svg create mode 100644 www/images/mastodon.svg diff --git a/templates/Footer.php b/templates/Footer.php index 5bf4c406..889925ed 100644 --- a/templates/Footer.php +++ b/templates/Footer.php @@ -2,17 +2,27 @@ @@ -48,7 +58,9 @@

Content produced by or for Standard Ebooks L3C is dedicated to the public domain via the CC0 1.0 Universal Public Domain Dedication.

Content not produced by or for Standard Ebooks L3C but displayed on this website may be subject to copyright.

-

Standard Ebooks

+

+ Standard Ebooks +

diff --git a/templates/Header.php b/templates/Header.php index bad3e962..ae8773e9 100644 --- a/templates/Header.php +++ b/templates/Header.php @@ -33,32 +33,34 @@ if(!$isXslt){ <? if($title != ''){ ?><?= Formatter::EscapeHtml($title) ?> - <? } ?>Standard Ebooks: Free and liberated ebooks, carefully produced for the true book lover. - + + + - - + + - - - - + + + + - - - - + + + + - + - + @@ -67,25 +69,26 @@ if(!$isXslt){ - - - + + + - - - + + + - - - - - - - - + + + + + + + + + diff --git a/www/css/core.css b/www/css/core.css index 3c41591c..04cfd11f 100644 --- a/www/css/core.css +++ b/www/css/core.css @@ -1399,6 +1399,14 @@ footer ul.social-media a[href^="https://www.instagram.com"]::before{ background-image: url("/images/instagram.svg"); } +footer ul.social-media a[href^="https://bsky.app"]::before{ + background-image: url("/images/bluesky.svg"); +} + +footer ul.social-media a[href^="https://mastodon.social"]::before{ + background-image: url("/images/mastodon.svg"); +} + footer ul.social-media a:hover::before{ /* This filter changes a black background to #62bfa3, which is var(--button-highlight) */ filter: invert(69%) sepia(35%) saturate(459%) hue-rotate(111deg) brightness(92%) contrast(87%); diff --git a/www/images/bluesky.svg b/www/images/bluesky.svg new file mode 100644 index 00000000..6372437e --- /dev/null +++ b/www/images/bluesky.svg @@ -0,0 +1,4 @@ + + + + diff --git a/www/images/facebook.svg b/www/images/facebook.svg index d083d098..16870bbc 100644 --- a/www/images/facebook.svg +++ b/www/images/facebook.svg @@ -1,44 +1,4 @@ - - - - - - + + + diff --git a/www/images/instagram.svg b/www/images/instagram.svg index dc392bda..6e3c2a28 100644 --- a/www/images/instagram.svg +++ b/www/images/instagram.svg @@ -1,5 +1,5 @@ - + diff --git a/www/images/mastodon.svg b/www/images/mastodon.svg new file mode 100644 index 00000000..93d002d7 --- /dev/null +++ b/www/images/mastodon.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/www/images/x.svg b/www/images/x.svg index 6990b14b..5ada5bd7 100644 --- a/www/images/x.svg +++ b/www/images/x.svg @@ -1,4 +1,4 @@ - +