mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 04:25:11 -05:00
feat: stuff is fucked but I'm too tired to continue tonight
This commit is contained in:
parent
d2056e032e
commit
277ba17421
37 changed files with 683 additions and 1491 deletions
|
@ -1,22 +1,7 @@
|
|||
module Pages.Contact exposing (Model, Msg, page)
|
||||
|
||||
import Config.Data.Identity exposing (pageNames)
|
||||
import Config.Helpers.CardFormat
|
||||
exposing
|
||||
( cardContentSpacing
|
||||
, cardFormatter
|
||||
, cardMaker
|
||||
, cardSubTitleMaker
|
||||
, cardTitleMaker
|
||||
, desktopCardMaker
|
||||
, desktopImageBoxSize
|
||||
, desktopImageSize
|
||||
, fieldSpacer
|
||||
, mobileCardMaker
|
||||
, mobileImageBoxSize
|
||||
, mobileImageSize
|
||||
, topLevelBox
|
||||
)
|
||||
import Config.Helpers.CardFormat exposing (cardMaker)
|
||||
import Config.Helpers.Format exposing (..)
|
||||
import Config.Helpers.Headers.Header exposing (headerMaker)
|
||||
import Config.Helpers.Headers.Types exposing (Header)
|
||||
|
@ -131,42 +116,29 @@ contactContainer device =
|
|||
|
||||
contactList : Device -> Element msg
|
||||
contactList device =
|
||||
column pageList <|
|
||||
column
|
||||
(case ( device.class, device.orientation ) of
|
||||
_ ->
|
||||
pageList
|
||||
)
|
||||
<|
|
||||
List.concat
|
||||
(case ( device.class, device.orientation ) of
|
||||
[ (case ( device.class, device.orientation ) of
|
||||
_ ->
|
||||
[ [ instructionMaker ] ]
|
||||
)
|
||||
|
||||
|
||||
contactHeader : Header
|
||||
contactHeader =
|
||||
let
|
||||
name =
|
||||
"Contact"
|
||||
in
|
||||
{ headerTitle = String.toUpper name
|
||||
, headerBody = "fasdklfjasdlk;fjasdl;fjasdfl;kasjdfl;askdja;lsdkjas;ldfj"
|
||||
}
|
||||
|
||||
|
||||
instructionMaker : Element msg
|
||||
instructionMaker =
|
||||
row
|
||||
topLevelBox
|
||||
[ cardMaker
|
||||
[ cardTitleMaker (String.toUpper pageNames.pageContact)
|
||||
, cardFormatter
|
||||
[ cardContentSpacing
|
||||
[ column
|
||||
fieldSpacer
|
||||
[ cardSubTitleMaker
|
||||
[ instructionBody ]
|
||||
]
|
||||
]
|
||||
]
|
||||
List.map (contactMaker device)
|
||||
)
|
||||
[]
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
contactMaker : Device -> Contact -> Element msg
|
||||
contactMaker device contact =
|
||||
cardMaker device contact.contactName (contentList contact) { description = "", src = "" } contact.contactLink
|
||||
|
||||
|
||||
contentList : Contact -> List (Element msg)
|
||||
contentList contact =
|
||||
[ instructionBody ]
|
||||
|
||||
|
||||
instructionBody : Element msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue