mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-08-13 22:04:38 -05:00
feat: v1 close
This commit is contained in:
parent
f9af0e1941
commit
d55f729540
40 changed files with 561 additions and 496 deletions
|
@ -11,8 +11,8 @@ import Config.Data.Identity
|
|||
exposing
|
||||
( pageNames
|
||||
)
|
||||
import Config.Helpers.Cardables.Helpers exposing (cardMaker)
|
||||
import Config.Helpers.Cardables.Types as C
|
||||
import Config.Helpers.Cards.Helpers exposing (cardMaker)
|
||||
import Config.Helpers.Cards.Types as C
|
||||
import Config.Helpers.Converters exposing (formatName)
|
||||
import Config.Helpers.Format
|
||||
exposing
|
||||
|
@ -20,8 +20,9 @@ import Config.Helpers.Format
|
|||
, paragraphFontSize
|
||||
, paragraphSpacing
|
||||
)
|
||||
import Config.Helpers.Headers.Header exposing (..)
|
||||
import Config.Helpers.Headers.Types exposing (Header)
|
||||
import Config.Helpers.Headers.Helpers exposing (..)
|
||||
import Config.Helpers.Headers.Records exposing (debateHeader)
|
||||
import Config.Helpers.Headers.Types as R exposing (..)
|
||||
import Config.Helpers.Response
|
||||
exposing
|
||||
( pageList
|
||||
|
@ -142,12 +143,8 @@ debateList device =
|
|||
)
|
||||
<|
|
||||
List.concat
|
||||
[ -- List.map (headerMaker device)
|
||||
-- [
|
||||
-- servicesHeader
|
||||
-- ]
|
||||
-- ,
|
||||
List.map
|
||||
[ [ headerMaker (R.Debate debateHeader) ]
|
||||
, List.map
|
||||
(\debate ->
|
||||
cardMaker device (C.Debate debate) (contentList debate)
|
||||
)
|
||||
|
@ -158,72 +155,50 @@ debateList device =
|
|||
]
|
||||
|
||||
|
||||
debateHeader : Header
|
||||
debateHeader =
|
||||
let
|
||||
name =
|
||||
"Debate"
|
||||
in
|
||||
{ headerTitle = String.toUpper name
|
||||
, headerBody = "Here you will find links to various pages relevant to debate, such as formal arguments, a list of debate-dodging cucks, and an inventory of nonsensical terminology."
|
||||
}
|
||||
|
||||
|
||||
contentList : Debate -> List (Element msg)
|
||||
contentList debate =
|
||||
[ descriptionMaker debate ]
|
||||
|
||||
|
||||
debateImage :
|
||||
Debate
|
||||
->
|
||||
{ src : String
|
||||
, description : String
|
||||
}
|
||||
debateImage debate =
|
||||
{ src = "debate/" ++ debate.debateImage ++ ".png"
|
||||
, description = debate.debateTitle
|
||||
}
|
||||
|
||||
|
||||
descriptionMaker : Debate -> Element msg
|
||||
descriptionMaker debate =
|
||||
column
|
||||
[ E.width fill
|
||||
, centerX
|
||||
, spacing 3
|
||||
]
|
||||
[ row [ spacing 5 ]
|
||||
[ paragraph
|
||||
[ F.color colourTheme.textLightOrange
|
||||
, paragraphSpacing
|
||||
, F.bold
|
||||
, headerFontSizeSmall
|
||||
, E.width fill
|
||||
column [ alignTop ]
|
||||
[ column
|
||||
[ spacing 3
|
||||
, alignTop
|
||||
]
|
||||
[ row [ spacing 5 ]
|
||||
[ paragraph
|
||||
[ F.color colourTheme.textLightOrange
|
||||
, paragraphSpacing
|
||||
, F.bold
|
||||
, headerFontSizeSmall
|
||||
, E.width fill
|
||||
]
|
||||
[ if debate.debateTitle == "Arguments" then
|
||||
text "Inferences: "
|
||||
|
||||
else if debate.debateTitle == "Cucklist" then
|
||||
text "Cucks: "
|
||||
|
||||
else if debate.debateTitle == "Gibberish" then
|
||||
text "Gibberations: "
|
||||
|
||||
else
|
||||
text ""
|
||||
]
|
||||
, text (String.fromInt debate.debateCount)
|
||||
|> el
|
||||
[ F.color colourTheme.textLightGrey
|
||||
, F.regular
|
||||
, paragraphFontSize
|
||||
]
|
||||
]
|
||||
[ if debate.debateTitle == "Arguments" then
|
||||
text "Inferences: "
|
||||
|
||||
else if debate.debateTitle == "Cucklist" then
|
||||
text "Cucks: "
|
||||
|
||||
else if debate.debateTitle == "Gibberish" then
|
||||
text "Gibberations: "
|
||||
|
||||
else
|
||||
text ""
|
||||
]
|
||||
, text (String.fromInt debate.debateCount)
|
||||
|> el
|
||||
[ F.color colourTheme.textLightGrey
|
||||
, F.regular
|
||||
, F.size 16
|
||||
, el [ width fill ] <|
|
||||
chunkMaker
|
||||
[ text debate.debateDescription
|
||||
]
|
||||
]
|
||||
, el [ width fill ] <|
|
||||
chunkMaker
|
||||
[ text debate.debateDescription
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue