-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathStories.elm
38 lines (33 loc) · 911 Bytes
/
Stories.elm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
module Components.Header.Stories exposing (stories)
import Color as RawColor
import Components.Header.View as Header
import Components.Text.View as TextView
import Element exposing (..)
import Element.Background as Background
import Html
import Theme.Color exposing (color, getColor)
import UIExplorer exposing (storiesOf)
import Utils
stories : UIExplorer.UI a b { hasMenu : Bool }
stories =
storiesOf
"Header"
[ ( "Primary"
, \_ ->
Header.viewPrimary |> toHtml
, { hasMenu = True }
)
, ( "Secondary"
, \_ ->
Header.viewSecondary |> toHtml
, { hasMenu = True }
)
]
toHtml : Element msg -> Html.Html msg
toHtml =
Element.layout
[ Background.color (Utils.toRgb color.neutral.greyLightest)
, width fill
, height (px 400)
, padding 20
]