From a58512fd860b255a20b84a091b167855da105a22 Mon Sep 17 00:00:00 2001 From: Musix Date: Mon, 4 Dec 2023 00:00:56 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=9A=A8=20Fix(#310):=20=EB=A9=94?= =?UTF-8?q?=EC=9D=B8=ED=8E=98=EC=9D=B4=EC=A7=80=20QA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/page.tsx | 155 ++++++++++++----------------- src/constants/selectorItems.ts | 1 + src/services/steady/getSteadies.ts | 2 +- 3 files changed, 65 insertions(+), 93 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 8c3e9ede..7238ba59 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -294,6 +294,18 @@ const Home = () => { } }, []); + useEffect(() => { + const handleResize = () => { + setModalOpen(false); + }; + + window.addEventListener("resize", handleResize); + + return () => { + window.removeEventListener("resize", handleResize); + }; + }, []); + const bannerDefaultStyle = "duration-1500 absolute left-0 top-0 flex h-250 md:h-300 lg:h-350 w-full justify-center transition-opacity"; const bannerValidStyle = "opacity-100 transition-opacity ease-in"; @@ -708,102 +720,61 @@ const Home = () => { -
- ({ - value: stack.id.toString(), - label: stack.name, - }))} - onSelectedChange={(value) => - setStack(value.map((item) => item.label).join(",")) - } - className="w-220" - /> - ({ - value: position.name, - label: position.name, - }))} - onSelectedChange={(value) => - setPosition(value.map((item) => item.label).join(",")) - } - className="w-220" - /> - setMode(value)} - /> -
- {isAuth && ( +
+
+
+ ({ + value: stack.id.toString(), + label: stack.name, + }))} + onSelectedChange={(value) => + setStack(value.map((item) => item.label).join(",")) + } + className="w-220" + /> + ({ + value: position.name, + label: position.name, + }))} + onSelectedChange={(value) => + setPosition(value.map((item) => item.label).join(",")) + } + className="w-220" + /> + {/* setMode(value)} + /> */} +
+
+
+
- )} - {!isAuth && ( - - 로그인 - - } - /> - } - trigger={ - - } +
+
+
-
- -
-
- + 초기화 + +
diff --git a/src/constants/selectorItems.ts b/src/constants/selectorItems.ts index b98f2452..17ef42d5 100644 --- a/src/constants/selectorItems.ts +++ b/src/constants/selectorItems.ts @@ -16,6 +16,7 @@ export const steadyParticipantsLimit = [ ]; export const steadyRunningMethods = [ + { value: "0", label: "전체" }, { value: "OFFLINE", label: "오프라인" }, { value: "ONLINE", label: "온라인" }, { value: "BOTH", label: "혼합" }, diff --git a/src/services/steady/getSteadies.ts b/src/services/steady/getSteadies.ts index 37bc00f9..30c30c3f 100644 --- a/src/services/steady/getSteadies.ts +++ b/src/services/steady/getSteadies.ts @@ -19,7 +19,7 @@ const getSteadies = async ( }${keyword !== "" ? `&keyword=${keyword}` : ""}${ stack !== "" ? `&stack=${stack}` : "" }${position !== "" ? `&position=${position}` : ""}${ - mode !== "" ? `&steadyMode=${mode}` : "" + mode !== "0" ? `&steadyMode=${mode}` : "" }${recruit ? `&status=RECRUITING` : ""}${ deadline ? `&direction=asc&criteria=deadline` : "" }`, From 3f1913f2b5bcf3aa920d4e060386fca8b2a780d1 Mon Sep 17 00:00:00 2001 From: Musix Date: Mon, 4 Dec 2023 10:36:45 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=A8=20Fix(#310):=20=ED=95=84?= =?UTF-8?q?=ED=84=B0=20=EB=A0=88=EC=9D=B4=EC=95=84=EC=9B=83=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/page.tsx | 133 ++++++++++++++++++++++++++++++++++++----------- 1 file changed, 102 insertions(+), 31 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 7238ba59..9099456f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -57,7 +57,7 @@ const Home = () => { const [deadline, setDeadline] = useState(false); const [stack, setStack] = useState(""); const [position, setPosition] = useState(""); - const [mode, setMode] = useState(""); + const [mode, setMode] = useState("0"); const { isAuth } = useAuthStore(); const [isInitialRender, setIsInitialRender] = useState(true); const rankImageArray = [ @@ -210,7 +210,7 @@ const Home = () => { const setToInitialState = () => { setStack(""); setPosition(""); - setMode(""); + setMode("0"); setLike(false); setRecruit(true); }; @@ -722,35 +722,106 @@ const Home = () => {
-
- ({ - value: stack.id.toString(), - label: stack.name, - }))} - onSelectedChange={(value) => - setStack(value.map((item) => item.label).join(",")) - } - className="w-220" - /> - ({ - value: position.name, - label: position.name, - }))} - onSelectedChange={(value) => - setPosition(value.map((item) => item.label).join(",")) - } - className="w-220" - /> - {/* setMode(value)} - /> */} +
+
+ 기술 스택 + ({ + value: stack.id.toString(), + label: stack.name, + }))} + onSelectedChange={(value) => + setStack(value.map((item) => item.label).join(",")) + } + className="w-300" + /> +
+
+ 모집 분야 + ({ + value: position.name, + label: position.name, + }))} + onSelectedChange={(value) => + setPosition(value.map((item) => item.label).join(",")) + } + className="w-300" + /> +
+ +
+ 진행 방식 +
+
setMode("0")} + > + 전체 +
+
setMode("offline")} + > + 오프라인 +
+
setMode("online")} + > + 온라인 +
+
setMode("both")} + > + 혼합 +
+
+
+
+ 모집 현황 +
+
+ +
+
+ +
+
+