website/frontend/src/Pages/Services/Coaching.elm

102 lines
1.7 KiB
Elm
Raw Normal View History

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-09 19:53:09 -06:00
import Config.Data.Identity exposing (pageNames)
import Config.Format.Response
exposing
2024-12-09 20:30:04 -06:00
( pageList
2024-12-09 19:53:09 -06:00
, topLevelContainer
)
2024-12-11 02:38:42 -06:00
-- import Config.Pages.Services.Coaching.Helpers exposing (instructionMaker)
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-11 02:38:42 -06:00
import Html
2024-11-11 03:57:54 -06:00
import Layouts
import Page exposing (Page)
import Route exposing (Route)
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
, 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
view : Shared.Model -> Model -> View Msg
view shared model =
2024-12-11 02:38:42 -06:00
{ title = pageNames.pageContact ++ " ( )"
2024-11-11 03:57:54 -06:00
, attributes = []
2024-12-11 02:38:42 -06:00
, element = coachContainer shared.device
2024-11-11 00:43:03 -06:00
}
2024-11-11 03:57:54 -06:00
2024-12-11 02:38:42 -06:00
coachContainer : Device -> Element msg
coachContainer device =
topLevelContainer (coachList device)
2024-11-11 03:57:54 -06:00
2024-11-11 00:43:03 -06:00
2024-12-11 02:38:42 -06:00
coachList : Device -> Element msg
coachList device =
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-11 02:38:42 -06:00
[ [ ] ]
)