Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
ed20c476
Commit
ed20c476
authored
7 years ago
by
Alf Eaton
Browse files
Options
Downloads
Patches
Plain Diff
Add colors and fonts stories
parent
3dfaa6de
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
stories/components/ColorsStory.js
+15
-0
15 additions, 0 deletions
stories/components/ColorsStory.js
stories/components/FontsStory.js
+12
-0
12 additions, 0 deletions
stories/components/FontsStory.js
stories/index.js
+7
-0
7 additions, 0 deletions
stories/index.js
with
34 additions
and
0 deletions
stories/components/ColorsStory.js
0 → 100644
+
15
−
0
View file @
ed20c476
import
React
from
'
react
'
const
ColorsStory
=
()
=>
(
<
table
className
=
"
table
"
style
=
{{
fontSize
:
30
,
lineHeight
:
1
,
cellSpacing
:
5
}}
>
<
tbody
>
<
tr
>
<
td
style
=
{{
background
:
'
#4990e2
'
,
width
:
100
}}
>&
nbsp
;
<
/td
>
<
th
>
blue
<
/th
>
<
td
>
#
4990
e2
<
/td
>
<
/tr
>
<
/tbody
>
<
/table
>
)
export
default
ColorsStory
This diff is collapsed.
Click to expand it.
stories/components/FontsStory.js
0 → 100644
+
12
−
0
View file @
ed20c476
import
React
from
'
react
'
const
FontsStory
=
()
=>
(
<
div
style
=
{{
fontSize
:
50
,
lineHeight
:
1.2
}}
>
<
div
style
=
{{
fontFamily
:
'
Fira Sans
'
}}
>
Fira
Sans
<
/div
>
<
div
style
=
{{
fontFamily
:
'
Fira Sans Book
'
}}
>
Fira
Sans
Book
<
/div
>
<
div
style
=
{{
fontFamily
:
'
Fira Sans Condensed
'
}}
>
Fira
Sans
Condensed
<
/div
>
<
div
style
=
{{
fontFamily
:
'
Vollkorn
'
}}
>
Vollkorn
<
/div
>
<
/div
>
)
export
default
FontsStory
This diff is collapsed.
Click to expand it.
stories/index.js
+
7
−
0
View file @
ed20c476
...
...
@@ -31,6 +31,9 @@ import DecisionForm from '../app/components/DecisionForm'
import
ReviewForm
from
'
../app/components/ReviewForm
'
import
Navigation
from
'
../app/components/Navigation
'
import
ColorsStory
from
'
./components/ColorsStory
'
import
FontsStory
from
'
./components/FontsStory
'
// storiesOf('Welcome', module)
// .add('to Storybook', () => <Welcome showApp={linkTo('Button')} />)
...
...
@@ -41,6 +44,10 @@ const currentUser = {
username
:
'
foo
'
}
storiesOf
(
'
Styles
'
,
module
)
.
add
(
'
colors
'
,
()
=>
<
ColorsStory
/>
)
.
add
(
'
fonts
'
,
()
=>
<
FontsStory
/>
)
storiesOf
(
'
Declarations
'
,
module
)
.
add
(
'
questions
'
,
()
=>
(
<
DeclarationQuestions
declarations
=
{
submittedProject
.
declarations
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment