mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
feat: can't remember what I did fuck it w/e
This commit is contained in:
parent
5ff83e3585
commit
81b3c4b106
3 changed files with 91 additions and 69 deletions
|
@ -76,6 +76,10 @@ view { toContentMsg, model, content } =
|
||||||
{ title = content.title
|
{ title = content.title
|
||||||
, attributes = [ F.family [ spartanFont ] ]
|
, attributes = [ F.family [ spartanFont ] ]
|
||||||
, element =
|
, element =
|
||||||
|
let
|
||||||
|
localhostUrl =
|
||||||
|
"http://localhost:1234/"
|
||||||
|
in
|
||||||
column
|
column
|
||||||
[ width fill
|
[ width fill
|
||||||
, height fill
|
, height fill
|
||||||
|
@ -91,15 +95,15 @@ view { toContentMsg, model, content } =
|
||||||
, F.color colourTheme.nonHighlightedText
|
, F.color colourTheme.nonHighlightedText
|
||||||
]
|
]
|
||||||
[ image [ spacing 30, width <| px 80 ] { src = "navbar/nutrivorelogo.png", description = "" }
|
[ image [ spacing 30, width <| px 80 ] { src = "navbar/nutrivorelogo.png", description = "" }
|
||||||
, link nonHighlightedTitleFormat { url = "", label = transitionNonHighlightedLinkHover <| text "THE NUTRIVORE" }
|
, link nonHighlightedTitleFormat { url = localhostUrl ++ pageNames.pageHome, label = transitionNonHighlightedLinkHover <| text "THE NUTRIVORE" }
|
||||||
, link navBarLinkFormat { url = "", label = transitionNonHighlightedLinkHover <| text "PLATFORMS" }
|
, link navBarLinkFormat { url = localhostUrl ++ "platforms", label = transitionNonHighlightedLinkHover <| text "PLATFORMS" }
|
||||||
, link navBarLinkFormat { url = "", label = transitionNonHighlightedLinkHover <| text "SERVICES" }
|
, link navBarLinkFormat { url = localhostUrl ++ "services", label = transitionNonHighlightedLinkHover <| text "SERVICES" }
|
||||||
, link navBarLinkFormat { url = "", label = transitionNonHighlightedLinkHover <| text "DEBATE" }
|
, link navBarLinkFormat { url = localhostUrl ++ "cebate", label = transitionNonHighlightedLinkHover <| text "DEBATE" }
|
||||||
, link navBarLinkFormat { url = "", label = transitionNonHighlightedLinkHover <| text "BLOG" }
|
, link navBarLinkFormat { url = localhostUrl ++ "blog", label = transitionNonHighlightedLinkHover <| text "BLOG" }
|
||||||
, link navBarLinkFormat { url = "", label = transitionNonHighlightedLinkHover <| text "NUTRI-DEX" }
|
, link navBarLinkFormat { url = localhostUrl ++ "nutridex", label = transitionNonHighlightedLinkHover <| text "NUTRI-DEX" }
|
||||||
, link navBarLinkFormat { url = "", label = transitionNonHighlightedLinkHover <| text "SUPPORT" }
|
, link navBarLinkFormat { url = localhostUrl ++ "support", label = transitionNonHighlightedLinkHover <| text "SUPPORT" }
|
||||||
, link navBarLinkFormat { url = "", label = transitionNonHighlightedLinkHover <| text "INTERVIEWS" }
|
, link navBarLinkFormat { url = localhostUrl ++ "interviews", label = transitionNonHighlightedLinkHover <| text "INTERVIEWS" }
|
||||||
, link navBarLinkFormat { url = "", label = transitionNonHighlightedLinkHover <| text "CONTACT" }
|
, link navBarLinkFormat { url = localhostUrl ++ "contact", label = transitionNonHighlightedLinkHover <| text "CONTACT" }
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
, content.element
|
, content.element
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module Pages.Dodgers exposing (Model, Msg, page)
|
module Pages.Dodgers exposing (Model, Msg, page)
|
||||||
|
|
||||||
import Config.Identity as ID exposing (..)
|
import Config.Identity exposing (dodgersName)
|
||||||
import Config.Theme as T exposing (..)
|
import Config.Theme as T exposing (..)
|
||||||
import Effect exposing (Effect)
|
import Effect exposing (Effect)
|
||||||
import Element exposing (..)
|
import Element exposing (..)
|
||||||
|
@ -158,7 +158,7 @@ makeRow makeRowInput =
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
, row paragraphBoldFormat [ text "Dodges:" ]
|
, row paragraphBoldFormat [ text "Dodges:" ]
|
||||||
, column [spacing 8] dodgeRows
|
, column [ spacing 8 ] dodgeRows
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -177,6 +177,7 @@ type alias PropType =
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
dodgers : List (Element msg)
|
||||||
dodgers =
|
dodgers =
|
||||||
let
|
let
|
||||||
dodgeType : DodgeType
|
dodgeType : DodgeType
|
||||||
|
|
|
@ -101,18 +101,23 @@ type alias MakeRowInput msg =
|
||||||
, platformsTitle : String
|
, platformsTitle : String
|
||||||
, platformsParagraph1 : List (Element msg)
|
, platformsParagraph1 : List (Element msg)
|
||||||
, platformsParagraph2 : List (Element msg)
|
, platformsParagraph2 : List (Element msg)
|
||||||
, platformsRecommendedClientLink1 : String
|
, platformsRecommendedClients : List ClientEntry
|
||||||
, platformsRecommendedClientLabel1 : String
|
}
|
||||||
, platformsRecommendedClientText1 : String
|
|
||||||
, platformsRecommendedClientLink2 : String
|
|
||||||
, platformsRecommendedClientLabel2 : String
|
type alias ClientEntry =
|
||||||
, platformsRecommendedClientText2 : String
|
{ clientLink : String
|
||||||
, platformsRecommendedClientLink3 : String
|
, clientLabel : String
|
||||||
, platformsRecommendedClientLabel3 : String
|
, clientText : String
|
||||||
, platformsRecommendedClientText3 : String
|
}
|
||||||
, platformsRecommendedClientLink4 : String
|
|
||||||
, platformsRecommendedClientLabel4 : String
|
|
||||||
, platformsRecommendedClientText4 : String
|
type alias ClientType =
|
||||||
|
{ android : String
|
||||||
|
, ios : String
|
||||||
|
, desktop : String
|
||||||
|
, multiPlatform : String
|
||||||
|
, browser : String
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -128,6 +133,24 @@ makeRow makeRowInput =
|
||||||
[ width <| px 150
|
[ width <| px 150
|
||||||
, alignTop
|
, alignTop
|
||||||
]
|
]
|
||||||
|
|
||||||
|
clientRows : List (Element msg)
|
||||||
|
clientRows =
|
||||||
|
if List.isEmpty makeRowInput.platformsRecommendedClients then
|
||||||
|
[ text "No recommended clients available. Please use your browser." ]
|
||||||
|
|
||||||
|
else
|
||||||
|
List.map
|
||||||
|
(\client ->
|
||||||
|
row []
|
||||||
|
[ paragraphLinkFormat
|
||||||
|
{ url = client.clientLink
|
||||||
|
, label = transitionHighlightedLinkHover <| text client.clientLabel
|
||||||
|
}
|
||||||
|
, text client.clientText
|
||||||
|
]
|
||||||
|
)
|
||||||
|
makeRowInput.platformsRecommendedClients
|
||||||
in
|
in
|
||||||
row [ imageSpacer ]
|
row [ imageSpacer ]
|
||||||
[ image platformImageFormat
|
[ image platformImageFormat
|
||||||
|
@ -142,22 +165,23 @@ makeRow makeRowInput =
|
||||||
, paragraph paragraphFormat makeRowInput.platformsParagraph1
|
, paragraph paragraphFormat makeRowInput.platformsParagraph1
|
||||||
, paragraph paragraphFormat makeRowInput.platformsParagraph2
|
, paragraph paragraphFormat makeRowInput.platformsParagraph2
|
||||||
, paragraph paragraphFormat
|
, paragraph paragraphFormat
|
||||||
[ recommendedClients
|
(recommendedClients :: clientRows)
|
||||||
, paragraphLinkFormat { url = makeRowInput.platformsRecommendedClientLink1, label = transitionHighlightedLinkHover <| text makeRowInput.platformsRecommendedClientLabel1 }
|
|
||||||
, text makeRowInput.platformsRecommendedClientText1
|
|
||||||
, paragraphLinkFormat { url = makeRowInput.platformsRecommendedClientLink2, label = transitionHighlightedLinkHover <| text makeRowInput.platformsRecommendedClientLabel2 }
|
|
||||||
, text makeRowInput.platformsRecommendedClientText2
|
|
||||||
, paragraphLinkFormat { url = makeRowInput.platformsRecommendedClientLink3, label = transitionHighlightedLinkHover <| text makeRowInput.platformsRecommendedClientLabel3 }
|
|
||||||
, text makeRowInput.platformsRecommendedClientText3
|
|
||||||
, paragraphLinkFormat { url = makeRowInput.platformsRecommendedClientLink4, label = transitionHighlightedLinkHover <| text makeRowInput.platformsRecommendedClientLabel4 }
|
|
||||||
, text makeRowInput.platformsRecommendedClientText4
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
platforms : List (Element msg)
|
platforms : List (Element msg)
|
||||||
platforms =
|
platforms =
|
||||||
|
let
|
||||||
|
clientType : ClientType
|
||||||
|
clientType =
|
||||||
|
{ android = " (android) "
|
||||||
|
, ios = " (iOS)"
|
||||||
|
, desktop = " (desktop) "
|
||||||
|
, multiPlatform = " (multi-platform)"
|
||||||
|
, browser = " (browser only)"
|
||||||
|
}
|
||||||
|
in
|
||||||
List.map makeRow
|
List.map makeRow
|
||||||
[ { logoImage = "platforms/mastodon.png"
|
[ { logoImage = "platforms/mastodon.png"
|
||||||
, logoDescription = "mastodon logo"
|
, logoDescription = "mastodon logo"
|
||||||
|
@ -171,18 +195,24 @@ platforms =
|
||||||
, paragraphLinkFormat { url = "https://instances.social/", label = text "official index" }
|
, paragraphLinkFormat { url = "https://instances.social/", label = text "official index" }
|
||||||
, text "), follow me, and turn on notifications."
|
, text "), follow me, and turn on notifications."
|
||||||
]
|
]
|
||||||
, platformsRecommendedClientLink1 = "https://github.com/LucasGGamerM/moshidon"
|
, platformsRecommendedClients =
|
||||||
, platformsRecommendedClientLabel1 = "Moshidon"
|
[ { clientLink = "https://github.com/LucasGGamerM/moshidon"
|
||||||
, platformsRecommendedClientText1 = " (android) "
|
, clientLabel = "Moshidon"
|
||||||
, platformsRecommendedClientLink2 = "https://github.com/mastodon/mastodon-android"
|
, clientText = clientType.android
|
||||||
, platformsRecommendedClientLabel2 = "Official"
|
}
|
||||||
, platformsRecommendedClientText2 = " (android) "
|
, { clientLink = "https://github.com/mastodon/mastodon-android"
|
||||||
, platformsRecommendedClientLink3 = "https://github.com/tuskyapp/Tusky"
|
, clientLabel = "Official"
|
||||||
, platformsRecommendedClientLabel3 = "Tusky"
|
, clientText = clientType.android
|
||||||
, platformsRecommendedClientText3 = " (android) "
|
}
|
||||||
, platformsRecommendedClientLink4 = "https://apps.apple.com/us/app/mastodon/id1571998974"
|
, { clientLink = "https://github.com/tuskyapp/Tusky"
|
||||||
, platformsRecommendedClientLabel4 = "Official"
|
, clientLabel = "Tusky"
|
||||||
, platformsRecommendedClientText4 = " (iOS)"
|
, clientText = clientType.android
|
||||||
|
}
|
||||||
|
, { clientLink = "https://apps.apple.com/us/app/mastodon/id1571998974"
|
||||||
|
, clientLabel = "Official"
|
||||||
|
, clientText = clientType.ios
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
, { logoImage = "platforms/peertube.png"
|
, { logoImage = "platforms/peertube.png"
|
||||||
, logoDescription = "peertube logo"
|
, logoDescription = "peertube logo"
|
||||||
|
@ -190,18 +220,7 @@ platforms =
|
||||||
, platformsTitle = "PEERTUBE"
|
, platformsTitle = "PEERTUBE"
|
||||||
, platformsParagraph1 = [ text "I'm transitioning my video content from YouTube to my self-hosted PeerTube instance, because I strongly believe in freedom of speech, copyleft, and digital autonomy. YouTube has proven unreliable due to both censorship and copyright strikes levied against my channel. This shift allows me to better control my content and avoid these silly pitfalls." ]
|
, platformsParagraph1 = [ text "I'm transitioning my video content from YouTube to my self-hosted PeerTube instance, because I strongly believe in freedom of speech, copyleft, and digital autonomy. YouTube has proven unreliable due to both censorship and copyright strikes levied against my channel. This shift allows me to better control my content and avoid these silly pitfalls." ]
|
||||||
, platformsParagraph2 = [ text "Full-length videos are now exclusively available on PeerTube, while YouTube will only host clips. By registering on PeerTube and subscribing to my channels, you'll have access to all content. Just be sure to enable email notifications to be alerted of new uploads. I believe that those who are truly fans of my work and want the best experience possible will see this as a positive change." ]
|
, platformsParagraph2 = [ text "Full-length videos are now exclusively available on PeerTube, while YouTube will only host clips. By registering on PeerTube and subscribing to my channels, you'll have access to all content. Just be sure to enable email notifications to be alerted of new uploads. I believe that those who are truly fans of my work and want the best experience possible will see this as a positive change." ]
|
||||||
, platformsRecommendedClientLink1 = ""
|
, platformsRecommendedClients = []
|
||||||
, platformsRecommendedClientLabel1 = ""
|
|
||||||
, platformsRecommendedClientText1 = "Unfortunately, I can't recommend any mobile clients for PeerTube at this time. They're all trash. Please use your browser, either on your mobile device or personal computer. Just be use to enable email notifications in your account settings."
|
|
||||||
, platformsRecommendedClientLink2 = ""
|
|
||||||
, platformsRecommendedClientLabel2 = ""
|
|
||||||
, platformsRecommendedClientText2 = ""
|
|
||||||
, platformsRecommendedClientLink3 = ""
|
|
||||||
, platformsRecommendedClientLabel3 = ""
|
|
||||||
, platformsRecommendedClientText3 = ""
|
|
||||||
, platformsRecommendedClientLink4 = ""
|
|
||||||
, platformsRecommendedClientLabel4 = ""
|
|
||||||
, platformsRecommendedClientText4 = ""
|
|
||||||
}
|
}
|
||||||
, { logoImage = "platforms/discord.png"
|
, { logoImage = "platforms/discord.png"
|
||||||
, logoDescription = "discord logo"
|
, logoDescription = "discord logo"
|
||||||
|
@ -209,17 +228,15 @@ platforms =
|
||||||
, platformsTitle = "DISCORD"
|
, platformsTitle = "DISCORD"
|
||||||
, platformsParagraph1 = [ text "The Nutrivore Discord server is an evidence-based community dedicated to debunking pseudoscience, especially in the fields of nutrition, health and fitness. Casual discourse is welcome, and includes topics such as cooking, gaming, technology, and more. Current members span many disciplines and include both students and professionals, all levels of interest and expertise are welcome." ]
|
, platformsParagraph1 = [ text "The Nutrivore Discord server is an evidence-based community dedicated to debunking pseudoscience, especially in the fields of nutrition, health and fitness. Casual discourse is welcome, and includes topics such as cooking, gaming, technology, and more. Current members span many disciplines and include both students and professionals, all levels of interest and expertise are welcome." ]
|
||||||
, platformsParagraph2 = [ text "The Discord server is not explicitly a debate server. However, we strongly encourage that disagreements be resolved using debate (preferably verbal), as long as it is conducted respectfully and in good faith. Though we also firmly believe that shaming sophistry and bad faith behaviour is a net good overall. The Discord server is planned to be replaced with a Matrix server in future." ]
|
, platformsParagraph2 = [ text "The Discord server is not explicitly a debate server. However, we strongly encourage that disagreements be resolved using debate (preferably verbal), as long as it is conducted respectfully and in good faith. Though we also firmly believe that shaming sophistry and bad faith behaviour is a net good overall. The Discord server is planned to be replaced with a Matrix server in future." ]
|
||||||
, platformsRecommendedClientLink1 = "https://github.com/Vendicated/Vencord"
|
, platformsRecommendedClients =
|
||||||
, platformsRecommendedClientLabel1 = "Vencord"
|
[ { clientLink = "https://github.com/Vendicated/Vencord"
|
||||||
, platformsRecommendedClientText1 = " (desktop) "
|
, clientLabel = "Vencord"
|
||||||
, platformsRecommendedClientLink2 = "https://discord.com/download"
|
, clientText = clientType.desktop
|
||||||
, platformsRecommendedClientLabel2 = "Official"
|
}
|
||||||
, platformsRecommendedClientText2 = " (multi-platform)"
|
, { clientLink = "https://discord.com/download"
|
||||||
, platformsRecommendedClientLink3 = ""
|
, clientLabel = "Official"
|
||||||
, platformsRecommendedClientLabel3 = ""
|
, clientText = clientType.multiPlatform
|
||||||
, platformsRecommendedClientText3 = ""
|
}
|
||||||
, platformsRecommendedClientLink4 = ""
|
]
|
||||||
, platformsRecommendedClientLabel4 = ""
|
|
||||||
, platformsRecommendedClientText4 = ""
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue