diff --git a/src/page/main/component/card/card-info.tsx b/src/page/main/component/card/card-info.tsx new file mode 100644 index 0000000..3d688d0 --- /dev/null +++ b/src/page/main/component/card/card-info.tsx @@ -0,0 +1,27 @@ +import Clock from '@shared/assets/icon/clock.svg?react'; +import UserIcon from '@shared/assets/icon/user.svg?react'; +import MapPinIcon from '@shared/assets/icon/map-pin.svg?react'; +interface CardInfoProps { + date: string; + count: string; + location: string; +} + +export function CardInfo({ date, count, location }: CardInfoProps) { + return ( +
+

+ + {date} +

+

+ + {count} +

+

+ + {location} +

+
+ ); +} diff --git a/src/page/main/component/card/card-title.tsx b/src/page/main/component/card/card-title.tsx new file mode 100644 index 0000000..22e688f --- /dev/null +++ b/src/page/main/component/card/card-title.tsx @@ -0,0 +1,7 @@ +interface CardTitleProps { + title: string; +} + +export function CardTitle({ title }: CardTitleProps) { + return

{title}

; +} diff --git a/src/page/main/component/card/card.tsx b/src/page/main/component/card/card.tsx new file mode 100644 index 0000000..3132260 --- /dev/null +++ b/src/page/main/component/card/card.tsx @@ -0,0 +1,24 @@ +import { CardInfo } from '@page/main/component/card/card-info'; +import { CardTitle } from '@page/main/component/card/card-title'; + +interface CardProps { + image?: string; + title: string; + date: string; + count: string; + location: string; +} + +export function Card({ image, title, date, count, location }: CardProps) { + return ( +
+
+ +
+
+ + +
+
+ ); +}