docspell/website/elm/Demo.elm

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.2 KiB
Elm
Raw Permalink Normal View History

2020-08-09 08:16:40 +00:00
module Demo exposing (..)
import Html exposing (..)
import Html.Attributes exposing (..)
import Markdown
type alias Demo =
{ title : String
, url : String
, info : String
}
demo : Demo -> Html msg
demo data =
2022-01-27 19:23:15 +00:00
div [ class "px-4 py-4 mx-2 sm:mx-8 rounded border shadow-lg flex flex-col" ]
[ h2 [ class "text-3xl font-bold py-2 font-serif" ]
[ text data.title
]
, if data.info == "" then
span [] []
else
Markdown.toHtml [ class "text-lg" ] data.info
, div [ class "mt-6 self-center" ]
[ video
[ src data.url
, controls True
2020-08-09 08:16:40 +00:00
]
2022-01-27 19:23:15 +00:00
[]
2020-08-09 08:16:40 +00:00
]
]
navigateDemo =
{ title = "Navigation"
2021-02-19 17:16:11 +00:00
, url = "/videos/docspell-navigate-2021-02-19.mp4"
2020-08-10 15:38:41 +00:00
, info = "Shows basic navigation through documents using tags and tag categories."
2020-08-09 08:16:40 +00:00
}
processDemo =
{ title = "Processing"
2021-02-19 17:16:11 +00:00
, url = "/videos/docspell-process-2021-02-19-dark.mp4"
2020-08-10 15:38:41 +00:00
, info = "Presents the basic idea: maintain an address book and let docspell find matches for new uploaded documents and attach them automatically."
2020-08-09 08:16:40 +00:00
}