-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathResultList.tsx
More file actions
46 lines (42 loc) · 1.14 KB
/
ResultList.tsx
File metadata and controls
46 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
'use client';
import { cn } from '@/shared/lib';
import LocationCard from '@/shared/components/container/LocationCard';
import { listData } from '@/shared/constants/map/result/listData';
export default function ResultList() {
return (
<div
role="list"
aria-label="검색 결과 리스트"
className={cn(
'grid grid-cols-2 gap-[1.2rem] w-full',
'justify-items-center pb-[15rem]',
'overflow-y-scroll'
)}
>
{listData.map((place) => (
<div role="listitem" key={place.id} className="w-full">
<LocationCard
name={place.name}
address={place.address}
description={place.description}
variant="gray"
size="medium"
imageSrc={place.imageSrc}
/>
</div>
))}
<style jsx global>{`
/* Chrome, Safari, Opera */
::-webkit-scrollbar {
width: 0 !important;
height: 0 !important;
}
/* Firefox */
* {
scrollbar-width: none !important;
-ms-overflow-style: none !important;
}
`}</style>
</div>
);
}