mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-21 12:41:39 +03:00
76 lines
1.7 KiB
Elm
76 lines
1.7 KiB
Elm
module Examples.Logo exposing (example, State, Msg)
|
|
|
|
{-|
|
|
|
|
@docs example, State, Msg
|
|
|
|
-}
|
|
|
|
import Category exposing (Category(..))
|
|
import Css
|
|
import Example exposing (Example)
|
|
import Examples.IconExamples as IconExamples
|
|
import Nri.Ui.Colors.V1 as Colors
|
|
import Nri.Ui.Logo.V1 as Logo
|
|
|
|
|
|
{-| -}
|
|
type alias State =
|
|
()
|
|
|
|
|
|
{-| -}
|
|
type alias Msg =
|
|
()
|
|
|
|
|
|
{-| -}
|
|
example : Example State Msg
|
|
example =
|
|
{ name = "Nri.Ui.Logo.V1"
|
|
, categories = List.singleton Icons
|
|
, state = ()
|
|
, update = \_ state -> ( state, Cmd.none )
|
|
, subscriptions = \_ -> Sub.none
|
|
, view =
|
|
\_ ->
|
|
[ IconExamples.viewWithCustomStyles "NRI"
|
|
[ ( "noredink"
|
|
, Logo.noredink
|
|
, [ Css.height (Css.px 25)
|
|
, Css.width (Css.px 100)
|
|
, Css.margin (Css.px 4)
|
|
]
|
|
)
|
|
]
|
|
, IconExamples.viewWithCustomStyles "Social Media & SSO"
|
|
[ ( "facebook"
|
|
, Logo.facebook
|
|
, defaults
|
|
)
|
|
, ( "twitter", Logo.twitter, defaults )
|
|
, ( "clever"
|
|
, Logo.clever
|
|
, [ Css.height (Css.px 25)
|
|
, Css.width (Css.px 100)
|
|
, Css.margin (Css.px 4)
|
|
, Css.color Colors.azure
|
|
]
|
|
)
|
|
, ( "google classroom"
|
|
, Logo.googleClassroom
|
|
, defaults
|
|
)
|
|
]
|
|
]
|
|
}
|
|
|
|
|
|
defaults : List Css.Style
|
|
defaults =
|
|
[ Css.height (Css.px 25)
|
|
, Css.width (Css.px 25)
|
|
, Css.margin (Css.px 4)
|
|
, Css.color Colors.azure
|
|
]
|