website/frontend/src/Pages/Home_.elm

82 lines
1.2 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
import Config.Identity as ID exposing (..)
import Config.Theme as T 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 00:43:03 -06:00
{ title = homeName
2024-11-11 03:57:54 -06:00
, attributes = []
, element = none
2024-11-10 22:55:49 -06:00
}