mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-15 12:05:12 -05:00
feat: so very close
This commit is contained in:
parent
f9b8f59df9
commit
c63ab0bfe7
11 changed files with 89 additions and 73 deletions
|
@ -164,11 +164,10 @@ numberedListItem colour index =
|
|||
text (String.fromInt index ++ ". ")
|
||||
|
||||
|
||||
proofTreeButton : String -> String -> Element msg
|
||||
proofTreeButton url item =
|
||||
argumentButton : String -> String -> Element msg
|
||||
argumentButton url item =
|
||||
newTabLink
|
||||
[ alignTop
|
||||
, alignRight
|
||||
, paddingXY 0 5
|
||||
]
|
||||
{ url = url
|
||||
|
|
|
@ -128,9 +128,6 @@ cardMaker device cardable contents =
|
|||
C.NutriDex _ ->
|
||||
none
|
||||
|
||||
C.Contact _ ->
|
||||
none
|
||||
|
||||
_ ->
|
||||
divider
|
||||
|
||||
|
@ -139,9 +136,6 @@ cardMaker device cardable contents =
|
|||
C.NutriDex _ ->
|
||||
none
|
||||
|
||||
C.Contact _ ->
|
||||
none
|
||||
|
||||
_ ->
|
||||
divider
|
||||
|
||||
|
@ -179,7 +173,22 @@ cardMaker device cardable contents =
|
|||
|
||||
_ ->
|
||||
none
|
||||
, row [ width fill, spacing 10 ]
|
||||
, row
|
||||
[ width fill
|
||||
, spacing 10
|
||||
, F.center
|
||||
, paddingXY 0
|
||||
(case ( device.class, device.orientation ) of
|
||||
( Phone, Portrait ) ->
|
||||
10
|
||||
|
||||
( Tablet, Portrait ) ->
|
||||
10
|
||||
|
||||
_ ->
|
||||
0
|
||||
)
|
||||
]
|
||||
[ case cardable of
|
||||
C.NutriDex _ ->
|
||||
case ( device.class, device.orientation ) of
|
||||
|
@ -192,17 +201,6 @@ cardMaker device cardable contents =
|
|||
_ ->
|
||||
paragraph [] [ text title ]
|
||||
|
||||
C.Contact _ ->
|
||||
case ( device.class, device.orientation ) of
|
||||
( Phone, Portrait ) ->
|
||||
none
|
||||
|
||||
( Tablet, Portrait ) ->
|
||||
none
|
||||
|
||||
_ ->
|
||||
paragraph [] [ text title ]
|
||||
|
||||
_ ->
|
||||
paragraph [] [ text title ]
|
||||
, el
|
||||
|
|
|
@ -110,5 +110,5 @@ contactHeader =
|
|||
"Contact"
|
||||
in
|
||||
{ headerTitle = String.toUpper name
|
||||
, headerBody = [ text "" ]
|
||||
, headerBody = [ text "If you wish to contact me, please carefully choose from the following options before reaching out, to make sure that your communication ends up in the right place." ]
|
||||
}
|
||||
|
|
|
@ -19,11 +19,11 @@ type alias Method =
|
|||
|
||||
contactInquiry : Contact
|
||||
contactInquiry =
|
||||
{ contactName = "General Inquiry"
|
||||
{ contactName = "General Inquiries"
|
||||
, contactImage = "email"
|
||||
, contactDescription = ""
|
||||
, contactDescription = "For any inquiries, including service purchases, general questions, guest appearances, webinars, public speaking, please reach out via email by clicking here. You may also submit Discord ban appeals here if you wish. To submit any criticism of the content on this site, follow the Criticism link below."
|
||||
, contactLink = Path.toString Path.Contact_Inquiry
|
||||
, isNewTabLink = True
|
||||
, isNewTabLink = False
|
||||
}
|
||||
|
||||
|
||||
|
@ -31,9 +31,9 @@ contactCriticism : Contact
|
|||
contactCriticism =
|
||||
{ contactName = "Criticism"
|
||||
, contactImage = "discord"
|
||||
, contactDescription = ""
|
||||
, contactDescription = "For criticism of my arguments, reasoning, blog articles, video content, or public statements, please follow this link and adhere to the instructions precisely. Before pursuing any criticism, consider that misuse of this option may result in an immediate Discord ban with no opportunity for appeal."
|
||||
, contactLink = Path.toString Path.Contact_Criticism
|
||||
, isNewTabLink = True
|
||||
, isNewTabLink = False
|
||||
}
|
||||
|
||||
|
||||
|
@ -43,5 +43,5 @@ contactMain =
|
|||
, contactImage = ""
|
||||
, contactDescription = ""
|
||||
, contactLink = ""
|
||||
, isNewTabLink = False
|
||||
, isNewTabLink = True
|
||||
}
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
module Config.Pages.Services.Records.ElmBuilds exposing (..)
|
||||
|
||||
import Config.Helpers.Cards.Inner.Helpers exposing (detailBodyLink)
|
||||
import Config.Helpers.Converters exposing (formatName)
|
||||
import Config.Pages.Services.Types exposing (..)
|
||||
import Config.Style.Colour.Helpers exposing (colourTheme)
|
||||
import Config.Style.Colour.Helpers exposing (ThemeColor(..), colourTheme)
|
||||
import Config.Style.Transitions exposing (hoverFontDarkOrange, transitionStyleMedium)
|
||||
import Element as E exposing (..)
|
||||
import Element.Font as F exposing (..)
|
||||
|
@ -41,8 +42,17 @@ servicesElmBuilds =
|
|||
, title10 = ""
|
||||
}
|
||||
, articleParagraph =
|
||||
{ paragraph1 = [ text "The site that you're currently viewing this on was written by me in the Elm programming language. In the process of programming this website, I realized that I could create reasonably high quality work with Elm, so I'm offering it as a service at a fee that reflects my skill level. ", text "If you're in the market for a new frontend for your website, please inquire at ", el [ F.bold, F.color colourTheme.textLightOrange ] <| text "nick@upRootNutrition.com", text "." ]
|
||||
, paragraph2 = [text "Below is an example of a function that I wrote for this site. This particular function renders all of the circular images on all of the site's information cards. Any time you see one of those images, this function is responsible for it."]
|
||||
{ paragraph1 =
|
||||
[ text "The site that you're currently viewing this on was written by me in the Elm programming language. In the process of programming this website, I realized that I could create reasonably high quality work with Elm, so I'm offering it as a service at a fee that reflects my skill level. "
|
||||
, text "If you're in the market for a new frontend for your website, please inquire at "
|
||||
, link
|
||||
[]
|
||||
{ url = "mailto:"
|
||||
, label = detailBodyLink TextLightOrange "nick@upRootNutrition.com"
|
||||
}
|
||||
, text "."
|
||||
]
|
||||
, paragraph2 = [ text "Below is an example of a function that I wrote for this site. This particular function renders all of the circular images on all of the site's information cards. Any time you see one of those images, this function is responsible for it." ]
|
||||
, paragraph3 =
|
||||
[ text "The source code for this website is viewable on "
|
||||
, newTabLink []
|
||||
|
|
|
@ -7,6 +7,8 @@ import Config.Style.Transitions exposing (hoverFontDarkOrange, transitionStyleMe
|
|||
import Element as E exposing (..)
|
||||
import Element.Font as F exposing (..)
|
||||
import Route.Path as Path
|
||||
import Config.Helpers.Cards.Inner.Helpers exposing (detailBodyLink)
|
||||
import Config.Style.Colour.Helpers exposing (ThemeColor(..))
|
||||
|
||||
|
||||
servicesNixBuilds : Service msg
|
||||
|
@ -41,7 +43,16 @@ servicesNixBuilds =
|
|||
, title10 = ""
|
||||
}
|
||||
, articleParagraph =
|
||||
{ paragraph1 = [ text "NixOS has become popular in my community, with many people choosing to explore it over Windows, MacOS, and other Linux distributions. Naturally, as a consequence of this, I receive numerous requests for help regarding the Nix programming language and NixOS system configuration. So, to fast-track newcomers and to make my life a little bit easier for both of us, I'm offering to build custom NixOS configurations for interested clients. ", text "If you're interested in having a custom Nix configuration, or having a pre-existing configuration refactored, please inquire at ", el [ F.bold, F.color colourTheme.textLightOrange ] <| text "nick@upRootNutrition.com", text "." ]
|
||||
{ paragraph1 =
|
||||
[ text "NixOS has become popular in my community, with many people choosing to explore it over Windows, MacOS, and other Linux distributions. Naturally, as a consequence of this, I receive numerous requests for help regarding the Nix programming language and NixOS system configuration. So, to fast-track newcomers and to make my life a little bit easier for both of us, I'm offering to build custom NixOS configurations for interested clients. "
|
||||
, text "If you're interested in having a custom Nix configuration, or having a pre-existing configuration refactored, please inquire at "
|
||||
, link
|
||||
[]
|
||||
{ url = "mailto:"
|
||||
, label = detailBodyLink TextLightOrange "nick@upRootNutrition.com"
|
||||
}
|
||||
, text "."
|
||||
]
|
||||
, paragraph2 = [ text "Below is an example of a nix flake that I wrote for the devshell that I used to manage and isolate the development environment for this site. All of the packages, pre-defined settings, and tooling used for this site are managed through this flake." ]
|
||||
, paragraph3 =
|
||||
[ text "The source code for this website's server is viewable on "
|
||||
|
|
33
frontend/src/Pages/Contact/Criticism.elm
Normal file → Executable file
33
frontend/src/Pages/Contact/Criticism.elm
Normal file → Executable file
|
@ -126,18 +126,9 @@ contactList device =
|
|||
)
|
||||
<|
|
||||
List.concat
|
||||
[ case ( device.class, device.orientation ) of
|
||||
( Phone, Portrait ) ->
|
||||
[ headerMaker (R.Contact contactHeader) ]
|
||||
|
||||
( Tablet, Portrait ) ->
|
||||
[ headerMaker (R.Contact contactHeader) ]
|
||||
|
||||
_ ->
|
||||
[ none ]
|
||||
, List.map
|
||||
[ List.map
|
||||
(\contact ->
|
||||
cardMaker device (C.Contact contact) (contentList device contact)
|
||||
cardMaker device (C.ContactPage contact) (contentList device contact)
|
||||
)
|
||||
[ contactCriticism ]
|
||||
]
|
||||
|
@ -206,7 +197,7 @@ instructionBody device =
|
|||
, detailBodyMaker TextLightGrey (text "You are only allowed to post one criticism at a time in the ")
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/channels/692563032546476062/1301247050796634182"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "🔎┃criticism")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "🔎┃criticism")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " channel. You may post an additional criticism only after the previous one has been addressed and resolved to my satisfaction. This policy aims to reduce spamming, rambling, and Gish galloping, and to encourage linear discourse.")
|
||||
]
|
||||
|
@ -225,7 +216,7 @@ instructionBody device =
|
|||
, detailBodyMaker TextLightGrey (text "If I find it necessary to access a text-based channel (for simple clarifying questions, for example), then either I or a moderator will open a new thread in the ")
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/channels/692563032546476062/1301247050796634182"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "🔎┃criticism")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "🔎┃criticism")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " channel. There we can then engage in a text-based discussion and/or ping other users if needed.")
|
||||
]
|
||||
|
@ -274,7 +265,7 @@ termsAndConditions device =
|
|||
[ detailBodyMaker TextLightGrey (text "You will register an account with ")
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/login"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "Discord")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "Discord")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " (if you haven't already).")
|
||||
]
|
||||
|
@ -285,7 +276,7 @@ termsAndConditions device =
|
|||
[ detailBodyMaker TextLightGrey (text "You will join the ")
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/invite/VzU8yCvYX8"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "upRootNutrition")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "upRootNutrition")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " Discord Server (if you haven't already).")
|
||||
]
|
||||
|
@ -302,7 +293,7 @@ termsAndConditions device =
|
|||
[ detailBodyMaker TextLightGrey (text "You will locate the ")
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/channels/692563032546476062/826225570219687956"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "💻┃general")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "💻┃general")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " channel in General category.")
|
||||
]
|
||||
|
@ -313,7 +304,7 @@ termsAndConditions device =
|
|||
[ detailBodyMaker TextLightGrey (text "You will post exactly this in the ")
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/channels/692563032546476062/826225570219687956"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "💻┃general")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "💻┃general")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " channel:")
|
||||
]
|
||||
|
@ -354,7 +345,7 @@ termsAndConditions device =
|
|||
[ detailBodyMaker TextLightGrey (text "You will locate the ")
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/channels/692563032546476062/1301247050796634182"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "🔎┃criticism")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "🔎┃criticism")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " channel in the General category.")
|
||||
]
|
||||
|
@ -366,7 +357,7 @@ termsAndConditions device =
|
|||
[ detailBodyMaker TextLightGrey (text "You will post your criticism in the ")
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/channels/692563032546476062/1301247050796634182"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "🔎┃criticism")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "🔎┃criticism")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " channel with this exact format:")
|
||||
]
|
||||
|
@ -437,9 +428,9 @@ termsAndConditions device =
|
|||
, [ row []
|
||||
[ detailFormat paragraph
|
||||
[ detailBodyMaker TextLightGrey (text "You will not post anything other than criticisms in the ")
|
||||
, newTabLink [ alignLeft ]
|
||||
, newTabLink []
|
||||
{ url = "https://discord.com/channels/692563032546476062/1301247050796634182"
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightGrey (text "🔎┃criticism")
|
||||
, label = el orangeFormat <| detailBodyMaker TextLightOrange (text "🔎┃criticism")
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text " channel.")
|
||||
]
|
||||
|
|
30
frontend/src/Pages/Contact/Inquiry.elm
Normal file → Executable file
30
frontend/src/Pages/Contact/Inquiry.elm
Normal file → Executable file
|
@ -1,7 +1,7 @@
|
|||
module Pages.Contact.Inquiry exposing (Model, Msg, page)
|
||||
|
||||
import Config.Data.Identity exposing (pageNames)
|
||||
import Config.Helpers.Cards.Inner.Helpers exposing (detailBodyMaker, detailFormat, numberedListItem)
|
||||
import Config.Helpers.Cards.Inner.Helpers exposing (detailBodyLink, detailBodyMaker, detailFormat, numberedListItem)
|
||||
import Config.Helpers.Cards.Outer.Helpers exposing (cardMaker)
|
||||
import Config.Helpers.Cards.Outer.Types as C
|
||||
import Config.Helpers.Format exposing (..)
|
||||
|
@ -126,18 +126,9 @@ contactList device =
|
|||
)
|
||||
<|
|
||||
List.concat
|
||||
[ case ( device.class, device.orientation ) of
|
||||
( Phone, Portrait ) ->
|
||||
[ headerMaker (R.Contact contactHeader) ]
|
||||
|
||||
( Tablet, Portrait ) ->
|
||||
[ headerMaker (R.Contact contactHeader) ]
|
||||
|
||||
_ ->
|
||||
[ none ]
|
||||
, List.map
|
||||
[ List.map
|
||||
(\contact ->
|
||||
cardMaker device (C.Contact contact) (contentList device contact)
|
||||
cardMaker device (C.ContactPage contact) (contentList device contact)
|
||||
)
|
||||
[ contactInquiry ]
|
||||
]
|
||||
|
@ -160,7 +151,18 @@ instructionBody device =
|
|||
}
|
||||
]
|
||||
[ detailFormat paragraph
|
||||
[ detailBodyMaker TextLightGrey (text "") ]
|
||||
[ detailBodyMaker TextLightGrey (text "For any inquiries related to services, debate invitations, or general questions regarding guest appearances, webinars, public speaking engagements, ghostwriting, or co-authorship opportunities, please feel free to contact me at ")
|
||||
, link
|
||||
[]
|
||||
{ url = "mailto:"
|
||||
, label = detailBodyLink TextLightOrange "nick@upRootNutrition.com"
|
||||
}
|
||||
, detailBodyMaker TextLightGrey (text ".")
|
||||
]
|
||||
, detailFormat paragraph
|
||||
[ detailBodyMaker TextLightGrey (text "") ]
|
||||
[ detailBodyMaker TextLightGrey (text "If you wish to submit a Discord ban appeal, you may do using the provided email address. Please include your user ID and a detailed statement detailing why you believe that you, or someone else, should be unbanned.") ]
|
||||
]
|
||||
|
||||
|
||||
|
||||
-- For any inquiries, including service purchases, general questions, guest appearances, webinars, public speaking, please reach out via email by clicking here. You may also submit Discord ban appeals here if you wish. To submit any criticism of the content on this site, follow the Criticism link below.
|
||||
|
|
|
@ -3,12 +3,12 @@ module Pages.Debate.Arguments exposing (Model, Msg, page)
|
|||
import Config.Data.Identity exposing (pageNames)
|
||||
import Config.Helpers.Cards.Inner.Helpers
|
||||
exposing
|
||||
( bodyFormat
|
||||
( argumentButton
|
||||
, bodyFormat
|
||||
, detailBodyMaker
|
||||
, detailFormat
|
||||
, detailSpacing
|
||||
, detailTitleMaker
|
||||
, proofTreeButton
|
||||
)
|
||||
import Config.Helpers.Cards.Outer.Helpers exposing (cardMaker)
|
||||
import Config.Helpers.Cards.Outer.Types as C
|
||||
|
@ -62,6 +62,7 @@ import Html.Attributes as H exposing (style, title, wrap)
|
|||
import Layouts
|
||||
import Page exposing (Page)
|
||||
import Route exposing (Route)
|
||||
import Route.Path as Path
|
||||
import Shared
|
||||
import View exposing (View)
|
||||
|
||||
|
@ -220,7 +221,11 @@ contentList device argument =
|
|||
]
|
||||
, tableMaker device argument
|
||||
, formalizationMaker device argument
|
||||
, proofTreeButton argument.proofLink "Proof Tree"
|
||||
, el [alignRight] <|
|
||||
row [ width fill, spacing 20 ]
|
||||
[ argumentButton (Path.toString Path.Contact_Criticism) "Reject Premise"
|
||||
, argumentButton argument.proofLink "Proof Tree"
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
|
@ -404,7 +409,7 @@ formalizationMaker device argument =
|
|||
0
|
||||
|
||||
_ ->
|
||||
0
|
||||
40
|
||||
)
|
||||
3
|
||||
]
|
||||
|
|
|
@ -147,7 +147,7 @@ elmBuilds =
|
|||
, articlePublished = ""
|
||||
, articleBody = """
|
||||
The site that you're currently viewing this on was written by me in the Elm programming language. In the process of programming this website, I realized that I could create reasonably high quality work with Elm, so I'm offering it as a service at a fee that reflects my skill level.
|
||||
If you're in the market for a new frontend for your website, please inquire at nick@upRootNutrition.com.
|
||||
If you're in the market for a new frontend for your website, please inquire at [nick@upRootNutrition.com](mailto:).
|
||||
|
||||
Below is an example of a helper function that I wrote for this site. This particular function extracts the first 80 words from all of my articles' markdown strings, and displays them as blurbs, followed by an ellipsis, in my article cards using my markdown parser.
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ nixBuilds =
|
|||
, articlePublished = ""
|
||||
, articleBody = """
|
||||
NixOS has become popular in my community, with many people choosing to explore it over Windows, MacOS, and other Linux distributions. Naturally, as a consequence of this, I receive numerous requests for help regarding the Nix programming language and NixOS system configuration. So, to fast-track newcomers and to make my life a little bit easier for both of us, I'm offering to build custom NixOS configurations for interested clients.
|
||||
If you're interested in having a custom Nix configuration, or having a pre-existing configuration refactored, please inquire at nick@upRootNutrition.com.
|
||||
If you're interested in having a custom Nix configuration, or having a pre-existing configuration refactored, please inquire at [nick@upRootNutrition.com](mailto:).
|
||||
|
||||
Below is an example of a nix flake that I wrote for the devshell that I used to manage and isolate the development environment for this site. All of the packages, pre-defined settings, and tooling used for this site are managed through this flake.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue