From 320cc94e707c5a36623dec63b786631526150cff Mon Sep 17 00:00:00 2001 From: June Hardy Date: Mon, 26 Apr 2021 17:05:18 +0200 Subject: [PATCH] Manage social links --- content/june.md | 12 ++------ sass/dracula.scss | 52 +++++++++++++++++++++++++++------ static/img/social/instagram.svg | 45 ++++++++++++++++++++++++++++ static/img/social/liberapay.svg | 1 + static/img/social/linkedin.svg | 45 ++++++++++++++++++++++++++++ static/img/social/mastodon.svg | 1 + static/img/social/pleroma.svg | 1 + static/img/social/twitter.svg | 49 +++++++++++++++++++++++++++++++ templates/page.html | 35 +++++++++++++++++++++- 9 files changed, 222 insertions(+), 19 deletions(-) create mode 100644 static/img/social/instagram.svg create mode 100644 static/img/social/liberapay.svg create mode 100644 static/img/social/linkedin.svg create mode 100644 static/img/social/mastodon.svg create mode 100644 static/img/social/pleroma.svg create mode 100644 static/img/social/twitter.svg diff --git a/content/june.md b/content/june.md index 4c5b0cd..4abf683 100644 --- a/content/june.md +++ b/content/june.md @@ -4,6 +4,9 @@ title = "June" [extra] avatar = "june.png" style = "dracula.css" +twitter = "https://twitter.com/The_DNS_Witch" +pleroma = "https://social.lacoloc.cafe/june" +liberapay = "https://liberapay.com/June_Cafe/" +++ ## DNS Witch, le collectif @@ -21,14 +24,5 @@ style = "dracula.css" ## Blog ### https://june.blog.wehost.lgbt -## Liberapay -### https://liberapay.com/June_Cafe/ - ## uTip ### https://utip.io/june_cafe - -## Twitter -### https://twitter.com/The_DNS_Witch - -## Fediverse -### https://social.lacoloc.cafe/june diff --git a/sass/dracula.scss b/sass/dracula.scss index 3cb1b1b..a51d98b 100644 --- a/sass/dracula.scss +++ b/sass/dracula.scss @@ -21,12 +21,12 @@ src: url('fonts/b612-regular.ttf') format('truetype'); } -body{ +body { background-color: var(--background); color: var(--white); } -footer{ +footer { text-align: center; color:var(--comment); @@ -40,7 +40,7 @@ footer a { color: var(--orange) } -#userPhoto{ +#userPhoto { width: 96px; height: 96px; @@ -52,7 +52,7 @@ footer a { border: solid var(--purple) 2px; } -#userName{ +#userName { width: 100%; color: var(--pink); @@ -68,7 +68,7 @@ footer a { display: block; } -#links{ +#links { max-width: 675px; width: auto; @@ -76,7 +76,7 @@ footer a { margin: 27px auto; } -.link{ +.link { display: block; margin-bottom: 20px; padding: 17px; @@ -97,8 +97,42 @@ footer a { transition: all .25s cubic-bezier(.08,.59,.29,.99); } - -.link:hover{ +.link:hover { background-color: var(--selection); color: var(--purple); -} \ No newline at end of file +} + +#social-links { + display: flex + justify-content: center +} + +.social { + background-color: var(--comment); + height: 32px; + width: 32px; + mask-repeat: no-repeat; + mask-position: center; + display: inline-block; +} +.social:hover { + background-color: var(--purple); +} +.social#instagram { + mask-image: url("/img/social/instagram.svg"); +} +.social#liberapay { + mask-image: url("/img/social/liberapay.svg"); +} +.social#linkedin { + mask-image: url("/img/social/linkedin.svg"); +} +.social#mastodon { + mask-image: url("/img/social/mastodon.svg"); +} +.social#pleroma { + mask-image: url("/img/social/pleroma.svg"); +} +.social#twitter { + mask-image: url("/img/social/twitter.svg"); +} diff --git a/static/img/social/instagram.svg b/static/img/social/instagram.svg new file mode 100644 index 0000000..85912ed --- /dev/null +++ b/static/img/social/instagram.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/social/liberapay.svg b/static/img/social/liberapay.svg new file mode 100644 index 0000000..bf78965 --- /dev/null +++ b/static/img/social/liberapay.svg @@ -0,0 +1 @@ +Liberapay icon \ No newline at end of file diff --git a/static/img/social/linkedin.svg b/static/img/social/linkedin.svg new file mode 100644 index 0000000..7c7cf97 --- /dev/null +++ b/static/img/social/linkedin.svg @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/img/social/mastodon.svg b/static/img/social/mastodon.svg new file mode 100644 index 0000000..b84142a --- /dev/null +++ b/static/img/social/mastodon.svg @@ -0,0 +1 @@ +Mastodon icon \ No newline at end of file diff --git a/static/img/social/pleroma.svg b/static/img/social/pleroma.svg new file mode 100644 index 0000000..d2a7b7d --- /dev/null +++ b/static/img/social/pleroma.svg @@ -0,0 +1 @@ +Pleroma icon \ No newline at end of file diff --git a/static/img/social/twitter.svg b/static/img/social/twitter.svg new file mode 100644 index 0000000..3d8eb70 --- /dev/null +++ b/static/img/social/twitter.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/page.html b/templates/page.html index 64f35e4..f1ce236 100644 --- a/templates/page.html +++ b/templates/page.html @@ -33,10 +33,43 @@ {% endfor %} {% endif %} {% endfor %} + + {% endif %} {% endblock toc %} - +