1module TypographyStories where
3import Prelude hiding (add)
5import Container.Component (mkContainer)
6import Data.Maybe (Maybe(..))
8import React.Basic (element)
9import Storybook.React (Storybook, add, addDecorator, storiesOf)
10import Theme.Default (darkTheme)
11import Typography.Header (HeadingLevel(..), mkH)
12import Typography.Paragraph (mkP)
14stories ∷ Effect Storybook
16 storiesOf "Typography" do
18 [ { text: "A first level heading", level: H1, className: Nothing }
19 , { text: "Second level", level: H2, className: Nothing }
20 , { text: "A long third level heading", level: H3, className: Nothing }
21 , { text: "Finally, a pretty long h4 heading", level: H4, className: Nothing }
22 , { text: "A subheading", level: Subheading, className: Nothing }
24 addDecorator \jsx -> do
25 container <- mkContainer
32 element p { text: loremIpsum }
36 [ { text: "Purescript (H1)", level: H1, className: Nothing } ]
38 [ { text: "Purescript (H2)", level: H2, className: Nothing } ]
40 [ { text: "Purescript (H3)", level: H3, className: Nothing } ]
42 [ { text: "Purescript (H4)", level: H4, className: Nothing } ]
44 [ { text: "Purescript (H5)", level: Subheading, className: Nothing } ]
48 """PureScript is a strongly-typed, purely-functional programming language that compiles""" <>
49 """to JavaScript. It can be used to develop web applications, server side apps, and als""" <>
50 """o desktop applications with use of Electron. Its syntax is mostly comparable to that""" <>
51 """of Haskell. In addition, it introduces row polymorphism and extensible records.[2] A""" <>
52 """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