mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2025-01-03 03:46:37 +03:00
🐛 fixes the broken see-only-this-link and the view docs link
This commit is contained in:
parent
8a482a9720
commit
9cba1a22d0
31
styleguide-app/Examples/Heading.elm
Normal file
31
styleguide-app/Examples/Heading.elm
Normal file
@ -0,0 +1,31 @@
|
||||
module Examples.Heading exposing (example)
|
||||
|
||||
{-|
|
||||
|
||||
@docs example
|
||||
|
||||
-}
|
||||
|
||||
import Css
|
||||
import Html.Styled as Html
|
||||
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
|
||||
import Nri.Ui.Colors.V1 as Colors
|
||||
import Nri.Ui.Heading.V2 as Heading
|
||||
|
||||
|
||||
{-| -}
|
||||
example : ModuleExample msg
|
||||
example =
|
||||
{ name = "Nri.Ui.Heading.V2"
|
||||
, category = Text
|
||||
, content =
|
||||
[ Heading.h1 [] [ Html.text "This is the main page heading." ]
|
||||
, Heading.h2 [] [ Html.text "This is a tagline" ]
|
||||
, Heading.h3 [] [ Html.text "This is a subHeading" ]
|
||||
, Heading.h4 [] [ Html.text "This is a smallHeading" ]
|
||||
, Heading.h2 [ Heading.style Heading.Top ]
|
||||
[ Html.text "Heading.h2 [ Heading.style Heading.Top ]" ]
|
||||
, Heading.h2 [ Heading.css [ Css.color Colors.highlightPurpleDark ] ]
|
||||
[ Html.text "Heading.h2 [ Heading.css [ Css.color Colors.highlightPurpleDark ] ]" ]
|
||||
]
|
||||
}
|
@ -6,10 +6,8 @@ module Examples.Text exposing (example)
|
||||
|
||||
-}
|
||||
|
||||
import Css
|
||||
import Html.Styled as Html
|
||||
import ModuleExample as ModuleExample exposing (Category(..), ModuleExample)
|
||||
import Nri.Ui.Colors.V1 as Colors
|
||||
import Nri.Ui.Heading.V2 as Heading
|
||||
import Nri.Ui.Text.V4 as Text
|
||||
|
||||
@ -17,7 +15,7 @@ import Nri.Ui.Text.V4 as Text
|
||||
{-| -}
|
||||
example : ModuleExample msg
|
||||
example =
|
||||
{ name = "Nri.Ui.Text.V4 (with headers from Nri.Ui.Heading.V2)"
|
||||
{ name = "Nri.Ui.Text.V4"
|
||||
, category = Text
|
||||
, content =
|
||||
let
|
||||
@ -28,30 +26,14 @@ example =
|
||||
how long the assignment will take.
|
||||
"""
|
||||
in
|
||||
[ Html.text "NOTE: When using these styles, please read the documentation in the Elm module about \"Understanding spacing\""
|
||||
, Heading.h1 [] [ Html.text "This is the main page heading." ]
|
||||
, Heading.h2 [] [ Html.text "This is a tagline" ]
|
||||
, Heading.h3 [] [ Html.text "This is a subHeading" ]
|
||||
, Heading.h4 [] [ Html.text "This is a smallHeading" ]
|
||||
, Html.hr [] []
|
||||
, Heading.h2 [] [ Html.text "Paragraph styles" ]
|
||||
[ Text.caption [ Html.text "NOTE: When using these styles, please read the documentation in the Elm module about \"Understanding spacing\"" ]
|
||||
, Heading.h2 [ Heading.style Heading.Top ] [ Html.text "Paragraph styles" ]
|
||||
, Text.mediumBody [ Html.text <| "This is a mediumBody. " ++ longerBody ]
|
||||
, Text.smallBody [ Html.text <| "This is a smallBody. " ++ longerBody ]
|
||||
, Text.smallBodyGray [ Html.text <| "This is a smallBodyGray. " ++ longerBody ]
|
||||
, Text.caption [ Html.text <| "This is a caption. " ++ longerBody ]
|
||||
, Html.hr [] []
|
||||
, Heading.h2 [] [ Html.text "Paragraph styles for user-authored content" ]
|
||||
, Heading.h2 [ Heading.style Heading.Top ] [ Html.text "Paragraph styles for user-authored content" ]
|
||||
, Text.ugMediumBody [ Html.text <| "This is an ugMediumBody. " ++ longerBody ]
|
||||
, Text.ugSmallBody [ Html.text <| "This is an ugSmallBody. " ++ longerBody ]
|
||||
|
||||
---------------
|
||||
, Html.hr [] []
|
||||
, Heading.h2 [] [ Html.text "Headings with overrides" ]
|
||||
, Heading.h2
|
||||
[ Heading.style Heading.Top ]
|
||||
[ Html.text "I'm an H2 with the top style!" ]
|
||||
, Heading.h2
|
||||
[ Heading.css [ Css.color Colors.highlightPurpleDark ] ]
|
||||
[ Html.text "I have a custom color!" ]
|
||||
]
|
||||
}
|
||||
|
@ -11,6 +11,7 @@ import Examples.Colors
|
||||
import Examples.DisclosureIndicator
|
||||
import Examples.Dropdown
|
||||
import Examples.Fonts
|
||||
import Examples.Heading
|
||||
import Examples.Icon
|
||||
import Examples.Modal
|
||||
import Examples.Page
|
||||
@ -276,6 +277,7 @@ nriThemedModules model =
|
||||
, Examples.Page.example NoOp
|
||||
, Examples.SegmentedControl.example SegmentedControlMsg model.segmentedControlState
|
||||
, Examples.Select.example SelectMsg model.selectState
|
||||
, Examples.Heading.example
|
||||
, Examples.Text.example
|
||||
, Examples.Text.Writing.example
|
||||
, Examples.Fonts.example
|
||||
|
Loading…
Reference in New Issue
Block a user