summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-08-03 14:46:56 -0700
committerMichael Hunteman <michael@huntm.net>2024-08-03 14:46:56 -0700
commit3264320e1db9ddbc3555592e9c5d87affaa8f239 (patch)
tree47819c1b292fdd941babe4f1b2d5d1bdc241440b
parent4bce5dd05cf804f416e84c85feaad70ce49b26d0 (diff)
Make carousel pretty
-rw-r--r--client/src/components/Carousel.css13
1 files changed, 13 insertions, 0 deletions
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;
+ }
}