mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -06:00
chore: init
This commit is contained in:
commit
1b2c1ea359
891 changed files with 37053 additions and 0 deletions
112
templates/website/frontend/src/Pages/Home_.elm
Executable file
112
templates/website/frontend/src/Pages/Home_.elm
Executable file
|
|
@ -0,0 +1,112 @@
|
|||
module Pages.Home_ exposing (Model, Msg, page)
|
||||
|
||||
import Config.Helpers.Response exposing (..)
|
||||
import Config.Helpers.Viewport exposing (resetViewport)
|
||||
import Config.Pages.Home.Background exposing (..)
|
||||
import Config.Pages.Home.CardMaker.Helpers.Icon exposing (..)
|
||||
import Config.Pages.Home.CardMaker.Helpers.Image exposing (..)
|
||||
import Config.Pages.Home.CardMaker.Records exposing (..)
|
||||
import Config.Pages.Home.CardMaker.Types exposing (..)
|
||||
import Config.Pages.Home.Helpers exposing (..)
|
||||
import Config.Style.Colour.Helpers exposing (..)
|
||||
import Config.Style.Colour.Types exposing (Theme(..))
|
||||
import Config.Style.Fonts exposing (..)
|
||||
import Config.Style.Glow exposing (..)
|
||||
import Config.Style.Icons.Icons exposing (..)
|
||||
import Config.Style.Transitions exposing (..)
|
||||
import Effect exposing (Effect)
|
||||
import Element as E exposing (..)
|
||||
import Element.Background as B exposing (..)
|
||||
import Element.Border as D exposing (..)
|
||||
import Element.Events as V
|
||||
import Element.Font as F exposing (..)
|
||||
import Html exposing (Html)
|
||||
import Html.Attributes as Attr
|
||||
import Page exposing (Page)
|
||||
import Ports
|
||||
import Route exposing (Route)
|
||||
import Shared exposing (Model)
|
||||
import Shared.Msg
|
||||
import Svg.Attributes as SvgAttr exposing (clip)
|
||||
import View exposing (View)
|
||||
|
||||
|
||||
page : Shared.Model -> Route () -> Page Model Msg
|
||||
page shared route =
|
||||
Page.new
|
||||
{ init = init
|
||||
, update = update
|
||||
, subscriptions = subscriptions
|
||||
, view = view shared
|
||||
}
|
||||
|
||||
|
||||
|
||||
-- INIT
|
||||
|
||||
|
||||
type alias Model =
|
||||
{}
|
||||
|
||||
|
||||
init : () -> ( Model, Effect Msg )
|
||||
init () =
|
||||
( {}
|
||||
, Effect.map
|
||||
(\_ -> NoOp)
|
||||
(Effect.sendCmd resetViewport)
|
||||
)
|
||||
|
||||
|
||||
|
||||
-- UPDATE
|
||||
|
||||
|
||||
type Msg
|
||||
= NoOp
|
||||
| ToggleTheme
|
||||
|
||||
|
||||
update : Msg -> Model -> ( Model, Effect Msg )
|
||||
update msg model =
|
||||
case msg of
|
||||
NoOp ->
|
||||
( model
|
||||
, Effect.none
|
||||
)
|
||||
|
||||
ToggleTheme ->
|
||||
( model
|
||||
, Effect.sendSharedMsg Shared.Msg.ToggleTheme
|
||||
)
|
||||
|
||||
|
||||
|
||||
-- SUBSCRIPTIONS
|
||||
|
||||
|
||||
subscriptions : Model -> Sub Msg
|
||||
subscriptions model =
|
||||
Sub.none
|
||||
|
||||
|
||||
|
||||
-- VIEW
|
||||
|
||||
|
||||
view : Shared.Model -> Model -> View Msg
|
||||
view shared model =
|
||||
{ title = ""
|
||||
, attributes = [ F.family [ headerFont ] ]
|
||||
, element = homePage shared (createFontSizes shared.fontScale)
|
||||
}
|
||||
|
||||
|
||||
paddingHelper : Attribute msg
|
||||
paddingHelper =
|
||||
padding 10
|
||||
|
||||
|
||||
homePage : Shared.Model -> FontSizes Msg -> Element Msg
|
||||
homePage shared fontSizes =
|
||||
E.el [] <| text "Hello world!"
|
||||
76
templates/website/frontend/src/Pages/NotFound_.elm
Executable file
76
templates/website/frontend/src/Pages/NotFound_.elm
Executable file
|
|
@ -0,0 +1,76 @@
|
|||
module Pages.NotFound_ exposing (Model, Msg, page)
|
||||
|
||||
import Config.Helpers.Viewport exposing (resetViewport)
|
||||
import Effect exposing (Effect)
|
||||
import Element as E exposing (..)
|
||||
import Html exposing (..)
|
||||
import Page exposing (Page)
|
||||
import Route exposing (Route)
|
||||
import Route.Path
|
||||
import Shared
|
||||
import View exposing (View)
|
||||
|
||||
|
||||
page : Shared.Model -> Route () -> Page Model Msg
|
||||
page shared route =
|
||||
Page.new
|
||||
{ init = init
|
||||
, update = update
|
||||
, subscriptions = subscriptions
|
||||
, view = view shared
|
||||
}
|
||||
|
||||
|
||||
|
||||
-- INIT
|
||||
|
||||
|
||||
type alias Model =
|
||||
{}
|
||||
|
||||
|
||||
init : () -> ( Model, Effect Msg )
|
||||
init () =
|
||||
( {}
|
||||
, Effect.map
|
||||
(\_ -> NoOp)
|
||||
(Effect.sendCmd resetViewport)
|
||||
)
|
||||
|
||||
|
||||
|
||||
-- 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 =
|
||||
{ title = ""
|
||||
, attributes = []
|
||||
, element = E.row [] [ E.text "Page not found" ]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue