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

98 lines
2.4 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
-}
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
2021-11-05 22:50:05 +03:00
import Html.Styled as Html exposing (Html)
import Html.Styled.Attributes exposing (css)
import KeyboardSupport exposing (Direction(..), Key(..))
2019-10-30 04:31:51 +03:00
import Nri.Ui.Colors.V1 as Colors
import Nri.Ui.Logo.V1 as Logo
2021-11-05 22:50:05 +03:00
import Nri.Ui.Svg.V1 as Svg
2019-10-30 04:31:51 +03:00
{-| -}
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 =
2020-09-09 21:43:10 +03:00
{ name = "Logo"
, version = 1
2020-06-19 23:41:28 +03:00
, categories = [ Icons ]
, keyboardSupport = []
2020-03-31 23:33:05 +03:00
, state = ()
, update = \_ state -> ( state, Cmd.none )
, subscriptions = \_ -> Sub.none
2021-11-05 22:50:05 +03:00
, preview =
Html.div [ css [ Css.marginBottom (Css.px 8) ] ] [ Svg.toHtml Logo.noredink ]
:: IconExamples.preview
[ Logo.facebook
, Logo.twitter
, Logo.cleverC
, Logo.googleG
]
2020-03-31 23:33:05 +03:00
, 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
]
)
2021-10-18 21:06:43 +03:00
, ( "cleverC"
2021-10-18 20:57:46 +03:00
, Logo.cleverC
, defaults
)
2020-03-31 23:33:05 +03:00
, ( "google classroom"
, Logo.googleClassroom
, defaults
)
2021-10-18 21:06:43 +03:00
, ( "googleG"
, Logo.googleG
, 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
]