diff --git a/public/branch/branch1-1.png b/public/branch/branch1-1.png new file mode 100644 index 0000000..9eed0f4 Binary files /dev/null and b/public/branch/branch1-1.png differ diff --git a/public/branch/branch1-2.png b/public/branch/branch1-2.png new file mode 100644 index 0000000..0195c4c Binary files /dev/null and b/public/branch/branch1-2.png differ diff --git a/public/branch/branch1.png b/public/branch/branch1.png new file mode 100644 index 0000000..8563a1b Binary files /dev/null and b/public/branch/branch1.png differ diff --git a/public/branch/branch2-1.png b/public/branch/branch2-1.png new file mode 100644 index 0000000..797a6c3 Binary files /dev/null and b/public/branch/branch2-1.png differ diff --git a/public/branch/branch2-2.png b/public/branch/branch2-2.png new file mode 100644 index 0000000..2986652 Binary files /dev/null and b/public/branch/branch2-2.png differ diff --git a/public/branch/branch2.png b/public/branch/branch2.png new file mode 100644 index 0000000..6e1d74b Binary files /dev/null and b/public/branch/branch2.png differ diff --git a/public/branch/branch3-1.png b/public/branch/branch3-1.png new file mode 100644 index 0000000..ed0da97 Binary files /dev/null and b/public/branch/branch3-1.png differ diff --git a/public/branch/branch3-2.png b/public/branch/branch3-2.png new file mode 100644 index 0000000..5ffbc1e Binary files /dev/null and b/public/branch/branch3-2.png differ diff --git a/public/branch/branch3.png b/public/branch/branch3.png new file mode 100644 index 0000000..da607ce Binary files /dev/null and b/public/branch/branch3.png differ diff --git a/public/office/check.svg b/public/office/check.svg new file mode 100644 index 0000000..1bea89c --- /dev/null +++ b/public/office/check.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/public/office/focus.png b/public/office/focus.png new file mode 100644 index 0000000..fa2715b Binary files /dev/null and b/public/office/focus.png differ diff --git a/public/office/medium1.png b/public/office/medium1.png new file mode 100644 index 0000000..1173875 Binary files /dev/null and b/public/office/medium1.png differ diff --git a/public/office/medium2.png b/public/office/medium2.png new file mode 100644 index 0000000..5cafe94 Binary files /dev/null and b/public/office/medium2.png differ diff --git a/public/office/medium3.png b/public/office/medium3.png new file mode 100644 index 0000000..003809d Binary files /dev/null and b/public/office/medium3.png differ diff --git a/public/office/mini1.png b/public/office/mini1.png new file mode 100644 index 0000000..77c3888 Binary files /dev/null and b/public/office/mini1.png differ diff --git a/public/office/mini2.png b/public/office/mini2.png new file mode 100644 index 0000000..4f19a1a Binary files /dev/null and b/public/office/mini2.png differ diff --git a/public/office/mini3.png b/public/office/mini3.png new file mode 100644 index 0000000..3b9f23a Binary files /dev/null and b/public/office/mini3.png differ diff --git a/public/office/people.svg b/public/office/people.svg new file mode 100644 index 0000000..413ddc3 --- /dev/null +++ b/public/office/people.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/public/office/recharge.png b/public/office/recharge.png new file mode 100644 index 0000000..e70c553 Binary files /dev/null and b/public/office/recharge.png differ diff --git a/public/office/standard1.png b/public/office/standard1.png new file mode 100644 index 0000000..7cc3b7f Binary files /dev/null and b/public/office/standard1.png differ diff --git a/public/office/standard2.png b/public/office/standard2.png new file mode 100644 index 0000000..2c678be Binary files /dev/null and b/public/office/standard2.png differ diff --git a/public/office/standard3.png b/public/office/standard3.png new file mode 100644 index 0000000..fa94ade Binary files /dev/null and b/public/office/standard3.png differ diff --git a/public/office/state1.png b/public/office/state1.png new file mode 100644 index 0000000..1341a68 Binary files /dev/null and b/public/office/state1.png differ diff --git a/public/office/state2.png b/public/office/state2.png new file mode 100644 index 0000000..1dd52e9 Binary files /dev/null and b/public/office/state2.png differ diff --git a/public/office/state3.png b/public/office/state3.png new file mode 100644 index 0000000..0fe207f Binary files /dev/null and b/public/office/state3.png differ diff --git a/src/components/map/BranchInfo.tsx b/src/components/map/BranchInfo.tsx index 47a05c4..5997d0b 100644 --- a/src/components/map/BranchInfo.tsx +++ b/src/components/map/BranchInfo.tsx @@ -19,7 +19,7 @@ const BranchInfo: React.FC = () => { const [urgentNotice, setUrgentNotice] = useState<{ title: string; content: string } | null>(null); const [currentSlide, setCurrentSlide] = useState(1); - const totalSlides = 3; + const totalSlides = 2; const branchName = router.query.name as string; const address = router.query.address as string; @@ -27,9 +27,14 @@ const BranchInfo: React.FC = () => { const roadFromStation = router.query.roadFromStation as string; const stationToBranch = router.query.stationToBranch as string; const branchId = router.query.branchId; + const branchImage = router.query.image as string; const numericBranchId = Array.isArray(branchId) ? parseInt(branchId[0], 10) : parseInt(branchId as string, 10); + const [activeTab, setActiveTab] = useState('meetingRoom'); + + const imagePrefix = (branchImage || '').replace('.png', ''); + console.log(branchId); console.log(numericBranchId) @@ -103,7 +108,10 @@ const BranchInfo: React.FC = () => { const data = await getSelectedOfficeInfo(branchName); if (data.data) { setReservedBranch(data?.data, Date.now()); - router.push('/reservation'); + router.push({ + pathname: '/reservation', + query: { tab: activeTab }, + }); } } catch (error) { console.error('Error updating selected branch:', error); @@ -147,7 +155,7 @@ const BranchInfo: React.FC = () => { onSlideChange={(swiper) => setCurrentSlide(swiper.realIndex + 1)}> Office Image 1 { Office Image 2 { {currentSlide} / {totalSlides} - - Office Image 3 -
- {currentSlide} / {totalSlides} -
-
@@ -250,7 +246,7 @@ const BranchInfo: React.FC = () => {
공용 공간 리스트
- +
@@ -345,9 +341,9 @@ const BranchInfo: React.FC = () => {
공지사항
-