Skip to content

Commit 5f0d025

Browse files
committed
Added the video demo to about page. Make about page default to show What_Is_Hideout section.
1 parent 4cd9c94 commit 5f0d025

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

hideout-frontend/src/Views/About.elm

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import Common.Urls exposing
3131
import Element exposing ( Element )
3232
import Element.Font as Font
3333
import Element.Input as Input
34+
import Html
35+
import Html.Attributes
3436
import List
3537
import List.Extra as List
3638
import Set exposing ( Set )
@@ -109,7 +111,7 @@ type Msg
109111

110112

111113
init : Model
112-
init = { sectionToShow = None }
114+
init = { sectionToShow = What_Is_Hideout }
113115

114116

115117
update : Msg -> Model -> Model
@@ -163,7 +165,28 @@ what_is_hideout : Model -> Element Msg
163165
what_is_hideout model =
164166
let
165167
body = Body <|
166-
plainPara "Hideout is a self-hosted service that makes private, persistent chat rooms possible. It requires no installation or account creation. Unlike disposable chat, a Hideout room preserves privacy without expiring."
168+
Element.column
169+
[]
170+
[ plainPara "Hideout is a self-hosted service that makes private, persistent chat rooms possible. It requires no installation or account creation. Unlike disposable chat, a Hideout room preserves privacy without expiring."
171+
, Element.paragraph
172+
[ Element.paddingEach { top = 20, bottom = 0, left = 0, right = 0 } ]
173+
[ Element.text "Here's a video demo:" ]
174+
, Element.el
175+
[ -- TODO: Hardcoded width. Element.maximum doesn't auto-resize here.
176+
Element.width <| Element.maximum 520 Element.fill
177+
, Element.paddingEach { top = 30, bottom = 0, left = 0, right = 0 }
178+
] <|
179+
Element.html <|
180+
Html.video
181+
[ Html.Attributes.controls True ]
182+
[ Html.source
183+
[ Html.Attributes.src "/static/videos/intro.mp4"
184+
, Html.Attributes.type_
185+
"video/mp4"
186+
]
187+
[]
188+
]
189+
]
167190
in
168191
mkSection What_Is_Hideout "What is Hideout?" body model
169192

11.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)