diff --git a/src/app/main/page.tsx b/src/app/main/page.tsx
index e821801..c6ced4b 100644
--- a/src/app/main/page.tsx
+++ b/src/app/main/page.tsx
@@ -1,19 +1,20 @@
-import Banner from "../../components/sliders/Banner";
+import Banner from "@/components/sliders/Banner";
import LargeListItem from "@/components/sliders/LargeListItem";
import MediumInnerTitleItem from "@/components/sliders/MediumInnerTitleItem";
import MediumListItem from "@/components/sliders/MediumListItem";
import SmallListItem from "@/components/sliders/SmallListItem";
import { GrFormNext } from "react-icons/gr";
+import Link from 'next/link';
export default function Main() {
const MenuOptions = [
- { icon: "/assets/icons/WorkationIcon.svg", title: "워케이션", description: "공유오피스와 숙박" },
- { icon: "/assets/icons/CampingIcon.svg", title: "캠핑", description: "녹지와 푸른 숲" },
- { icon: "/assets/icons/RecreationIcon.svg", title: "휴양", description: "해변과 템플스테이" },
- { icon: "/assets/icons/MapIcon.svg", title: "지도선택", description: "탐색" },
- { icon: "/assets/icons/LeisureIcon.svg", title: "레저", description: "스포츠와 놀이" },
- { icon: "/assets/icons/FestivalIcon.svg", title: "지역축제", description: "강원 페스티벌" },
+ { icon: "/assets/icons/WorkationIcon.svg", title: "워케이션", description: "공유오피스와 숙박", url:"/workation" },
+ { icon: "/assets/icons/CampingIcon.svg", title: "캠핑", description: "녹지와 푸른 숲", url:"/camping" },
+ { icon: "/assets/icons/RecreationIcon.svg", title: "휴양", description: "해변과 템플스테이", url:"/resort" },
+ { icon: "/assets/icons/MapIcon.svg", title: "지도선택", description: "탐색", url:"/select-map" },
+ { icon: "/assets/icons/LeisureIcon.svg", title: "레저", description: "스포츠와 놀이", url:"/leisure" },
+ { icon: "/assets/icons/FestivalIcon.svg", title: "지역축제", description: "강원 페스티벌", url:"/festival" },
];
const largeListItem = [
@@ -52,6 +53,16 @@ export default function Main() {
{ label: "강릉 모던 프라이빗 공간 | 휴휴가", imgurl: "/hotelImage.png", addr: "강릉시 황리단 민속마을" },
];
+ function season (){
+ const today = new Date();
+ const month = Number(today.getMonth()+1);
+
+ if(3 <= month && month <= 4) return "봄";
+ else if (5 <= month && month <= 8) return "여름";
+ else if (9 <= month && month <= 10) return "가을";
+ else if (11 <= month && month <= 12 || 1 <= month && month <=2 ) return "겨울";
+ }
+
return (
@@ -61,10 +72,10 @@ export default function Main() {
@@ -77,11 +88,13 @@ export default function Main() {
원하는 휴일을 선택하세요
{MenuOptions.map((option, index) => (
+
{option.title}
{option.description}
+
))}
@@ -101,9 +114,11 @@ export default function Main() {
놀면서 일하자!
인기 워케이션
+
+
@@ -115,10 +130,12 @@ export default function Main() {
-
강원도의 가을 축제
-
+
강원도의 {season()} 축제
+
+
+
{smallListItems.map((item, index) => (
@@ -133,9 +150,11 @@ export default function Main() {
놀면서 일하자!
인기 워케이션
+
+
#호캉스 #프라이빗 공간
@@ -148,9 +167,11 @@ export default function Main() {
{mediumListItems.map((item, index) => (
diff --git a/src/app/mypage/alert/page.tsx b/src/app/mypage/alert/page.tsx
index f402bc8..7529869 100644
--- a/src/app/mypage/alert/page.tsx
+++ b/src/app/mypage/alert/page.tsx
@@ -1,12 +1,19 @@
+"use client";
import { GrPrevious } from "react-icons/gr";
-import CategoryTitle from "@/components/common/CategoryTitle";
+import { useRouter } from "next/navigation";
export default function Alert() {
+ const router = useRouter();
+
+ const handleBack = () => {
+ router.back();
+ };
+
return (
diff --git a/src/app/mypage/like/page.tsx b/src/app/mypage/like/page.tsx
index 4a53e9f..eac849e 100644
--- a/src/app/mypage/like/page.tsx
+++ b/src/app/mypage/like/page.tsx
@@ -1,5 +1,6 @@
+"use client";
import Image from 'next/image';
-import CategoryTitle from "@/components/common/CategoryTitle";
+import { useRouter } from "next/navigation";
import { GrPrevious } from "react-icons/gr";
const LikeList = [
@@ -8,10 +9,16 @@ const LikeList = [
];
export default function Like() {
+ const router = useRouter();
+
+ const handleBack = () => {
+ router.back();
+ };
+
return (
diff --git a/src/app/mypage/notice/page.tsx b/src/app/mypage/notice/page.tsx
index a992fb2..8519d71 100644
--- a/src/app/mypage/notice/page.tsx
+++ b/src/app/mypage/notice/page.tsx
@@ -1,13 +1,21 @@
+"use client";
import { GrPrevious } from "react-icons/gr";
-import CategoryTitle from "@/components/common/CategoryTitle";
+import { useRouter } from "next/navigation";
export default function Notice() {
+ const router = useRouter();
+
+ const handleBack = () => {
+ router.back();
+ };
+
return (
diff --git a/src/app/mypage/page.tsx b/src/app/mypage/page.tsx
index 8d754d4..23cff5e 100644
--- a/src/app/mypage/page.tsx
+++ b/src/app/mypage/page.tsx
@@ -1,12 +1,21 @@
+"use client";
import { GrPrevious } from "react-icons/gr";
import { GrFormNext } from "react-icons/gr";
import Image from 'next/image';
+import Link from 'next/link';
+import { useRouter } from "next/navigation";
export default function MyPage() {
+ const router = useRouter();
+
+ const handleBack = () => {
+ router.back();
+ };
+
return (
@@ -22,29 +31,37 @@ export default function MyPage() {
-
+
+
+
|
-
+
+
+
|
-
+
+
+
내 정보
+
+
나의 워케이션 취향
@@ -53,10 +70,12 @@ export default function MyPage() {