recipes.coopcloud.tech/src/Pages/About.elm

76 lines
2.2 KiB
Elm
Raw Normal View History

2021-04-24 14:36:37 +00:00
module Pages.About exposing (Params, Model, Msg, page)
import Html exposing (Html, button, div, h2, h5, img, text, ul, li, a, p, span, i)
import Html.Attributes exposing (src, style, class, alt, href)
2021-04-17 21:42:28 +00:00
import Spa.Document exposing (Document)
import Spa.Page as Page exposing (Page)
2021-04-24 14:36:37 +00:00
import Spa.Url as Url exposing (Url)
2021-04-17 21:42:28 +00:00
2021-04-24 14:36:37 +00:00
page : Page Params Model Msg
page =
Page.static
{ view = view
}
2021-04-17 21:42:28 +00:00
type alias Model =
Url Params
type alias Msg =
Never
-- VIEW
2021-04-24 14:36:37 +00:00
type alias Params =
()
2021-04-17 21:42:28 +00:00
view : Url Params -> Document Msg
view { params } =
2021-04-24 14:36:37 +00:00
let
elm_link = a [ href "https://elm-lang.org/" ] [ text "Elm" ]
coopcloud_link = a [ href "https://coopcloud.tech/" ] [ text "Co-op Cloud" ]
source_link = a [ href "https://git.coopcloud.tech/coop-cloud/abra-apps" ] [ text "source" ]
2021-04-24 14:36:37 +00:00
in
{ title = "about abra recipes"
2021-04-24 14:36:37 +00:00
, body =
[ div [ class "pt-3" ]
[ div [ class "col-md-6 col-sm-10 mb-3 offset-md-3 offset-sm-1" ]
[ div [ class "card" ]
[ div [ class "card-header" ]
[ h2 [] [ text "abra recipes" ]
2021-04-24 14:36:37 +00:00
]
, div [ class "card-body" ]
[ p []
[
2021-04-24 16:06:04 +00:00
text "a lil' "
, text " tool to display "
2021-04-24 14:36:37 +00:00
, coopcloud_link
2021-04-24 16:06:04 +00:00
, text " apps."
]
, p []
[
text "written in "
, elm_link
, text " for some reason 🤷"
2021-04-24 14:36:37 +00:00
]
]
, div [ class "card-footer" ]
2021-04-24 16:06:04 +00:00
[ p []
[ text "by @3wc ("
, source_link
, text ")"
]
]
2021-04-24 14:36:37 +00:00
]
]
]
]
}