2018-10-23 19:55:30 +03:00
|
|
|
module Examples.Page exposing (example)
|
2018-05-01 18:34:16 +03:00
|
|
|
|
|
|
|
{-|
|
|
|
|
|
|
|
|
@docs example, styles
|
|
|
|
|
|
|
|
-}
|
|
|
|
|
|
|
|
import Css
|
2018-11-13 02:38:19 +03:00
|
|
|
import Css.Global exposing (Snippet, adjacentSiblings, children, class, descendants, each, everything, media, selector, withClass)
|
2018-06-22 12:41:38 +03:00
|
|
|
import Headings
|
2018-10-23 19:55:30 +03:00
|
|
|
import Html.Styled as Html exposing (Html)
|
2018-05-01 18:34:16 +03:00
|
|
|
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
|
2018-10-23 19:55:30 +03:00
|
|
|
import Nri.Ui.Page.V2 as Page
|
2018-05-01 18:34:16 +03:00
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
example : msg -> ModuleExample msg
|
|
|
|
example noOp =
|
|
|
|
{ filename = "Nri/Ui/Page/V1.elm"
|
|
|
|
, category = Pages
|
|
|
|
, content =
|
2018-11-13 02:38:19 +03:00
|
|
|
[ Css.Global.global
|
|
|
|
[ Css.Global.selector "[data-page-container]"
|
2018-10-23 19:55:30 +03:00
|
|
|
[ Css.displayFlex
|
|
|
|
, Css.flexWrap Css.wrap
|
|
|
|
]
|
|
|
|
]
|
|
|
|
, Headings.h3 [ Html.text "Pages for problems" ]
|
2018-06-22 12:41:38 +03:00
|
|
|
, Headings.h4 [ Html.text "Page: Not Found" ]
|
2018-05-01 18:34:16 +03:00
|
|
|
, Page.notFound
|
|
|
|
{ link = noOp
|
|
|
|
, name = "The Main Page"
|
|
|
|
}
|
2018-06-22 12:41:38 +03:00
|
|
|
, Headings.h4 [ Html.text "Page: Broken" ]
|
2018-05-01 18:34:16 +03:00
|
|
|
, Page.broken
|
|
|
|
{ link = noOp
|
|
|
|
, name = "The Main Page"
|
|
|
|
}
|
2018-06-22 12:41:38 +03:00
|
|
|
, Headings.h4 [ Html.text "Page: No Permission" ]
|
2018-05-03 15:32:26 +03:00
|
|
|
, Page.noPermission
|
|
|
|
{ link = noOp
|
|
|
|
, name = "The Main Page"
|
|
|
|
}
|
2018-05-01 18:34:16 +03:00
|
|
|
]
|
|
|
|
}
|