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 =
|
|
|
|
div [ class "columns is-vcentered box mb-5" ]
|
|
|
|
[ div [ class "column" ]
|
|
|
|
[ h2 [ class "title" ]
|
|
|
|
[ text data.title
|
|
|
|
]
|
|
|
|
, if data.info == "" then
|
|
|
|
span [] []
|
|
|
|
|
|
|
|
else
|
|
|
|
p []
|
|
|
|
[ Markdown.toHtml [] data.info
|
|
|
|
]
|
2021-08-11 16:23:38 +00:00
|
|
|
, div [ class "mt-5 columns is-centered" ]
|
2020-08-09 08:16:40 +00:00
|
|
|
[ video
|
|
|
|
[ src data.url
|
|
|
|
, controls True
|
|
|
|
]
|
|
|
|
[]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
}
|