1module TypographyStories where
3import Prelude hiding (add)
5import Data.Maybe (Maybe(..))
6import Decorator.FullScreen (fullScreenDecorator)
8import Storybook.React (Storybook, add, addDecorator, storiesOf)
9import Typography.Header (HeadingLevel(..), mkH)
11stories ∷ Effect Storybook
13 storiesOf "Typography" do
14 addDecorator fullScreenDecorator
16 [ { text: "A first level heading", level: H1, className: Nothing }
17 , { text: "Second level", level: H2, className: Nothing }
18 , { text: "A long third level heading", level: H3, className: Nothing }
19 , { text: "Finally, a pretty long h4 heading", level: H4, className: Nothing }
20 , { text: "A subheading", level: Subheading, className: Nothing }
23 [ { text: "Purescript (H1)", level: H1, className: Nothing } ]
25 [ { text: "Purescript (H2)", level: H2, className: Nothing } ]
27 [ { text: "Purescript (H3)", level: H3, className: Nothing } ]
29 [ { text: "Purescript (H4)", level: H4, className: Nothing } ]
31 [ { text: "Purescript (H5)", level: Subheading, className: Nothing } ]
35 """PureScript is a strongly-typed, purely-functional programming language that compiles""" <>
36 """to JavaScript. It can be used to develop web applications, server side apps, and als""" <>
37 """o desktop applications with use of Electron. Its syntax is mostly comparable to that""" <>
38 """of Haskell. In addition, it introduces row polymorphism and extensible records.[2] A""" <>
39 """lso, contrary to Haskell, PureScript adheres to a strict evaluation strategy."""
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list