Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(story-selector): add story selector style #143

Merged
merged 1 commit into from
Oct 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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