From c005e45c1e9bd3ba084a0f96210f4f57caf5da6e Mon Sep 17 00:00:00 2001 From: Junhyeong Park Date: Sat, 18 May 2024 08:57:11 +0900 Subject: [PATCH 1/3] feat: initial page design revision --- src/app/login/page.tsx | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index b2d19c4..dff157e 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -64,20 +64,21 @@ export default function LoginPage() { return ( -
-
-
- 정책을 빠르고 쉽게 맛보다! -
- -
- -
-
+
+
+
-
-
-
+ +
+ 정책을 빠르고 쉽게 맛보다! +
+
+ +
+
+
+
+
From b53286b697956e3d27431eb6d3503842a18cf33e Mon Sep 17 00:00:00 2001 From: Junhyeong Park Date: Sat, 18 May 2024 09:07:15 +0900 Subject: [PATCH 2/3] feat: prototype showcase button --- src/app/main/page.tsx | 33 ++++++++++++++++++--------------- src/app/reviewdetails/page.tsx | 19 ++++++++++--------- 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/src/app/main/page.tsx b/src/app/main/page.tsx index debdc48..eaa83ec 100644 --- a/src/app/main/page.tsx +++ b/src/app/main/page.tsx @@ -18,6 +18,7 @@ import Pencil from "@/svgs/bluepencil.svg"; import Button from "@/components/Button/Button"; import Fab from "@/components/FAB/Fab"; import { useRouter } from "next/navigation"; +import Link from "next/link"; const Page = () => { const categoryList = [ @@ -242,21 +243,23 @@ const Page = () => {
-
- -

- 청년 통장 발급 후기 -

-

- 으뜸 관악 청년 통장 -

- - 복지∙문화 - -
+ +
+ +

+ 청년 통장 발급 후기 +

+

+ 으뜸 관악 청년 통장 +

+ + 복지∙문화 + +
+

diff --git a/src/app/reviewdetails/page.tsx b/src/app/reviewdetails/page.tsx index 5ede6c4..19c6372 100644 --- a/src/app/reviewdetails/page.tsx +++ b/src/app/reviewdetails/page.tsx @@ -13,6 +13,15 @@ import { useEffect, useState } from "react"; import { useRouter } from "next/navigation"; import { getReview } from "@/apis/api"; +interface ReviewData { + category: string; + reviewTitle: string; + createdDate: string; + writer: string; + link: string; + tips: string; + content: string; +} const ReviewDetailsPage = () => { const [isBookmarked, setIsBookmarked] = useState(false); @@ -41,14 +50,6 @@ const ReviewDetailsPage = () => { return
Loading...
; } - const fetchData = async () => { - const communityData = await getReview(); - }; - - useEffect(() => { - fetchData(); - }, []); - return (
@@ -135,7 +136,7 @@ const ReviewDetailsPage = () => {
{reviewData.content}
-
+
From 63ed37a5fee7a57da852ffec5638c44ea4fc2058 Mon Sep 17 00:00:00 2001 From: Junhyeong Park Date: Sat, 18 May 2024 10:02:23 +0900 Subject: [PATCH 3/3] feat: mainpage image allocation revision --- src/app/main/CircleIndicators.tsx | 29 +++++++++++++++++ src/app/main/page.tsx | 52 +++---------------------------- 2 files changed, 34 insertions(+), 47 deletions(-) create mode 100644 src/app/main/CircleIndicators.tsx diff --git a/src/app/main/CircleIndicators.tsx b/src/app/main/CircleIndicators.tsx new file mode 100644 index 0000000..e925ef2 --- /dev/null +++ b/src/app/main/CircleIndicators.tsx @@ -0,0 +1,29 @@ +import React from "react"; + +interface CircleColorsProps { + circleColors: string[]; + currentBannerIndex: number; +} + +const CircleIndicators: React.FC = ({ + circleColors, + currentBannerIndex, +}) => { + return ( +
+ {circleColors.map((color, index) => ( +
+ ))} +
+ ); +}; + +export default CircleIndicators; diff --git a/src/app/main/page.tsx b/src/app/main/page.tsx index eaa83ec..24d54c2 100644 --- a/src/app/main/page.tsx +++ b/src/app/main/page.tsx @@ -19,6 +19,7 @@ import Button from "@/components/Button/Button"; import Fab from "@/components/FAB/Fab"; import { useRouter } from "next/navigation"; import Link from "next/link"; +import CircleIndicators from "./CircleIndicators"; const Page = () => { const categoryList = [ @@ -30,39 +31,6 @@ const Page = () => { "💼 일자리", ]; - // const reviewList = [ - // { - // key: 1, - // title: "청년 통장 발급 후기", - // metaData: "으뜸 관악 청년 통장", - // category: "복지∙문화", - // path: "../../svgs/review1.svg", - // background: "#FFEDE0", - // color: "#FF8E3D", - // }, - // { - // key: 2, - // title: "취업 멘토링 꽤 괜찮네요", - // metaData: "관악구∙삼성전자 청년 취업 멘토링", - // category: "교육", - // path: "../../svgs/review2.svg", - // }, - // { - // key: 3, - // title: "청년주택 입주 신청했어요", - // metaData: "관악구 청년주택 입주자 추가 모집", - // category: "주거", - // path: `../../svgs/review3.svg`, - // }, - // { - // key: 4, - // title: "신림동 쓰리룸 방문 후기", - // metaData: "청년문화공간 신림동 쓰리룸 운영", - // category: "참여∙권리", - // path: "../../svgs/review4.svg", - // }, - // ]; - const [selectedAddress, setSelectedAddress] = useState(null); const handleAddressClick = (address: string) => { @@ -217,20 +185,10 @@ const Page = () => {
))}
-
- {circleColors.map((circle, index) => ( - {`Circle - ))} -
+