From 3753f06161b98a4263f1b78be22d6357a708c7bb Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Mon, 27 Apr 2020 17:31:00 +0200 Subject: [PATCH] [SOCIAL] Ajoute une liste de liens sociaux en bas de la front page --- layouts/index.html | 1 + layouts/partials/social.html | 14 ++++++++++++++ static/css/base.css | 15 +++++++++++++++ static/svg/500px.svg | 1 + static/svg/codepen.svg | 1 + static/svg/facebook.svg | 1 + static/svg/flickr.svg | 1 + static/svg/github.svg | 1 + static/svg/gitlab.svg | 1 + static/svg/instagram.svg | 1 + static/svg/linkedin.svg | 1 + static/svg/mastodon.svg | 1 + static/svg/peertube.svg | 1 + static/svg/pinterest.svg | 1 + static/svg/pixelfed.svg | 1 + static/svg/tumblr.svg | 1 + static/svg/twitter.svg | 1 + static/svg/youtube.svg | 1 + 18 files changed, 45 insertions(+) create mode 100644 layouts/partials/social.html create mode 100644 static/svg/500px.svg create mode 100644 static/svg/codepen.svg create mode 100644 static/svg/facebook.svg create mode 100644 static/svg/flickr.svg create mode 100644 static/svg/github.svg create mode 100644 static/svg/gitlab.svg create mode 100644 static/svg/instagram.svg create mode 100644 static/svg/linkedin.svg create mode 100644 static/svg/mastodon.svg create mode 100644 static/svg/peertube.svg create mode 100644 static/svg/pinterest.svg create mode 100644 static/svg/pixelfed.svg create mode 100644 static/svg/tumblr.svg create mode 100644 static/svg/twitter.svg create mode 100644 static/svg/youtube.svg diff --git a/layouts/index.html b/layouts/index.html index 23e439d..e371b9f 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,5 @@ {{ define "main" }} {{ partial "front.html" . }} {{ partial "sections.html" . }} +{{ partial "social.html" . }} {{ end }} diff --git a/layouts/partials/social.html b/layouts/partials/social.html new file mode 100644 index 0000000..a9df984 --- /dev/null +++ b/layouts/partials/social.html @@ -0,0 +1,14 @@ +{{ if $.Site.Params.social }} + {{ $len := (len $.Site.Params.social) }} + {{ if gt $len 0 }} +
+ {{ range $network, $link := $.Site.Params.social }} + {{ if $link }} + + + + {{ end }} + {{ end }} +
+ {{ end}} +{{ end }} diff --git a/static/css/base.css b/static/css/base.css index 20d0cc7..c1bb6ba 100644 --- a/static/css/base.css +++ b/static/css/base.css @@ -257,3 +257,18 @@ body { .section:last-of-type { margin-bottom: 3em; } + +/******************* Social *******************/ +#social { + text-align: center; + width: 60%; + max-width: var(--max-width); + margin: auto; + margin-top: 5em; + margin-bottom: 1em; +} +#social .social-icon { + max-width: 2em; + height: 2em; + margin: 0 1em; +} diff --git a/static/svg/500px.svg b/static/svg/500px.svg new file mode 100644 index 0000000..9c7254a --- /dev/null +++ b/static/svg/500px.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/codepen.svg b/static/svg/codepen.svg new file mode 100644 index 0000000..8cf21f3 --- /dev/null +++ b/static/svg/codepen.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/facebook.svg b/static/svg/facebook.svg new file mode 100644 index 0000000..8e8d737 --- /dev/null +++ b/static/svg/facebook.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/flickr.svg b/static/svg/flickr.svg new file mode 100644 index 0000000..3091426 --- /dev/null +++ b/static/svg/flickr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/github.svg b/static/svg/github.svg new file mode 100644 index 0000000..df681cf --- /dev/null +++ b/static/svg/github.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/gitlab.svg b/static/svg/gitlab.svg new file mode 100644 index 0000000..850f2f9 --- /dev/null +++ b/static/svg/gitlab.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/instagram.svg b/static/svg/instagram.svg new file mode 100644 index 0000000..50a1db9 --- /dev/null +++ b/static/svg/instagram.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/linkedin.svg b/static/svg/linkedin.svg new file mode 100644 index 0000000..c4d2efc --- /dev/null +++ b/static/svg/linkedin.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/mastodon.svg b/static/svg/mastodon.svg new file mode 100644 index 0000000..f113fbf --- /dev/null +++ b/static/svg/mastodon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/peertube.svg b/static/svg/peertube.svg new file mode 100644 index 0000000..5fcf116 --- /dev/null +++ b/static/svg/peertube.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/pinterest.svg b/static/svg/pinterest.svg new file mode 100644 index 0000000..e77f87b --- /dev/null +++ b/static/svg/pinterest.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/pixelfed.svg b/static/svg/pixelfed.svg new file mode 100644 index 0000000..7c6931e --- /dev/null +++ b/static/svg/pixelfed.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/tumblr.svg b/static/svg/tumblr.svg new file mode 100644 index 0000000..bf6d74f --- /dev/null +++ b/static/svg/tumblr.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/twitter.svg b/static/svg/twitter.svg new file mode 100644 index 0000000..66a8b0e --- /dev/null +++ b/static/svg/twitter.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/svg/youtube.svg b/static/svg/youtube.svg new file mode 100644 index 0000000..cbb1c2b --- /dev/null +++ b/static/svg/youtube.svg @@ -0,0 +1 @@ + \ No newline at end of file