web-rep-0.2.0: representations of a web page

Safe HaskellNone
LanguageHaskell2010

Web.Page.Bootstrap

Description

some bootstrap assets

Synopsis

Documentation

bootstrapPage :: Page Source #

A page containing all the bootstrap needs for a web page.

cardify :: (Html (), [Attribute]) -> Maybe Text -> (Html (), [Attribute]) -> Html () Source #

wrap some Html with the bootstrap card class

divClass_ :: Text -> Html () -> Html () Source #

wrap some html with a classed div

accordion Source #

Arguments

:: MonadState Int m 
=> Text 
-> Maybe Text

name prefix. This is needed because an Int doesn't seem to be a valid name.

-> [(Text, Html ())]

card title

-> m (Html ())

title, html tuple for each item in the accordion.

create a bootstrapped accordian class

accordionChecked :: MonadState Int m => Text -> [(Text, Html (), Html ())] -> m (Html ()) Source #

create a bootstrapped accordian class

accordionCardChecked :: Bool -> Text -> Text -> Text -> Text -> Html () -> Html () -> Html () Source #

accordion_ :: Text -> Maybe Text -> [(Text, Html ())] -> Html () Source #

This version of accordion runs a local state for naming, and will cause name clashes if the prefix is not unique.