Skip to content

Commit

Permalink
Merge pull request #324 from KKangHHee/test
Browse files Browse the repository at this point in the history
Docs: 축제 배너 제거
  • Loading branch information
marinesnow34 authored May 27, 2024
2 parents 99de723 + 1402bdd commit 1007e89
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
24 changes: 13 additions & 11 deletions src/components/views/Home/Banner/Banner.jsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import Slider from "react-slick";
import "slick-carousel/slick/slick-theme.css";
import "slick-carousel/slick/slick.css";
import { IMAGES } from "../../../../constants/images";
import "./Banner.css";

const Banner = () => {
const navigate = useNavigate();
const eventBanners = [
// { bannerImg: "https://readyvery.com/statics/images/event/ic_home_event1.png" },
// { bannerImg: "https://readyvery.com/statics/images/event/ic_home_event2.png" },
// { bannerImg: "https://readyvery.com/statics/images/event/ic_home_event3.png" },
{ bannerImg: IMAGES.banner_img },
{ bannerImg: IMAGES.banner2_img },
{
bannerImg:
"https://readyvery.com/statics/images/event/ic_home_event1.png",
},
{
bannerImg:
"https://readyvery.com/statics/images/event/ic_home_event2.png",
},
{
bannerImg:
"https://readyvery.com/statics/images/event/ic_home_event3.png",
},
];

const [currentIndex, setCurrentIndex] = useState(0);
Expand All @@ -31,14 +35,12 @@ const Banner = () => {
return (
<div className="home_event">
<div className="home_event_slider_benner_wrapper">
<Slider {...settings} >
<Slider {...settings}>
{eventBanners.map((item) => {
return (
<div
className="home_event_slider_benner"
key={item}
// onClick={() => navigate(`/search`)}
onClick={() => navigate(`/booth`)}
>
<img src={item.bannerImg} alt={`Banner ${item}`} />
</div>
Expand Down
4 changes: 0 additions & 4 deletions src/constants/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,4 @@ export const IMAGES = {
check_red: require("../assets/images/check_red.png"),
check_x_red: require("../assets/images/check_x_red.png"),
find_logo: require("../assets/images/ic_find_logo.png"),

// 축제 배너 이미지 하드
banner_img: require("../assets/images/banner_readybarry.png"),
banner2_img: require("../assets/images/banner2_readybarry.png"),
};

0 comments on commit 1007e89

Please sign in to comment.