diff --git a/src/app/(pages)/(landing)/_components/Intro.tsx b/src/app/(pages)/(landing)/_components/Intro.tsx index 0dcbf29..4ae03d7 100644 --- a/src/app/(pages)/(landing)/_components/Intro.tsx +++ b/src/app/(pages)/(landing)/_components/Intro.tsx @@ -20,9 +20,11 @@ export default function Intro() { @@ -42,7 +45,8 @@ export default function Intro() { @@ -53,7 +57,8 @@ export default function Intro() { @@ -62,23 +67,26 @@ export default function Intro() { -
@@ -88,7 +96,8 @@ export default function Intro() { @@ -107,7 +116,8 @@ export default function Intro() { @@ -126,7 +136,8 @@ export default function Intro() { @@ -143,6 +154,5 @@ export default function Intro() {
- ); } diff --git a/src/app/(pages)/(landing)/_components/demo.module.css b/src/app/(pages)/(landing)/_components/demo.module.css index c18b5a4..b99383b 100644 --- a/src/app/(pages)/(landing)/_components/demo.module.css +++ b/src/app/(pages)/(landing)/_components/demo.module.css @@ -34,6 +34,12 @@ border-radius: 10px; } +.allBtnContainer { + width: 100%; + display: flex; + justify-content: center; +} + .allBtn { width: 140px; height: 36px; diff --git a/src/app/(pages)/(landing)/_components/demo.tsx b/src/app/(pages)/(landing)/_components/demo.tsx index 2622839..cefd15f 100644 --- a/src/app/(pages)/(landing)/_components/demo.tsx +++ b/src/app/(pages)/(landing)/_components/demo.tsx @@ -1,11 +1,12 @@ "use client"; -import { useState } from "react"; +import { useState, useRef } from "react"; import styles from "./demo.module.css"; import { Swiper, SwiperSlide } from "swiper/react"; import type { Swiper as SwiperType } from "swiper"; import { ArrowLeftOutlined, ArrowRightOutlined } from "@ant-design/icons"; import Link from "next/link"; +import { motion } from "motion/react"; import { Navigation } from "swiper/modules"; import "swiper/css"; @@ -20,6 +21,7 @@ import exhibition from "../../../../../public/images/mock/exhibition.png"; import wedding from "../../../../../public/images/mock/wedding.png"; export default function Demo() { + const scrollRef = useRef(null); const [swiperIndex, setSwiperIndex] = useState(0); const [swiper, setSwiper] = useState(); @@ -40,13 +42,50 @@ export default function Demo() { }; return (
-
- 4Q 활용 -
예시
-
- - 전체보기 - + + + 4Q 활용 + + + 예시 + + + + + 전체보기 + +