Skip to content

Commit

Permalink
design : 마커 디자인 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jinoo0306 committed Jun 13, 2024
1 parent ff32b8f commit caee6c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/app/components/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { iconClassnameProps } from '@/types/component.ts';
import Image from 'next/image';

export function GpsIcon({ className }: iconClassnameProps) {
return (
Expand Down Expand Up @@ -71,3 +72,14 @@ export function CameraIcon({ className }: iconClassnameProps) {
</svg>
);
}

export function Marker({ className }: iconClassnameProps) {
<figure className={`relative ${className}`}>
<Image
src="https://i.ibb.co/sCQvt3z/Group-2608599.png"
alt=""
fill
sizes="100vw"
/>
</figure>;
}
2 changes: 1 addition & 1 deletion src/app/home/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function Distance() {
position={{ lat: marker.lat, lng: marker.lng }}
onClick={() => handleMain(marker)}
image={{
src: 'https://i.ibb.co/Cnwf3x8/image.png',
src: 'https://i.ibb.co/sCQvt3z/Group-2608599.png',
size: { width: 64, height: 70 },
options: { offset: { x: 27, y: 69 } },
}}
Expand Down

0 comments on commit caee6c1

Please sign in to comment.