2020-04-01 02:00:29 +03:00
|
|
|
module Examples.MasteryIcon exposing (example, State, Msg)
|
2019-11-26 01:30:20 +03:00
|
|
|
|
|
|
|
{-|
|
|
|
|
|
2020-04-01 02:00:29 +03:00
|
|
|
@docs example, State, Msg
|
2019-11-26 01:30:20 +03:00
|
|
|
|
|
|
|
-}
|
|
|
|
|
2020-03-24 03:33:42 +03:00
|
|
|
import Category exposing (Category(..))
|
2020-03-31 23:33:05 +03:00
|
|
|
import Example exposing (Example)
|
2019-11-26 01:30:20 +03:00
|
|
|
import Examples.IconExamples as IconExamples
|
|
|
|
import Nri.Ui.Colors.V1 as Colors
|
|
|
|
import Nri.Ui.MasteryIcon.V1 as MasteryIcon
|
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
2020-04-01 02:00:29 +03:00
|
|
|
type alias State =
|
|
|
|
()
|
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
type alias Msg =
|
|
|
|
()
|
|
|
|
|
|
|
|
|
|
|
|
{-| -}
|
|
|
|
example : Example State Msg
|
2019-11-26 01:30:20 +03:00
|
|
|
example =
|
|
|
|
{ name = "Nri.Ui.MasteryIcon.V1"
|
2020-03-31 23:33:05 +03:00
|
|
|
, categories = List.singleton Icons
|
|
|
|
, state = ()
|
|
|
|
, update = \_ state -> ( state, Cmd.none )
|
|
|
|
, subscriptions = \_ -> Sub.none
|
|
|
|
, view =
|
|
|
|
\_ ->
|
|
|
|
[ IconExamples.view "Levels"
|
|
|
|
[ ( "levelZero", MasteryIcon.levelZero )
|
|
|
|
, ( "levelOne", MasteryIcon.levelOne )
|
|
|
|
, ( "levelTwo", MasteryIcon.levelTwo )
|
|
|
|
, ( "levelThree", MasteryIcon.levelThree )
|
|
|
|
]
|
2019-11-26 01:30:20 +03:00
|
|
|
]
|
|
|
|
}
|