From 57b1854afbc462a5edb2f4090eb2ebe24df3df2b Mon Sep 17 00:00:00 2001 From: Huh Hyeongjun Date: Mon, 24 Feb 2025 23:05:52 +0900 Subject: [PATCH] feat: add icon --- package-lock.json | 10 ++++++++++ package.json | 1 + src/components/button/BottomButton.tsx | 9 ++++++--- src/components/map/SelectMap.tsx | 26 +++++++++++++++++++++++--- src/ui/App.tsx | 10 ++++++++-- 5 files changed, 48 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 92304fb..6a44889 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "@react-three/fiber": "^9.0.4", "@types/three": "^0.173.0", "leaflet": "^1.9.4", + "lucide-react": "^0.475.0", "react": "^19.0.0", "react-dom": "^19.0.0", "react-leaflet": "^5.0.0", @@ -2979,6 +2980,15 @@ "yallist": "^3.0.2" } }, + "node_modules/lucide-react": { + "version": "0.475.0", + "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.475.0.tgz", + "integrity": "sha512-NJzvVu1HwFVeZ+Gwq2q00KygM1aBhy/ZrhY9FsAgJtpB+E4R7uxRk9M2iKvHa6/vNxZydIB59htha4c2vvwvVg==", + "license": "ISC", + "peerDependencies": { + "react": "^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0" + } + }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", diff --git a/package.json b/package.json index d87f4b6..c8814d2 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@react-three/fiber": "^9.0.4", "@types/three": "^0.173.0", "leaflet": "^1.9.4", + "lucide-react": "^0.475.0", "react": "^19.0.0", "react-dom": "^19.0.0", "react-leaflet": "^5.0.0", diff --git a/src/components/button/BottomButton.tsx b/src/components/button/BottomButton.tsx index 2b38937..fa5c070 100644 --- a/src/components/button/BottomButton.tsx +++ b/src/components/button/BottomButton.tsx @@ -28,7 +28,9 @@ export function NextButton(props: ButtonProps) { outline: "rgba(240, 240, 244, 0.51) solid 0.1rem", cursor: "pointer", transition: "0.2s", - display: props.isShow ? "" : "none", + display: props.isShow ? "flex" : "none", + alignItems: "center", + gap: "0.5rem", ":hover": { backgroundColor: "#ebeef0c2", }, @@ -63,8 +65,9 @@ export function PrevButton(props: ButtonProps) { outline: "rgba(240, 240, 244, 0.51) solid 0.1rem", cursor: "pointer", transition: "0.2s", - display: props.isShow ? "" : "none", - + display: props.isShow ? "flex" : "none", + alignItems: "center", + gap: "0.5rem", ":hover": { backgroundColor: "#ebeef0c2", }, diff --git a/src/components/map/SelectMap.tsx b/src/components/map/SelectMap.tsx index 6b472a9..0e58d4c 100644 --- a/src/components/map/SelectMap.tsx +++ b/src/components/map/SelectMap.tsx @@ -8,6 +8,12 @@ import { import L, { LatLng, LatLngBounds } from "leaflet"; import "leaflet/dist/leaflet.css"; import { css } from "@emotion/react"; +import { CircleMinus, MousePointerClick } from "lucide-react"; + +const IconSize = css({ + width: "14px", + height: "14px", +}); function RectangleSelector({ isDrag = true, @@ -95,7 +101,7 @@ export function MapComponent({ > @@ -160,3 +171,12 @@ export function MapComponent({ ); } + +function SelectBox() { + return ( + <> + + Select Box + + ); +} diff --git a/src/ui/App.tsx b/src/ui/App.tsx index f3b0d6f..fbb232c 100644 --- a/src/ui/App.tsx +++ b/src/ui/App.tsx @@ -8,6 +8,12 @@ import { MapComponent } from "@/components/map/SelectMap"; import { useState } from "react"; import { NextButton, PrevButton } from "@/components/button/BottomButton"; import { BuildingHeights } from "@/components/map/Processing"; +import { ChevronLeft, ChevronRight } from "lucide-react"; + +const IconSize = css({ + width: "14px", + height: "14px", +}); function App() { const [isNextButtonDisabled, setIsNextButtonDisabled] = useState(true); @@ -64,7 +70,7 @@ function App() { - Prev Step + Prev Step - Next Step + Next Step