noredink-ui/styleguide-app/Examples/Logo.elm

78 lines
1.8 KiB
Elm
Raw Normal View History

2020-04-01 02:00:29 +03:00
module Examples.Logo exposing (example, State, Msg)
2019-10-30 04:31:51 +03:00
{-|
2020-04-01 02:00:29 +03:00
@docs example, State, Msg
2019-10-30 04:31:51 +03:00
-}
2020-06-19 23:41:28 +03:00
import AtomicDesignType exposing (AtomicDesignType(..))
import Category exposing (Category(..))
import Css
2020-03-31 23:33:05 +03:00
import Example exposing (Example)
2019-10-30 04:31:51 +03:00
import Examples.IconExamples as IconExamples
import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Logo.V1 as Logo
{-| -}
2020-04-01 02:00:29 +03:00
type alias State =
()
{-| -}
type alias Msg =
()
{-| -}
example : Example State Msg
2019-10-30 04:31:51 +03:00
example =
{ name = "Nri.Ui.Logo.V1"
2020-06-19 23:41:28 +03:00
, categories = [ Icons ]
, atomicDesignType = AtomicDesignType.Atom
2020-03-31 23:33:05 +03:00
, 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)
]
)
]
2020-03-31 23:33:05 +03:00
, 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
)
]
2019-10-30 04:31:51 +03:00
]
}
defaults : List Css.Style
defaults =
[ Css.height (Css.px 25)
, Css.width (Css.px 25)
, Css.margin (Css.px 4)
, Css.color Colors.azure
]