File tree Expand file tree Collapse file tree 5 files changed +61
-49
lines changed
static/stories/inventionStory Expand file tree Collapse file tree 5 files changed +61
-49
lines changed Original file line number Diff line number Diff line change @@ -222,52 +222,52 @@ function StoryPage(props: IStoryPageProps) {
222222 ) }
223223 </ div >
224224 </ div >
225- < div className = "flex-column" >
226- < div className = "parent" >
227- { isPaused &&
228- < IoIosPlay
229- className = "pause-audio"
230- size = "1.75em"
231- onClick = { ( ) => {
232- if ( currAudio . current ) {
233- currAudio . current . play ( ) ;
234- setIsPaused ( false ) ;
235- }
236- } }
237- />
238- }
239- { ! isPaused &&
240- < IoIosPause
241- className = "pause-audio"
242- size = "1.75em"
243- onClick = { ( ) => {
244- if ( currAudio . current ) {
245- currAudio . current . pause ( ) ;
246- setIsPaused ( true ) ;
247- }
248- } }
249- />
250- }
251- </ div >
252- { ! storyTextExpanded &&
253- < FaExpandArrowsAlt
254- className = "story-icon"
255- size = "1.5em"
225+ < div className = "flex-column" >
226+ < div className = "parent" >
227+ { isPaused &&
228+ < IoIosPlay
229+ className = "pause-audio"
230+ size = "1.75em"
256231 onClick = { ( ) => {
257- setStoryTextExpanded ( true ) ;
232+ if ( currAudio . current ) {
233+ currAudio . current . play ( ) ;
234+ setIsPaused ( false ) ;
235+ }
258236 } }
259237 />
260238 }
261- { storyTextExpanded &&
262- < FaCompressArrowsAlt
263- className = "story-icon "
264- size = "1.5em "
239+ { ! isPaused &&
240+ < IoIosPause
241+ className = "pause-audio "
242+ size = "1.75em "
265243 onClick = { ( ) => {
266- setStoryTextExpanded ( false ) ;
244+ if ( currAudio . current ) {
245+ currAudio . current . pause ( ) ;
246+ setIsPaused ( true ) ;
247+ }
267248 } }
268- />
249+ />
269250 }
270251 </ div >
252+ { ! storyTextExpanded &&
253+ < FaExpandArrowsAlt
254+ className = "story-icon"
255+ size = "1.5em"
256+ onClick = { ( ) => {
257+ setStoryTextExpanded ( true ) ;
258+ } }
259+ />
260+ }
261+ { storyTextExpanded &&
262+ < FaCompressArrowsAlt
263+ className = "story-icon"
264+ size = "1.5em"
265+ onClick = { ( ) => {
266+ setStoryTextExpanded ( false ) ;
267+ } }
268+ />
269+ }
270+ </ div >
271271 </ div >
272272 }
273273 </ div >
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ function StorySelectPage(props: IStorySelectPageProps) {
2424 < div className = "flex-row-wrap-container space-between list-row" >
2525 { stories . map ( ( story , idx ) => {
2626 return (
27- < Card storyCard style = { { flex : '33 %' } } key = { `story_card_${ idx } ` } >
27+ < Card storyCard style = { { flex : '30 %' } } key = { `story_card_${ idx } ` } >
2828 < h2 > { story . title } </ h2 >
2929 < img
3030 className = "card-img"
Original file line number Diff line number Diff line change 22 display : flex;
33 flex-direction : column;
44 align-items : center;
5- justify-content : space-between ;
5+ justify-content : space-around ;
66}
77
88.flex-start {
1818 display : flex;
1919 flex-direction : row;
2020 align-items : center;
21- justify-content : space-between ;
21+ justify-content : space-around ;
2222}
2323
2424.category-card {
3030}
3131
3232.welcome-page h1 {
33- font-size : 3.5 em ;
33+ font-size : 4 em ;
3434 font-family : 'Comic Sans MS' , 'Comic Sans' , serif;
3535}
3636
4545.card-item {
4646 background-color : # F4FAF8 ;
4747 border-radius : 25px ;
48- padding : 20px ;
48+ padding-top : 0px ;
49+ padding-bottom : 20px ;
50+ margin-bottom : 28px ;
51+ }
52+
53+ .card-item-story {
54+ background-color : # F4FAF8 ;
55+ border-radius : 25px ;
56+ padding-top : 15px ;
57+ margin-bottom : 8px ;
58+ max-width : 700px ;
59+ max-height : 300px ;
4960}
5061
5162.clickable : hover {
5465
5566.card-img {
5667 margin : 30px 0 ;
57- max-width : 250 px ;
68+ max-width : 300 px ;
5869 max-height : 200px ;
5970}
6071
90101}
91102
92103.space-between {
93- justify-content : space-between ;
104+ justify-content : space-around ;
94105}
95106
96107.story-card {
97- max-width : 25 % ;
108+ max-width : 28 % ;
98109}
99110
100111@media (max-width : 1000px ) {
Original file line number Diff line number Diff line change 1818}
1919
2020.background-img {
21- max-height : 400px ;
22- max-width : 600px ;
23- margin-bottom : 30px ;
21+ max-height : 500px ;
22+ max-width : 700px ;
23+ margin-right : 10px ;
24+ margin-bottom : 0px ;
2425}
2526
2627.pause-audio {
You can’t perform that action at this time.
0 commit comments