2024-12-11 02:38:42 -06:00
|
|
|
module Pages.Services.Coaching exposing (Model, Msg, page)
|
2024-11-11 00:43:03 -06:00
|
|
|
|
2024-12-12 01:36:31 -06:00
|
|
|
import Config.Helpers.ArticleFormat exposing (..)
|
|
|
|
import Config.Helpers.CardFormat exposing (..)
|
|
|
|
import Config.Helpers.Format exposing (..)
|
2024-12-11 03:48:49 -06:00
|
|
|
import Config.Helpers.Response
|
2024-12-09 19:53:09 -06:00
|
|
|
exposing
|
2024-12-09 20:30:04 -06:00
|
|
|
( pageList
|
2024-12-09 19:53:09 -06:00
|
|
|
, topLevelContainer
|
|
|
|
)
|
2024-12-12 01:36:31 -06:00
|
|
|
import Config.Helpers.ToolTip exposing (..)
|
|
|
|
import Config.Pages.Headers.Types exposing (..)
|
|
|
|
import Config.Pages.Services.Services.DebateCoaching exposing (servicesDebateCoaching)
|
|
|
|
import Config.Style.Colour exposing (colourTheme)
|
|
|
|
import Config.Style.Transitions
|
|
|
|
exposing
|
|
|
|
( hoverFontDarkOrange
|
|
|
|
, transitionStyleFast
|
|
|
|
, transitionStyleSlow
|
|
|
|
)
|
2024-11-11 03:57:54 -06:00
|
|
|
import Effect exposing (Effect)
|
2024-12-09 19:53:09 -06:00
|
|
|
import Element as E exposing (..)
|
2024-12-12 01:36:31 -06:00
|
|
|
import Element.Background as B
|
|
|
|
import Element.Border as D
|
|
|
|
import Element.Font as F
|
2024-12-11 02:38:42 -06:00
|
|
|
import Html
|
2024-12-12 01:36:31 -06:00
|
|
|
import Html.Attributes as H exposing (style)
|
2024-11-11 03:57:54 -06:00
|
|
|
import Layouts
|
|
|
|
import Page exposing (Page)
|
|
|
|
import Route exposing (Route)
|
2024-12-12 01:36:31 -06:00
|
|
|
import Route.Path as Path
|
2024-11-11 03:57:54 -06:00
|
|
|
import Shared
|
2024-11-11 00:43:03 -06:00
|
|
|
import View exposing (View)
|
|
|
|
|
|
|
|
|
2024-11-11 03:57:54 -06:00
|
|
|
page : Shared.Model -> Route () -> Page Model Msg
|
|
|
|
page shared route =
|
|
|
|
Page.new
|
|
|
|
{ init = init
|
|
|
|
, update = update
|
|
|
|
, subscriptions = subscriptions
|
2024-12-06 00:43:00 -06:00
|
|
|
, view = view shared
|
2024-11-11 03:57:54 -06:00
|
|
|
}
|
|
|
|
|> Page.withLayout toLayout
|
|
|
|
|
|
|
|
|
|
|
|
toLayout : Model -> Layouts.Layout Msg
|
|
|
|
toLayout model =
|
2024-12-07 15:43:26 -06:00
|
|
|
Layouts.Navbar {}
|
2024-11-11 03:57:54 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- INIT
|
|
|
|
|
|
|
|
|
|
|
|
type alias Model =
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
init : () -> ( Model, Effect Msg )
|
|
|
|
init () =
|
|
|
|
( {}
|
2024-12-11 02:38:42 -06:00
|
|
|
, Effect.none
|
2024-11-11 03:57:54 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- UPDATE
|
|
|
|
|
|
|
|
|
|
|
|
type Msg
|
|
|
|
= NoOp
|
|
|
|
|
|
|
|
|
|
|
|
update : Msg -> Model -> ( Model, Effect Msg )
|
|
|
|
update msg model =
|
|
|
|
case msg of
|
|
|
|
NoOp ->
|
|
|
|
( model
|
|
|
|
, Effect.none
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- SUBSCRIPTIONS
|
|
|
|
|
|
|
|
|
|
|
|
subscriptions : Model -> Sub Msg
|
|
|
|
subscriptions model =
|
|
|
|
Sub.none
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- VIEW
|
|
|
|
|
|
|
|
|
2024-12-06 00:43:00 -06:00
|
|
|
view : Shared.Model -> Model -> View Msg
|
|
|
|
view shared model =
|
2024-12-12 01:36:31 -06:00
|
|
|
{ title = "services (coaching)"
|
2024-11-11 03:57:54 -06:00
|
|
|
, attributes = []
|
2024-12-12 01:36:31 -06:00
|
|
|
, element = coachingContainer shared.device
|
2024-11-11 00:43:03 -06:00
|
|
|
}
|
|
|
|
|
2024-11-11 03:57:54 -06:00
|
|
|
|
2024-12-12 01:36:31 -06:00
|
|
|
coachingContainer : Device -> Element msg
|
|
|
|
coachingContainer device =
|
|
|
|
topLevelContainer (coachingList device)
|
2024-11-11 03:57:54 -06:00
|
|
|
|
2024-11-11 00:43:03 -06:00
|
|
|
|
2024-12-12 01:36:31 -06:00
|
|
|
coachingList : Device -> Element msg
|
|
|
|
coachingList device =
|
2024-12-11 02:38:42 -06:00
|
|
|
column pageList <|
|
2024-12-01 02:56:13 -06:00
|
|
|
List.concat
|
2024-12-11 02:38:42 -06:00
|
|
|
(case ( device.class, device.orientation ) of
|
2024-12-07 15:43:26 -06:00
|
|
|
_ ->
|
2024-12-12 01:36:31 -06:00
|
|
|
[ [ serviceMaker ] ]
|
2024-12-11 02:38:42 -06:00
|
|
|
)
|
2024-12-12 01:36:31 -06:00
|
|
|
|
|
|
|
|
|
|
|
serviceMaker : Element msg
|
|
|
|
serviceMaker =
|
|
|
|
row
|
|
|
|
topLevelBox
|
|
|
|
[ cardMaker
|
|
|
|
[ cardTitleMaker (String.toUpper servicesDebateCoaching.serviceName)
|
|
|
|
, cardFormatter
|
|
|
|
[ cardContentSpacing
|
|
|
|
[ column
|
|
|
|
fieldSpacer
|
|
|
|
[ cardSubTitleMaker
|
|
|
|
[ column
|
|
|
|
bodyFormat
|
2024-12-12 22:48:20 -06:00
|
|
|
[ chunkMaker servicesDebateCoaching.serviceArticle.articleParagraph.paragraph1
|
|
|
|
, chunkMaker servicesDebateCoaching.serviceArticle.articleParagraph.paragraph2
|
2024-12-12 01:36:31 -06:00
|
|
|
, titleMaker servicesDebateCoaching.serviceArticle.articleTitles.title1
|
|
|
|
, numberMaker servicesDebateCoaching.serviceArticle.articleListEntries.list1
|
|
|
|
, titleMaker servicesDebateCoaching.serviceArticle.articleTitles.title2
|
2024-12-12 03:54:17 -06:00
|
|
|
|
|
|
|
-- modules
|
|
|
|
, highlightedBlockMaker servicesDebateCoaching.serviceArticle.articleTitles.title3 servicesDebateCoaching.serviceArticle.articleListEntries.list3
|
|
|
|
, highlightedBlockMaker servicesDebateCoaching.serviceArticle.articleTitles.title4 servicesDebateCoaching.serviceArticle.articleListEntries.list4
|
|
|
|
, highlightedBlockMaker servicesDebateCoaching.serviceArticle.articleTitles.title5 servicesDebateCoaching.serviceArticle.articleListEntries.list5
|
|
|
|
, highlightedBlockMaker servicesDebateCoaching.serviceArticle.articleTitles.title6 servicesDebateCoaching.serviceArticle.articleListEntries.list6
|
|
|
|
, highlightedBlockMaker servicesDebateCoaching.serviceArticle.articleTitles.title7 servicesDebateCoaching.serviceArticle.articleListEntries.list7
|
2024-12-12 22:48:20 -06:00
|
|
|
, highlightedBlockMaker servicesDebateCoaching.serviceArticle.articleTitles.title8 servicesDebateCoaching.serviceArticle.articleListEntries.list8
|
2024-12-12 01:36:31 -06:00
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|