From 072d68ad5164a1a4a22215b055c93cc2dff58d00 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 19 Jan 2025 01:55:25 -0600 Subject: [PATCH 1/3] feat: added source link and changed footer icons --- frontend/src/Config/Style/Icons/Icons.elm | 15 +++++++++++++++ frontend/src/Layouts/Navbar.elm | 23 +++++++++++++---------- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/frontend/src/Config/Style/Icons/Icons.elm b/frontend/src/Config/Style/Icons/Icons.elm index a8fac05..e7b99c8 100755 --- a/frontend/src/Config/Style/Icons/Icons.elm +++ b/frontend/src/Config/Style/Icons/Icons.elm @@ -19,6 +19,7 @@ module Config.Style.Icons.Icons exposing , nutriDex , nutriDexLogo , services + , source , thumbsDown , thumbsUp , twitter @@ -577,6 +578,20 @@ video inner = ] } +source : SvgTypes.OuterPart msg -> Element msg +source inner = + HeSvg.buildSvg inner + { svgAttributes = + [ SvgAttr.viewBox "0 0 448 512" + , SvgAttr.fill "currentColor" + ] + , svg = + [ path + [ SvgAttr.d "M80 104a24 24 0 1 0 0-48 24 24 0 1 0 0 48zm80-24c0 32.8-19.7 61-48 73.3l0 87.8c18.8-10.9 40.7-17.1 64-17.1l96 0c35.3 0 64-28.7 64-64l0-6.7C307.7 141 288 112.8 288 80c0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3l0 6.7c0 70.7-57.3 128-128 128l-96 0c-35.3 0-64 28.7-64 64l0 6.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3l0-6.7 0-198.7C19.7 141 0 112.8 0 80C0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0a24 24 0 1 0 -48 0 24 24 0 1 0 48 0zM80 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z" + ] + [] + ] + } debate : SvgTypes.OuterPart msg -> Element msg debate inner = diff --git a/frontend/src/Layouts/Navbar.elm b/frontend/src/Layouts/Navbar.elm index 0ffa71d..309c062 100755 --- a/frontend/src/Layouts/Navbar.elm +++ b/frontend/src/Layouts/Navbar.elm @@ -27,6 +27,7 @@ import Config.Style.Icons.Icons , mastodon , nutriDex , services + , source , twitter , upRootLarge , upRootMedium @@ -541,6 +542,13 @@ items input = , name = String.toUpper "Video" , url = "https://video.uprootnutrition.com" } + , { icon = source + , isCurrent = False + , isNewTabLink = True + , isSubscriberOnly = False + , name = String.toUpper "Source" + , url = "https://source.uprootnutrition.com/upRootNutrition/website" + } , { icon = debate , isCurrent = input.route.path == Path.Debate , isNewTabLink = False @@ -764,19 +772,14 @@ footerItems input = , sharedModel = input.sharedModel } ) - [ { icon = gitlab - , isNewTabLink = True - , url = "https://gitlab.com/upRootNutrition/website" - } - , { icon = twitter + [ { icon = twitter , isNewTabLink = True , url = "https://x.com/upRootNutrition" } - - -- , { icon = mastodon - -- , isNewTabLink = True - -- , url = "https://social.uprootnutrition.com/@nick" - -- } + , { icon = mastodon + , isNewTabLink = True + , url = "https://social.uprootnutrition.com/@nick" + } , { icon = discord , isNewTabLink = True , url = "https://discord.gg/eeYQ2wJknS" From b85e77ec4ac741de043d339f813a04b66aca2971 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 19 Jan 2025 02:12:28 -0600 Subject: [PATCH 2/3] feat: added video link --- frontend/src/Layouts/Navbar.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Layouts/Navbar.elm b/frontend/src/Layouts/Navbar.elm index 309c062..1c97458 100755 --- a/frontend/src/Layouts/Navbar.elm +++ b/frontend/src/Layouts/Navbar.elm @@ -540,7 +540,7 @@ items input = , isNewTabLink = True , isSubscriberOnly = False , name = String.toUpper "Video" - , url = "https://video.uprootnutrition.com" + , url = "https://www.youtube.com/channel/UCy9yYcDx2XuVVgcWLJJDoxw" } , { icon = source , isCurrent = False From 496dbe238644cbbb819734c21f11b441cbb54896 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 19 Jan 2025 02:29:39 -0600 Subject: [PATCH 3/3] feat: added video link --- frontend/src/Layouts/Navbar.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Layouts/Navbar.elm b/frontend/src/Layouts/Navbar.elm index 1c97458..de3a1eb 100755 --- a/frontend/src/Layouts/Navbar.elm +++ b/frontend/src/Layouts/Navbar.elm @@ -540,7 +540,7 @@ items input = , isNewTabLink = True , isSubscriberOnly = False , name = String.toUpper "Video" - , url = "https://www.youtube.com/channel/UCy9yYcDx2XuVVgcWLJJDoxw" + , url = "https://www.youtube.com/@upRootNutrition" } , { icon = source , isCurrent = False