From 927d3cc160e18cfdc6caca4e27cba9419bb5220b Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:15:00 -0600 Subject: [PATCH] feat: Add Accounts bar --- assets/graphics/fa/candy-bar.svg | 1 + assets/graphics/fa/chevrons-down.svg | 1 + assets/graphics/fa/circle-quarters.svg | 1 + assets/graphics/fa/codeberg.svg | 3 ++ assets/graphics/fa/ebay.svg | 1 + assets/graphics/fa/google-scholar.svg | 1 + assets/graphics/fa/hacker-news.svg | 1 + assets/graphics/fa/lutris.svg | 65 ++++++++++++++++++++++++++ assets/graphics/fa/matrix.svg | 3 ++ assets/graphics/fa/p.svg | 1 + assets/graphics/fa/spotify.svg | 1 + assets/graphics/fa/zotero.svg | 3 ++ assets/styles/millironx.css | 11 +++++ layouts/partials/account.html | 54 +++++++++++++++++++++ layouts/people/list.html | 13 ++++++ 15 files changed, 160 insertions(+) create mode 100644 assets/graphics/fa/candy-bar.svg create mode 100644 assets/graphics/fa/chevrons-down.svg create mode 100644 assets/graphics/fa/circle-quarters.svg create mode 100644 assets/graphics/fa/codeberg.svg create mode 100644 assets/graphics/fa/ebay.svg create mode 100644 assets/graphics/fa/google-scholar.svg create mode 100644 assets/graphics/fa/hacker-news.svg create mode 100644 assets/graphics/fa/lutris.svg create mode 100644 assets/graphics/fa/matrix.svg create mode 100644 assets/graphics/fa/p.svg create mode 100644 assets/graphics/fa/spotify.svg create mode 100644 assets/graphics/fa/zotero.svg create mode 100644 layouts/partials/account.html create mode 100644 layouts/people/list.html diff --git a/assets/graphics/fa/candy-bar.svg b/assets/graphics/fa/candy-bar.svg new file mode 100644 index 0000000..3c0bdfa --- /dev/null +++ b/assets/graphics/fa/candy-bar.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/fa/chevrons-down.svg b/assets/graphics/fa/chevrons-down.svg new file mode 100644 index 0000000..0fab552 --- /dev/null +++ b/assets/graphics/fa/chevrons-down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/fa/circle-quarters.svg b/assets/graphics/fa/circle-quarters.svg new file mode 100644 index 0000000..31f53d2 --- /dev/null +++ b/assets/graphics/fa/circle-quarters.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/fa/codeberg.svg b/assets/graphics/fa/codeberg.svg new file mode 100644 index 0000000..d5fdd1a --- /dev/null +++ b/assets/graphics/fa/codeberg.svg @@ -0,0 +1,3 @@ + diff --git a/assets/graphics/fa/ebay.svg b/assets/graphics/fa/ebay.svg new file mode 100644 index 0000000..cc19ef6 --- /dev/null +++ b/assets/graphics/fa/ebay.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/fa/google-scholar.svg b/assets/graphics/fa/google-scholar.svg new file mode 100644 index 0000000..e2b6347 --- /dev/null +++ b/assets/graphics/fa/google-scholar.svg @@ -0,0 +1 @@ + diff --git a/assets/graphics/fa/hacker-news.svg b/assets/graphics/fa/hacker-news.svg new file mode 100644 index 0000000..1d402c1 --- /dev/null +++ b/assets/graphics/fa/hacker-news.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/fa/lutris.svg b/assets/graphics/fa/lutris.svg new file mode 100644 index 0000000..6dd84e8 --- /dev/null +++ b/assets/graphics/fa/lutris.svg @@ -0,0 +1,65 @@ + + diff --git a/assets/graphics/fa/matrix.svg b/assets/graphics/fa/matrix.svg new file mode 100644 index 0000000..a178912 --- /dev/null +++ b/assets/graphics/fa/matrix.svg @@ -0,0 +1,3 @@ + diff --git a/assets/graphics/fa/p.svg b/assets/graphics/fa/p.svg new file mode 100644 index 0000000..8082e1d --- /dev/null +++ b/assets/graphics/fa/p.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/fa/spotify.svg b/assets/graphics/fa/spotify.svg new file mode 100644 index 0000000..cb99987 --- /dev/null +++ b/assets/graphics/fa/spotify.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/assets/graphics/fa/zotero.svg b/assets/graphics/fa/zotero.svg new file mode 100644 index 0000000..2948c62 --- /dev/null +++ b/assets/graphics/fa/zotero.svg @@ -0,0 +1,3 @@ + diff --git a/assets/styles/millironx.css b/assets/styles/millironx.css index d126bf0..aaf285a 100644 --- a/assets/styles/millironx.css +++ b/assets/styles/millironx.css @@ -287,6 +287,17 @@ textarea:invalid { fill: currentColor; } +.account-list { + display: flex; + justify-content: space-evenly; +} + +.account-list a { + font-size: xx-large; + text-decoration: none; + color: inherit; +} + /* Helper classes */ diff --git a/layouts/partials/account.html b/layouts/partials/account.html new file mode 100644 index 0000000..10f2309 --- /dev/null +++ b/layouts/partials/account.html @@ -0,0 +1,54 @@ +{{ $icons := dict + "chocolatey" "candy-bar" + "codeberg" "codeberg" + "ebay" "ebay" + "epic" "chevrons-down" + "google-scholar" "google-scholar" + "github" "github" + "gitlab" "gitlab" + "hacker-news" "hacker-news" + "internet-archive" "university" + "lutris" "lutris" + "matrix" "matrix" + "orcid" "orcid" + "pandora" "p" + "quay" "circle-quarters" + "spotify" "spotify" + "steam" "steam" + "vimeo" "vimeo" + "zotero" "zotero" +}} + +{{ $urlBases := dict + "chocolatey" "https://community.chocolatey.org/profiles/" + "codeberg" "https://codeberg.org/" + "ebay" "https://www.ebay.com/usr/" + "epid" "#" + "google-scholar" "https://scholar.google.com/citations?user=" + "github" "https://github.com/" + "gitlab" "https://gitlab.com/" + "hacker-news" "https://news.ycombinator.com/user?id=" + "internet-archive" "https://archive.org/details/@" + "lutris" "https://lutris.net/user/" + "matrix" "https://matrix.to/#/" + "orcid" "https://orcid.org/" + "pandora" "https://www.pandora.com/profile/" + "quay" "https://quay.io/user/" + "spotify" "https://open.spotify.com/user/" + "steam" "https://steamcommunity.com/id/" + "vimeo" "https://vimeo.com/" + "zotero" "https://www.zotero.org/" +}} + +{{ $icon := index $icons .account }} +{{ $urlBase := index $urlBases .account }} + +{{ $userURL := print $urlBase .username }} + + +{{ partial "fa.html" $icon }} diff --git a/layouts/people/list.html b/layouts/people/list.html new file mode 100644 index 0000000..6ef197f --- /dev/null +++ b/layouts/people/list.html @@ -0,0 +1,13 @@ +{{ define "main" }} +