mirror of
https://gitlab.com/upRootNutrition/website.git
synced 2025-06-16 12:25:12 -05:00
feat: refactored a shit ton of stuff
This commit is contained in:
parent
08f5d8e198
commit
aa6413e78d
20 changed files with 88 additions and 156 deletions
|
@ -27,63 +27,16 @@ headerMaker : Header -> Element msg
|
|||
headerMaker header =
|
||||
row
|
||||
topLevelBox
|
||||
[ column
|
||||
[ E.width fill
|
||||
|
||||
-- E.width <| px 785
|
||||
, D.width 5
|
||||
, D.color colourTheme.backgroundDarkGrey
|
||||
, D.roundEach
|
||||
{ topLeft = 32
|
||||
, topRight = 32
|
||||
, bottomRight = 32
|
||||
, bottomLeft = 32
|
||||
}
|
||||
, glowDeepDarkGrey
|
||||
]
|
||||
[ paragraph
|
||||
[ F.size 20
|
||||
, F.bold
|
||||
, F.color colourTheme.textLightGrey
|
||||
, B.color colourTheme.textDarkOrange
|
||||
, paddingEach
|
||||
{ top = 6
|
||||
, bottom = 3
|
||||
, left = 25
|
||||
, right = 15
|
||||
}
|
||||
, alignBottom
|
||||
, width fill
|
||||
, F.center
|
||||
, D.roundEach
|
||||
{ topLeft = 26
|
||||
, topRight = 26
|
||||
, bottomRight = 0
|
||||
, bottomLeft = 0
|
||||
}
|
||||
]
|
||||
[ text header.headerTitle ]
|
||||
[ cardMaker
|
||||
[ cardTitleMaker header.headerTitle
|
||||
, cardFormatter
|
||||
[ cardContentSpacing
|
||||
[ column
|
||||
fieldSpacer
|
||||
[ paragraph
|
||||
([ F.color colourTheme.textLightGrey
|
||||
, paragraphSpacing
|
||||
, paragraphFontSize
|
||||
]
|
||||
++ [ F.size 18
|
||||
, F.center
|
||||
]
|
||||
)
|
||||
[ cardSubTitleMaker
|
||||
[ text header.headerBody ]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
headerTitle : Header -> String
|
||||
headerTitle header =
|
||||
header.headerTitle
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue