-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stories): add story items and styles (#142)
* feat(stories): add story items and styles * feat(stories): change classnames * feat(stories): change classnames
- Loading branch information
1 parent
22356f4
commit 52af98e
Showing
7 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
src/scripts/components/presentation-selector/presentation-selector.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 5 additions & 3 deletions
8
src/scripts/components/showcase-selector/showcase-selector.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.storyItem | ||
padding: 5px | ||
|
||
.image | ||
height: 150px | ||
background-color: #ccc | ||
|
||
.title | ||
font-size: 1em |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React, {FunctionComponent} from 'react'; | ||
|
||
import styles from './story-item.styl'; | ||
import {Story} from '../../actions/fetch-stories'; | ||
|
||
interface Props { | ||
story: Story; | ||
} | ||
|
||
const StoryItem: FunctionComponent<Props> = ({story}) => ( | ||
<div className={styles.storyItem}> | ||
<div className={styles.image}></div> | ||
<p className={styles.title}>{story.title}</p> | ||
</div> | ||
); | ||
|
||
export default StoryItem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.stories | ||
display: grid | ||
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) | ||
grid-gap: 10px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters