Commit 523f54b 1 parent f9c5dd0 commit 523f54b Copy full SHA for 523f54b
File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -2,27 +2,31 @@ interface HeaderProps {
2
2
isDeparture : boolean
3
3
}
4
4
5
- const ScheduledHeader : React . FC < HeaderProps > = ( { isDeparture } ) => {
6
- return (
7
- < div className = "container mx-auto flex justify-between space-x-4 text-white text-base" >
8
- { /* First col */ }
5
+ const ScheduledHeader : React . FC < HeaderProps > = ( { isDeparture} ) => {
6
+ return ( < >
7
+ { /* layout for smaller screens (under md) */ }
8
+ < div className = "contaienr mx-4 flex justify-between text-white text-sm md:hidden" >
9
+ < p className = "text-left" > Zug / Bus</ p >
10
+ < p className = "text-right" > Gleis</ p >
11
+ </ div >
12
+
13
+ { /* layout for greater screens (above md) */ }
14
+ < div className = "container mx-auto hidden md:flex justify-between space-x-4 text-white text-base" >
9
15
< div className = "flex-[1] text-right mr-8" >
10
16
< p > Zug / Bus</ p >
11
17
< p > Zeit</ p >
12
18
</ div >
13
19
14
- { /* Second col */ }
15
20
< div className = "flex-[4] text-left" >
16
21
< p > Über</ p >
17
22
< p > { isDeparture ? 'Ziel' : 'Herkunft' } </ p >
18
23
</ div >
19
24
20
- { /* Third col */ }
21
25
< div className = "flex-[1] flex justify-end items-end text-right" >
22
26
< p > Gleis</ p >
23
27
</ div >
24
28
</ div >
25
- )
29
+ </ > )
26
30
}
27
31
28
32
export default ScheduledHeader ;
You can’t perform that action at this time.
0 commit comments