From fbbf34b71cf1c2cb38131661feb0d7acc75af39c Mon Sep 17 00:00:00 2001 From: Kwon DaeGeun Date: Tue, 11 Nov 2025 15:48:28 +0900 Subject: [PATCH 1/2] =?UTF-8?q?refactor:=20=ED=8C=A8=EB=84=90=20=EB=B9=88?= =?UTF-8?q?=20=EA=B3=B5=EA=B0=84=20=EC=A0=9C=EA=B1=B0=20=EB=B0=8F=20?= =?UTF-8?q?=EB=B2=84=EC=8A=A4=20=EC=95=84=EC=9D=B4=EC=BD=98=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/busIcon.svg | 12 ++++++++++++ src/components/BusStopsPanel.tsx | 6 ++++++ src/components/MapContainer.tsx | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/assets/busIcon.svg diff --git a/src/assets/busIcon.svg b/src/assets/busIcon.svg new file mode 100644 index 0000000..fb39fd1 --- /dev/null +++ b/src/assets/busIcon.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/components/BusStopsPanel.tsx b/src/components/BusStopsPanel.tsx index d730329..f73386b 100644 --- a/src/components/BusStopsPanel.tsx +++ b/src/components/BusStopsPanel.tsx @@ -17,12 +17,18 @@ export const BusStopsPanel = ({ return (
+
{children}
); From a5fc553bde6f7f4ad7f42c62a31fb682162fffad Mon Sep 17 00:00:00 2001 From: Kwon DaeGeun Date: Tue, 11 Nov 2025 15:57:24 +0900 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=EB=B2=84=EC=8A=A4=20=EC=95=84?= =?UTF-8?q?=EC=9D=B4=EC=BD=98=20=EB=8C=80=EC=B9=98=20=EB=B0=8F=20=ED=8C=A8?= =?UTF-8?q?=EB=84=90=20=EC=95=84=EC=9D=B4=EC=BD=98=20=ED=85=8D=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=EC=A0=95=EB=A0=AC=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BusStops.tsx | 14 ++++++++------ src/utils/mapOverlays.ts | 13 +++++++++---- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/components/BusStops.tsx b/src/components/BusStops.tsx index 1daec2d..fde2f7d 100644 --- a/src/components/BusStops.tsx +++ b/src/components/BusStops.tsx @@ -1,6 +1,7 @@ -import { Bus, ChevronDown } from "lucide-react"; +import { ChevronDown } from "lucide-react"; import { useEffect, useId, useRef, useState } from "react"; import type { BusStop } from "../data/busStops"; +import busIconSvg from "../assets/busIcon.svg"; type Props = { busStops: BusStop[]; @@ -74,7 +75,7 @@ export default function BusStops({ className="group inline-flex w-full cursor-pointer items-center justify-between gap-3 rounded-lg border-0 bg-transparent px-4 py-3 transition-all duration-200 hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-60" >
-
+
-
- + 버스
void; @@ -168,8 +169,8 @@ export const createBusOverlays = ( return buses.map((bus) => { const busDiv = document.createElement("div"); - busDiv.style.width = "32px"; - busDiv.style.height = "32px"; + busDiv.style.width = "24px"; + busDiv.style.height = "46px"; busDiv.style.display = "flex"; busDiv.style.alignItems = "center"; busDiv.style.justifyContent = "center"; @@ -177,8 +178,12 @@ export const createBusOverlays = ( busDiv.setAttribute("role", "img"); busDiv.setAttribute("aria-label", bus.shuttleId || "bus"); - const iconSVG = createIconSVG("bus"); - busDiv.appendChild(iconSVG); + const img = document.createElement("img"); + img.src = busIconSvg; + img.alt = "버스"; + img.style.width = "24px"; + img.style.height = "46px"; + busDiv.appendChild(img); const busPosition = new window.kakao.maps.LatLng(bus.lat, bus.lng); const busOverlay = new window.kakao.maps.CustomOverlay({