1module CardStories where
3import Prelude hiding (add)
5import Card.Component (mkCard, mkCardContent, mkCardSubtitle, mkCardTitle)
6import Decorator.FullScreen (fullScreenDecorator)
8import React.Basic.DOM (css)
9import React.Basic.DOM as R
10import React.Basic.Hooks (component, element)
11import Storybook.React (Storybook, add, addDecorator, storiesOf)
13stories ∷ Effect Storybook
16 addDecorator fullScreenDecorator
17 add "Example card" mkExample
18 [ { title: "An example card"
19 , subtitle: "It says some more"
20 , content: R.text loremIpsum
26 cardTitle <- mkCardTitle
27 cardSubtitle <- mkCardSubtitle
28 cardContent <- mkCardContent
29 component "ExampleCard" \{ title, subtitle, content } -> React.do
36 [ element cardTitle { children: [ R.text title ] }
37 , element cardSubtitle { children: [ R.text subtitle ] }
38 , element cardContent { children: [ content ] }
41 , style: css { width: "400px" }
46 """PureScript is a strongly-typed, purely-functional programming language that compiles"""
47 <> """ to JavaScript. It can be used to develop web applications, server side apps, and al"""
48 <> """so desktop applications with use of Electron. Its syntax is mostly comparable to tha"""
49 <> """t of Haskell. In addition, it introduces row polymorphism and extensible records.[2]"""
50 <> """ Also, 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