From bf4eb02c5155b49c9477c50879abfb1990c6164d Mon Sep 17 00:00:00 2001
From: JM Kim <106949557+CSE-Shaco@users.noreply.github.com>
Date: Wed, 10 Dec 2025 17:15:40 +0900
Subject: [PATCH 1/2] fix(homecoming): modify typo for specific groups
---
src/app/homecoming/page.jsx | 47 ++++++++++++++++++++++---------------
1 file changed, 28 insertions(+), 19 deletions(-)
diff --git a/src/app/homecoming/page.jsx b/src/app/homecoming/page.jsx
index 6e602ad..13e2308 100644
--- a/src/app/homecoming/page.jsx
+++ b/src/app/homecoming/page.jsx
@@ -3,6 +3,7 @@
import {useState} from 'react';
import {GoogleMap, Marker, useJsApiLoader} from '@react-google-maps/api';
import Image from 'next/image';
+import {useSearchParams} from "next/navigation";
export default function HomecomingPage() {
const [showInvitation, setShowInvitation] = useState(false);
@@ -45,6 +46,12 @@ export default function HomecomingPage() {
Hero 컴포넌트
================================ */
function Hero({onOpenInvitation}) {
+ const searchParams = useSearchParams();
+
+ // 예: /homecoming?from=GOAT+멤버
+ const rawText = searchParams.get('from'); // 없으면 null
+ const testText = rawText ? (decodeURIComponent(rawText) + " ") : ''; // 기본값 처리
+
return (
-
-
+
GDGoC INHA
- 제1회 홈커밍데이에 초대합니다!
+ 제1회 홈커밍데이에
+
+ {testText && (<>{testText}>)}
+ 여러분을 초대합니다!
);
+ className="rounded-2xl border border-red-300 bg-red-50 text-red-700 text-xs md:text-sm flex items-center justify-center h-[220px] md:h-[320px] lg:h-[420px]">
+ 지도를 불러오는 중 오류가 발생했습니다.
+ );
}
if (!isLoaded) {
return (
- 지도를 불러오는 중입니다...
-
);
+ className="rounded-2xl border border-neutral-200 bg-neutral-100 text-neutral-500 text-xs md:text-sm flex items-center justify-center h-[220px] md:h-[320px] lg:h-[420px]">
+ 지도를 불러오는 중입니다...
+ );
}
return (
-
-
-
-
);
+ className="rounded-2xl overflow-hidden border border-neutral-200 bg-neutral-100 h-[220px] md:h-[320px] lg:h-[420px]">
+
+
+
+ );
}
\ No newline at end of file
From 88a55304dcc7ede97443032188d141279e6defa4 Mon Sep 17 00:00:00 2001
From: JM Kim <106949557+CSE-Shaco@users.noreply.github.com>
Date: Wed, 10 Dec 2025 17:24:01 +0900
Subject: [PATCH 2/2] fix(homecoming): modify typo for specific groups
---
src/app/homecoming/page.jsx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/app/homecoming/page.jsx b/src/app/homecoming/page.jsx
index 13e2308..61b70ca 100644
--- a/src/app/homecoming/page.jsx
+++ b/src/app/homecoming/page.jsx
@@ -62,9 +62,9 @@ function Hero({onOpenInvitation}) {
className="w-full max-w-2xl mt-[calc(50vh-235px)] md:mt-[100px] md:max-w-[790px]"
/>
-
- GDGoC INHA
-
+
+ GDGoC INHA{" "}
+
제1회 홈커밍데이에
{testText && (<>{testText}>)}