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 } =
2022-05-04 09:19:28 +00:00
let
2021-04-24 14:36:37 +00:00
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
2022-05-04 09:19:28 +00:00
{ title = "About Co-op Cloud Recipes"
, body =
2021-04-24 14:36:37 +00:00
[ div [ class "pt-3" ]
2022-05-04 09:19:28 +00:00
[ div [ class "col-md-6 col-sm-10 mb-3 offset-md-3 offset-sm-1" ]
2021-04-24 14:36:37 +00:00
[ div [ class "card" ]
[ div [ class "card-header" ]
2022-05-04 09:19:28 +00:00
[ h2 [] [ text "Co-op Cloud Recipes" ]
2021-04-24 14:36:37 +00:00
]
, div [ class "card-body" ]
2022-05-04 09:19:28 +00:00
[ p []
2021-04-24 14:36:37 +00:00
[
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 "
2022-05-04 09:19:28 +00:00
, elm_link
2021-04-24 16:06:04 +00:00
, text " for some reason 🤷"
2021-04-24 14:36:37 +00:00
]
]
, div [ class "card-footer" ]
2022-05-04 09:19:28 +00:00
[ p []
2021-04-24 16:06:04 +00:00
[ text "by @3wc ("
, source_link
, text ")"
]
]
2021-04-24 14:36:37 +00:00
]
]
]
]
}