Skip to content

Commit

Permalink
feat(story-selector): add story selector style (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatvonRivia authored Oct 11, 2019
1 parent 52af98e commit 9c1b089
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.presentationSelector
width: 100%
height: 100%
height: 100%

.title
text-align: center
font-size: 1.7em

.backButton
display: block
padding: 20px 0 0 20px
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import StoryList from '../story-list/story-list';

const PresentationSelector: FunctionComponent<{}> = () => (
<div className={styles.presentationSelector}>
<Link to="/">Go back</Link>
<h1>Presenter Mode</h1>
<Link to="/" className={styles.backButton}>
Go back
</Link>
<h1 className={styles.title}>Presenter Mode</h1>
<StoryList />
</div>
);
Expand Down
10 changes: 9 additions & 1 deletion src/scripts/components/showcase-selector/showcase-selector.styl
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
.showcaseSelector
width: 100%
height: 100%
height: 100%

.title
text-align: center
font-size: 1.7em

.backButton
display: block
padding: 20px 0 0 20px
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import StoryList from '../story-list/story-list';

const ShowcaseSelector: FunctionComponent<{}> = () => (
<div className={styles.showcaseSelector}>
<Link to="/">Go back</Link>
<h1>Showcase Mode</h1>
<Link to="/" className={styles.backButton}>
Go back
</Link>
<h1 className={styles.title}>Showcase Mode</h1>
<StoryList />
</div>
);
Expand Down
3 changes: 2 additions & 1 deletion src/scripts/components/story-list/story-list.styl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.stories
.storyList
display: grid
padding: 20px
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr))
grid-gap: 10px
2 changes: 1 addition & 1 deletion src/scripts/components/story-list/story-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const StoryList: FunctionComponent<{}> = () => {
}, []);

return (
<div className={styles.stories}>
<div className={styles.storyList}>
{stories.map(story => (
<StoryItem key={story.id} story={story} />
))}
Expand Down

0 comments on commit 9c1b089

Please sign in to comment.