mirror of
https://github.com/correl/elm-mdl.git
synced 2024-11-23 11:09:51 +00:00
Colors
This commit is contained in:
parent
3fd16b2d9c
commit
3bc0d91d4a
1 changed files with 27 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
module Demo.Page
|
||||
( demo, package, mds, mdl
|
||||
, fromMDL, fromMDS
|
||||
, body
|
||||
, body1, body2
|
||||
)
|
||||
where
|
||||
|
||||
|
@ -119,8 +119,8 @@ fab url =
|
|||
-- BODY
|
||||
|
||||
|
||||
body : String -> String -> Html -> List (String, String) -> List Html -> Html
|
||||
body t srcUrl contents links demo =
|
||||
body1 : String -> String -> Html -> List (String, String) -> List Html -> Html
|
||||
body1 t srcUrl contents links demo =
|
||||
div []
|
||||
[ title t
|
||||
, grid [ noSpacing ]
|
||||
|
@ -144,5 +144,29 @@ body t srcUrl contents links demo =
|
|||
]
|
||||
|
||||
|
||||
body2 : String -> String -> Html -> List (String, String) -> List Html -> Html
|
||||
body2 t srcUrl contents links demo =
|
||||
div []
|
||||
[ title t
|
||||
, grid [ noSpacing ]
|
||||
[ cell
|
||||
[ size All 4, size Desktop 6 ]
|
||||
[ div [] contents
|
||||
, div
|
||||
[]
|
||||
( references <| ("Demo source", srcUrl) :: links )
|
||||
]
|
||||
, cell
|
||||
[ size All 4, size Desktop 6 ]
|
||||
( demoTitle
|
||||
:: demo
|
||||
)
|
||||
]
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue