From 3264320e1db9ddbc3555592e9c5d87affaa8f239 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 3 Aug 2024 14:46:56 -0700 Subject: Make carousel pretty --- client/src/components/Carousel.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/client/src/components/Carousel.css b/client/src/components/Carousel.css index e2fbc1c..43f0bcf 100644 --- a/client/src/components/Carousel.css +++ b/client/src/components/Carousel.css @@ -1,12 +1,21 @@ .carousel-container { height: 100%; width: 100%; + @media(max-width: 768px) { + display: flex; + justify-content: center; + } } .carousel { overflow: hidden; height: 100%; width: 100%; + @media(max-width: 768px) { + width: 90%; + display: flex; + align-items: center; + } } .carousel-slide { @@ -21,4 +30,8 @@ width: 100%; max-height: 100vh; object-fit: cover; + @media(max-width: 768px) { + object-fit: contain; + border-radius: 16px; + } } -- cgit v1.2.3