feat: so very close

This commit is contained in:
Nick 2024-12-28 18:42:47 -06:00
parent 131dbfe8a3
commit f9b8f59df9
30 changed files with 1500 additions and 1272 deletions

View file

@ -1,13 +1,23 @@
module Pages.Contact exposing (Model, Msg, page)
import Config.Data.Identity exposing (pageNames)
import Config.Helpers.Cards.Inner.Helpers exposing (numberedListItem)
import Config.Helpers.Cards.Inner.Helpers
exposing
( detailBodyMaker
, detailFormat
, numberedListItem
)
import Config.Helpers.Cards.Outer.Helpers exposing (cardMaker)
import Config.Helpers.Cards.Outer.Types as C
import Config.Helpers.Format exposing (..)
import Config.Helpers.Headers.Helpers exposing (..)
import Config.Helpers.Headers.Records exposing (contactHeader, nutriDexHeader)
import Config.Helpers.Headers.Records
exposing
( contactHeader
, nutriDexHeader
)
import Config.Helpers.Headers.Types as R exposing (..)
import Config.Helpers.ImageFolders as M exposing (..)
import Config.Helpers.Response
exposing
( pageList
@ -23,6 +33,7 @@ import Config.Helpers.ToolTip exposing (..)
import Config.Helpers.Viewport exposing (resetViewport)
import Config.Pages.Contact.Types exposing (..)
import Config.Style.Colour.Helpers exposing (ThemeColor(..), colourTheme)
import Config.Style.Images exposing (imageSquareMaker)
import Config.Style.Transitions
exposing
( hoverFontDarkOrange
@ -127,295 +138,51 @@ contactList device =
)
<|
List.concat
[ case ( device.class, device.orientation ) of
( Phone, Portrait ) ->
[ headerMaker (R.Contact contactHeader) ]
( Tablet, Portrait ) ->
[ headerMaker (R.Contact contactHeader) ]
_ ->
[ none ]
[ [ headerMaker (R.Debate contactHeader) ]
, List.map
(\contact ->
cardMaker device (C.Contact contact) (contentList device contact)
)
[ contactTitle ]
[ contactInquiry
, contactCriticism
]
]
contentList : Device -> Contact -> List (Element msg)
contentList device contact =
[ instructionBody device ]
[ descriptionMaker device contact ]
instructionBody : Device -> Element msg
instructionBody device =
column
[ spacing 10
, paddingEach
{ top = 10
, bottom = 0
, left = 0
, right = 0
}
]
[ chunkMaker
[ text "The following terms may seem unreasonable to some, but after years on a large platform, I've learned the importance of filtering the criticisms I receive. Most feedback I receive is just vague gesturing and lacks substance, making some sort of quality filter essential. Thank you for your patience and understanding." ]
, chunkMaker
[ text "Please keep in mind that any failure to comply with the following terms and conditions will forfeit your access to my time and attention. I ask that you respect my time and read these terms carefully. You are the one requesting an audience with me, and my time is mine to donate as I see fit. If you wish to submit your criticisms, you must do so on my terms, following the rules and conditions that streamline the process for me." ]
, column
[ centerX
, width fill
]
[ divider
, titleMaker (String.toUpper "Terms and Conditions")
]
, column [ spacing 10 ] <|
List.indexedMap
(\index term ->
row
[ spacing 10
, width fill
]
[ column
[ width <| px 15
, alignTop
]
[ numberedListItem TextLightGrey (index + 1) ]
, column
[ spacing 10
, width fill
, alignRight
]
[ paragraph
[ width fill
, paragraphFontSize
, F.alignLeft
]
term
]
]
)
(termsAndConditions device)
, column [ centerX, width fill ]
[ divider
, titleMaker (String.toUpper "Additional Clarifications")
]
, chunkMaker
[ text " "
, 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 <| text "🔎criticism"
}
, 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."
]
, chunkMaker
[ text " ", text "You may or may not be asked to voice chat about your criticism. While your willingness to engage in voice chat is a necessary condition for submitting your criticism, it does not guarantee that a voice chat will be requested. If your initial criticism is clear and I agree with it, then no voice chat will be required." ]
, chunkMaker
[ text " ", text "You may or may not be asked to have your criticism formalized. While your willingness to have your criticism formalized is a necessary condition for submitting your criticism, it does not guarantee that a formalization will be requested. If your initial criticism is clear and I agree with it, then no formalization will be required." ]
, chunkMaker
[ text " "
, 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 <| text "🔎criticism"
}
, text " channel. There we can then engage in a text-based discussion and/or ping other users if needed."
]
, chunkMaker
[ text " ", text "I will only request that your criticism be formalized if I do not understand it and we have exhausted all other reasonable means of clarification. If formalization is requested, you will not need to do it yourself, as I recognize that not everyone understands formal logic. If formalization is requested and I am unavailable to assist you, you may ping the @Logic role, and another user may help you." ]
]
darkFormat : Attr decorative msg
darkFormat =
F.color colourTheme.textDarkGrey
orangeFormat : List (Attr () msg)
orangeFormat =
[ F.color colourTheme.textLightOrange
, hoverFontDarkOrange
, transitionStyleFast
]
rounding : Attribute msg
rounding =
D.rounded 10
termsAndConditions : Device -> List (List (Element msg))
termsAndConditions device =
descriptionMaker : Device -> Contact -> Element msg
descriptionMaker device contact =
let
backGroundCase : Attr decorative msg
backGroundCase =
case ( device.class, device.orientation ) of
( Phone, Portrait ) ->
B.color colourTheme.backgroundDarkGrey
( Tablet, Portrait ) ->
B.color colourTheme.backgroundDarkGrey
_ ->
B.color colourTheme.backgroundLightGrey
in
[ [ row []
[ paragraph [ alignLeft ]
[ text "You will register an account with "
, newTabLink []
{ url = "https://discord.com/login"
, label = el orangeFormat <| text "Discord"
}
, text " (if you haven't already)."
]
]
]
, [ row [ alignLeft ]
[ text "You will join the "
, newTabLink []
{ url = "https://discord.com/invite/VzU8yCvYX8"
, label = el orangeFormat <| text "upRootNutrition"
}
, text " Discord Server (if you haven't already)."
]
]
, [ row [ alignLeft ]
[ text "You will click the \"😃\" emoji to enter the server (if you haven't already)."
]
]
, [ paragraph [ alignLeft ]
[ text "You will locate the "
, newTabLink []
{ url = "https://discord.com/channels/692563032546476062/826225570219687956"
, label = el orangeFormat <| text "💻general"
}
, text " channel in General category."
]
]
, [ row [ F.alignLeft, alignLeft ]
[ paragraph [ alignLeft ]
[ text "You will post exactly this in the "
, newTabLink []
{ url = "https://discord.com/channels/692563032546476062/826225570219687956"
, label = el orangeFormat <| text "💻general"
}
, text " channel:"
]
, column
[ paddingEach
{ top = 10
, bottom = 10
image : String -> Element msg
image size =
el
[ alignLeft
, paddingEach
{ top = 0
, right = 10
, bottom = 0
, left = 0
, right = 0
}
, alignLeft
]
[ paragraph
[ paddingEach
{ top = 15
, bottom = 15
, left = 20
, right = 20
}
, backGroundCase
, rounding
, width fill
, spacing 8
]
[ text "\"@Moderators I have a criticism for Nick.\""
]
]
<|
imageSquareMaker device (imagePathMaker M.Contact contact.contactImage) True size
in
detailFormat row
[ case ( device.class, device.orientation ) of
( Phone, Portrait ) ->
none
( Tablet, Portrait ) ->
none
_ ->
image "Fatty"
, detailFormat column
[ detailBodyMaker TextLightGrey
(text contact.contactDescription)
]
]
, [ el [ alignLeft ] <| text "You will then receive the @Critic role." ]
, [ paragraph [ alignLeft ]
[ text "You will locate the "
, newTabLink []
{ url = "https://discord.com/channels/692563032546476062/1301247050796634182"
, label = el orangeFormat <| text "🔎criticism"
}
, text " channel in the General category."
]
]
, [ paragraph [ alignLeft ]
[ paragraph [ F.alignLeft ]
[ text "You will post your criticism in the "
, newTabLink []
{ url = "https://discord.com/channels/692563032546476062/1301247050796634182"
, label = el orangeFormat <| text "🔎criticism"
}
, text " channel with this exact format:"
]
]
, column
[ paddingEach
{ top = 10
, bottom = 10
, left = 0
, right = 0
}
, alignLeft
]
[ column
[ paddingEach
{ top = 15
, bottom = 15
, left = 20
, right = 20
}
, backGroundCase
, rounding
, width fill
, spacing 8
]
[ text "\"Hello, <@191027366640877568>. I have a criticism for you."
, row [ alignLeft ]
[ paragraph []
[ text "Proposition: "
, el [ darkFormat ] <| text "specify the exact proposition you are addressing."
]
]
, row [ alignLeft ]
[ paragraph []
[ text "Link: "
, el [ darkFormat ] <| text "provide a url to the claim, with a timestamp if applicable."
]
]
, row [ alignLeft ]
[ paragraph []
[ text "Reason for Error: "
, el [ darkFormat ] <| text "explain exactly why you believe this claim is in error."
]
]
, row [ alignLeft ]
[ paragraph []
[ text "Suggested Correction (if any): "
, el [ darkFormat ] <| text "provide the corrected information or perspective."
]
]
, row [ alignLeft ]
[ paragraph []
[ text "Additional Comments: "
, el [ darkFormat ] <| text "any other relevant thoughts or context."
, text "\""
]
]
]
]
]
, [ el [ alignLeft ] <| text "You will not post additional criticisms until the last one has been resolved." ]
, [ paragraph [ alignLeft ]
[ text "You will not post anything other than criticisms in the "
, newTabLink [ alignLeft ]
{ url = "https://discord.com/channels/692563032546476062/1301247050796634182"
, label = el orangeFormat <| text "🔎criticism"
}
, text " channel."
]
]
, [ el [ alignLeft ] <| text "You must be willing to converse over voice chat." ]
, [ el [ alignLeft ] <| text "You must be willing to have your criticism formalized." ]
]
]