fixed header responsive styling

This commit is contained in:
andres alcocer
2021-10-09 15:32:50 -04:00
parent 4ba996f865
commit cf920be00f
2 changed files with 26 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import UnmuteIcon from '../static/images/unmute.svg'
import ReactPlayer from 'react-player' import ReactPlayer from 'react-player'
const Header = ({ movie: { name, overview } }) => { const Header = ({ movie: { name, overview } }) => {
const [isMuted, setIsMuted] = useState(false) const [isMuted, setIsMuted] = useState(true)
return ( return (
<header className='header'> <header className='header'>

View File

@@ -7,7 +7,8 @@
padding-top: 56.25%; padding-top: 56.25%;
@include responsive(phone) { @include responsive(phone) {
height: 58rem; padding-top: 0;
height: 32rem;
} }
&__video { &__video {
@@ -29,6 +30,11 @@
color: #fff; color: #fff;
top: 12rem; top: 12rem;
left: 3.5rem; left: 3.5rem;
@include responsive(phone) {
top: 7rem;
font-size: 3rem;
}
} }
&-btnPlay, &-btnPlay,
@@ -48,6 +54,10 @@
background-color: rgba(112, 111, 111, 0.5); background-color: rgba(112, 111, 111, 0.5);
padding-bottom: 1rem; padding-bottom: 1rem;
@include responsive(phone) {
top: 24rem;
}
&-add { &-add {
width: 15px; width: 15px;
height: 15px; height: 15px;
@@ -97,6 +107,14 @@
border: #fff solid 1px; border: #fff solid 1px;
transition: all 0.3s; transition: all 0.3s;
@include responsive(tab_medium) {
top: 30rem;
}
@include responsive(phone) {
top: 20rem;
right: 8rem;
}
& > * { & > * {
stroke: #fff; stroke: #fff;
stroke-width: 1; stroke-width: 1;
@@ -117,10 +135,15 @@
line-height: 1.3; line-height: 1.3;
padding-top: 2.5rem; padding-top: 2.5rem;
font-size: 1.8rem; font-size: 1.8rem;
@include responsive(phone) {
top: 10rem;
width: 20rem;
}
} }
&--fadeBottom { &--fadeBottom {
z-index: 100000000000; // z-index: 100000000000;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
height: 10rem; height: 10rem;