diff --git a/src/components/Arrow.js b/src/components/Arrow.js index 373f810a..c1128532 100644 --- a/src/components/Arrow.js +++ b/src/components/Arrow.js @@ -4,11 +4,12 @@ import './Arrow.css' // left?: boolean export function Arrow(props) { return ( -
- + -
+ `}}> + ) } diff --git a/src/components/Card.css b/src/components/Card.css index c3f24f63..710f0e49 100644 --- a/src/components/Card.css +++ b/src/components/Card.css @@ -1,28 +1,26 @@ .card { background-color: #22232A; padding: 3rem 4rem; - width: 39rem; - max-width: 100%; margin: 0 3rem; border-radius: 10px; box-sizing: border-box; - transition: height 500ms ease-in-out, transform 800ms ease-in-out, opacity 800ms ease-in-out; + transition: height 500ms ease-in-out; } -.card.full { - width: 75rem; +.card-wrapper.full { + width: 81rem; } .card-wrapper { transition: height 500ms ease-in-out; overflow: hidden; + width: 45rem; + max-width: 100%; } -.card.doTransition { - opacity: 0; - transform: translateY(-.7rem); -} -.card.doTransition.show { - opacity: 1; - transform: translateY(0rem); +@media screen and (max-width: 700px) { + .card { + margin: 0; + padding: 3rem 2rem; + } } \ No newline at end of file diff --git a/src/components/Card.js b/src/components/Card.js index c7b73e9b..1df754e0 100644 --- a/src/components/Card.js +++ b/src/components/Card.js @@ -17,10 +17,10 @@ export function Card(props) { }, [props.show, measureRef]) return ( -
-
+
{props.children}
diff --git a/src/components/InputBox.css b/src/components/InputBox.css index ef774ce0..d96ddf08 100644 --- a/src/components/InputBox.css +++ b/src/components/InputBox.css @@ -25,6 +25,7 @@ padding: .7rem 1.5rem; height: auto; flex: 1; + box-sizing: border-box; } .inputSearchButton { @@ -70,3 +71,23 @@ .inputSearchButton:active { background-color: #8b286a; } + +@media screen and (max-width: 700px) { + .inputBar { + flex-direction: column; + align-items: flex-start; + height: auto; + } + + .inputBar > *:nth-child(n) { + border-radius: 10px !important; + } + + .inputSearchButton { + margin-top: .5rem; + } + + .inputTextBox { + width: 100%; + } +} diff --git a/src/components/MovieRow.css b/src/components/MovieRow.css index 824aca4c..6f634f28 100644 --- a/src/components/MovieRow.css +++ b/src/components/MovieRow.css @@ -42,4 +42,14 @@ .movieRow:hover .watch .arrow { transform: translateX(.3rem) translateY(.1rem); -} \ No newline at end of file +} + +@media screen and (max-width: 400px) { + .movieRow { + flex-direction: column; + } + + .movieRow .watch { + margin-top: .5rem; + } +}