Skip to content

Commit

Permalink
design: 배너 이미지 변경 및 반응형 구현 (#348) (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yejin0O0 authored Dec 19, 2024
1 parent 2be9d44 commit 03f6504
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions components/MainBannerCarousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,24 @@ function MainBannerCarousel() {
>
<CarouselContent>
{imageUrl.map((url, index) => (
<CarouselItem key={url} className="w-full h-[346px]">
<CarouselItem key={url} className="w-full">
<img
src={`${url}`}
alt={`banner ${index + 1}`}
className="w-[1048px] h-[346px] object-fit rounded-lg"
className="w-full h-auto max-h-[346px] sm:max-h-[300px] md:max-h-[400px] lg:max-h-[500px] object-cover rounded-lg"
/>
</CarouselItem>
))}
</CarouselContent>
</Carousel>
<div className="flex justify-center space-x-2 mt-4 gap-2">
{Array.from({ length: count }).map((_, index) => (
{Array.from({ length: count }).map((number, index) => (
<button
type="button"
key={`dots-${
// biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
index
}`}
key={`dots-${number}`}
className={`w-2 h-2 rounded-full transition-colors duration-200 ${
index === current ? "bg-primary" : "bg-gray-300"
}`}
} md:w-3 md:h-3`}
onClick={() => scrollTo(index)}
/>
))}
Expand Down
Binary file modified public/images/banner-match.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/banner-polite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/banner-process.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/banner-rules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 03f6504

Please sign in to comment.