website/frontend/src/Pages/Home_.elm

84 lines
1.3 KiB
Elm
Raw Normal View History

2024-11-11 03:57:54 -06:00
module Pages.Home_ exposing (Model, Msg, page)
2024-11-10 22:55:49 -06:00
2024-11-11 21:57:27 -06:00
import Config.Colour as T exposing (..)
import Config.Format as O exposing (..)
import Config.Identity as I exposing (..)
2024-11-16 17:28:46 -06:00
import Cuckery.Types exposing (..)
2024-11-11 03:57:54 -06:00
import Effect exposing (Effect)
2024-11-10 22:55:49 -06:00
import Element exposing (..)
2024-11-11 03:57:54 -06:00
import Html.Attributes as H exposing (style)
import Layouts
import Page exposing (Page)
import Route exposing (Route)
import Shared
2024-11-10 22:55:49 -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
}
|> Page.withLayout toLayout
2024-11-10 22:55:49 -06:00
2024-11-11 03:57:54 -06:00
toLayout : Model -> Layouts.Layout Msg
toLayout model =
Layouts.Navbar {}
2024-11-10 22:55:49 -06:00
2024-11-11 03:57:54 -06:00
-- INIT
type alias Model =
{}
init : () -> ( Model, Effect Msg )
init () =
( {}
, Effect.none
)
-- 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 : Model -> View Msg
view model =
2024-11-11 18:57:51 -06:00
{ title = pageNames.pageHome
2024-11-11 03:57:54 -06:00
, attributes = []
, element = none
2024-11-10 22:55:49 -06:00
}