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

52 lines
1.3 KiB
Elm
Raw Normal View History

2020-04-01 02:00:29 +03:00
module Examples.Fonts exposing (example, State, Msg)
2018-03-17 01:27:38 +03:00
{-|
2020-04-01 02:00:29 +03:00
@docs example, State, Msg
2018-03-17 01:27:38 +03:00
-}
import Category exposing (Category(..))
2020-03-31 23:33:05 +03:00
import Example exposing (Example)
2018-03-17 01:27:38 +03:00
import Html.Styled as Html
import Html.Styled.Attributes exposing (css)
import KeyboardSupport exposing (Direction(..), Key(..))
2018-03-17 01:27:38 +03:00
import Nri.Ui.Fonts.V1 as Fonts
import Nri.Ui.Heading.V2 as Heading
2018-03-17 01:27:38 +03:00
{-| -}
2020-04-01 02:00:29 +03:00
type alias State =
()
{-| -}
type alias Msg =
()
{-| -}
example : Example State Msg
2018-03-17 01:27:38 +03:00
example =
2020-09-09 21:43:10 +03:00
{ name = "Fonts"
, version = 1
2020-06-19 23:41:28 +03:00
, categories = [ Text ]
, keyboardSupport = []
2020-03-31 23:33:05 +03:00
, state = ()
, update = \_ state -> ( state, Cmd.none )
, subscriptions = \_ -> Sub.none
2021-11-05 21:19:08 +03:00
, preview = []
2020-03-31 23:33:05 +03:00
, view =
\_ ->
[ Heading.h3 [] [ Html.text "baseFont" ]
, Html.p [ css [ Fonts.baseFont ] ]
[ Html.text "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" ]
, Heading.h3 [] [ Html.text "quizFont" ]
, Html.p [ css [ Fonts.quizFont ] ]
[ Html.text "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" ]
, Heading.h3 [] [ Html.text "ugFont" ]
, Html.p [ css [ Fonts.ugFont ] ]
[ Html.text "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" ]
]
2018-03-17 01:27:38 +03:00
}