Skip to content

Commit

Permalink
feat(showcase-mode): show number of selected stories
Browse files Browse the repository at this point in the history
  • Loading branch information
KatvonRivia committed Nov 21, 2019
1 parent 055e591 commit 232c0fa
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 42 deletions.
14 changes: 14 additions & 0 deletions src/scripts/components/showcase-selector/showcase-selector.styl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,24 @@
background-color: #fff
pointer-events: auto

.header
display: flex
flex-direction: column

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

.play
display: flex
align-self: flex-end
align-items: center
padding-right: 20px

svg
padding-left: 10px

.backButton
display: block
padding: 20px 0 0 20px
19 changes: 13 additions & 6 deletions src/scripts/components/showcase-selector/showcase-selector.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, {FunctionComponent, useState} from 'react';
import {Link, useHistory} from 'react-router-dom';
import {FormattedMessage} from 'react-intl';
import {PlayIcon} from '../icons/play-icon';

import StoryList from '../story-list/story-list';

Expand Down Expand Up @@ -29,12 +30,18 @@ const ShowcaseSelector: FunctionComponent = () => {

return (
<div className={styles.showcaseSelector}>
<Link to="/" className={styles.backButton}>
<FormattedMessage id="goBack" />
</Link>
<h1 className={styles.title}>
<FormattedMessage id="showcaseMode" />
</h1>
<div className={styles.header}>
<Link to="/" className={styles.backButton}>
<FormattedMessage id="goBack" />
</Link>
<h1 className={styles.title}>
<FormattedMessage id="showcaseMode" />
</h1>
<div className={styles.play}>
<span>{selectedIds.length} stories selected</span>
<PlayIcon />
</div>
</div>
<StoryList
mode={StoryMode.Showcase}
onSelectStory={id => onSelectStory(id)}
Expand Down
12 changes: 0 additions & 12 deletions storage/layers/layers-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,5 @@
"description": "Das ist der dritte Layer",
"link": "http://...",
"subLayers": []
},
{
"id": "layer3",
"name": "Layer 3",
"description": "Das ist der dritte Layer",
"subLayers": []
},
{
"id": "layer3",
"name": "Layer 3",
"description": "Das ist der dritte Layer",
"subLayers": []
}
]
12 changes: 0 additions & 12 deletions storage/layers/layers-en.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,5 @@
"description": "This is the third layer",
"link": "http://...",
"subLayers": []
},
{
"id": "layer3",
"name": "Layer 3",
"description": "This is the third layer",
"subLayers": []
},
{
"id": "layer3",
"name": "Layer 3",
"description": "This is the third layer",
"subLayers": []
}
]
12 changes: 0 additions & 12 deletions storage/layers/layers-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,5 @@
"description": "Das ist der dritte Layer",
"link": "http://...",
"subLayers": []
},
{
"id": "layer3",
"name": "Layer 3",
"description": "Das ist der dritte Layer",
"subLayers": []
},
{
"id": "layer3",
"name": "Layer 3",
"description": "Das ist der dritte Layer",
"subLayers": []
}
]

0 comments on commit 232c0fa

Please sign in to comment.