2024-12-09 19:53:09 -06:00
|
|
|
module Config.Pages.Headers.Helpers exposing (..)
|
|
|
|
|
|
|
|
import Config.Format.CardFormat exposing (..)
|
|
|
|
import Config.Format.Format
|
|
|
|
exposing
|
|
|
|
( paragraphFontSize
|
|
|
|
, paragraphSpacing
|
|
|
|
)
|
|
|
|
import Config.Helpers.StrengthBar
|
|
|
|
exposing
|
|
|
|
( barMaker
|
|
|
|
, barPadding
|
|
|
|
)
|
|
|
|
import Config.Helpers.ToolTip exposing (tooltip)
|
|
|
|
import Config.Pages.Headers.Types exposing (..)
|
|
|
|
import Config.Pages.Interviews.Types exposing (..)
|
|
|
|
import Config.Style.Colour exposing (colourTheme)
|
|
|
|
import Config.Style.Glow exposing (glowDeepDarkGrey)
|
|
|
|
import Element as E exposing (..)
|
|
|
|
import Element.Background as B
|
|
|
|
import Element.Border as D
|
|
|
|
import Element.Font as F
|
|
|
|
import Html.Attributes as H
|
|
|
|
|
|
|
|
|
|
|
|
headerMaker : Header -> Element msg
|
|
|
|
headerMaker header =
|
|
|
|
row
|
|
|
|
topLevelBox
|
2024-12-09 22:08:35 -06:00
|
|
|
[ cardMaker
|
|
|
|
[ cardTitleMaker header.headerTitle
|
2024-12-09 19:53:09 -06:00
|
|
|
, cardFormatter
|
|
|
|
[ cardContentSpacing
|
|
|
|
[ column
|
|
|
|
fieldSpacer
|
2024-12-09 22:08:35 -06:00
|
|
|
[ cardSubTitleMaker
|
2024-12-09 19:53:09 -06:00
|
|
|
[ text header.headerBody ]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|