diff --git a/src/data/tickets.ts b/src/data/tickets.ts new file mode 100644 index 0000000..c67e4a2 --- /dev/null +++ b/src/data/tickets.ts @@ -0,0 +1,117 @@ +import { StaticImageData } from "next/image"; + +// ** assets +import hotelMobileImage from "@/assets/images/home/tickets-section-hotel-mobile.png"; +import hotelDesktopImage from "@/assets/images/home/tickets-section-hotel-desktop.png"; +import busDesktopImage from "@/assets/images/home/tickets-section-bus-desktop.png"; +import busMobileImage from "@/assets/images/home/tickets-section-bus-mobile.png"; +import meetingDesktopImage from "@/assets/images/home/tickets-section-meeting-desktop.png"; +import meetingMobileImage from "@/assets/images/home/tickets-section-meeting-mobile.png"; + +type Image = { + src: StaticImageData; + alt: string; +}; +type Route = { + title: string; + time: string; +}; + +export type Ticket = { + title: string; + price: string; + description: string; + image: { mobile: Image; desktop: Image }; + date?: string; + time?: string; +} & ( + | { + type: "PLACE"; + hotel: { + name: string; + rate: { + value: number; + placeholder: string; + }; + }; + } + | { + type: "TRANSPORT"; + origin: Route; + destination: Route; + } + | { + type: "MEET"; + } +); + +export const tickets: Ticket[] = [ + { + type: "PLACE", + title: "اقامت شب قبل از همایش", + price: "۲۵۶٬۰۰۰ تومان", + description: + "همه‌ی سخنرانان و شرکت‌کنندگان شب قبل از همایش در هتل میزبان بابلسر پذیرش و اسکان داده می‌شوند.", + image: { + mobile: { + src: hotelMobileImage, + alt: "تصویر هتل", + }, + desktop: { + src: hotelDesktopImage, + alt: "تصویر هتل", + }, + }, + time: "ساعت ۱۹:۳۰ الی ۸:۰۰ روز بعد", + date: "۰۹ اسفند ۱۴۰۲", + hotel: { + name: "هتل میزبان بابلسر", + rate: { + value: 5, + placeholder: "۵ ستاره", + }, + }, + }, + { + type: "TRANSPORT", + title: "بلیت رفت و برگشت", + price: "۲۵۶٬۰۰۰ تومان", + description: + "رفت و برگشت از تهران به محل اقامت و همچنین بازگشت پس از اتمام همایش به تهران.", + image: { + mobile: { + src: busMobileImage, + alt: "تصویر هتل", + }, + desktop: { + src: busDesktopImage, + alt: "تصویر هتل", + }, + }, + origin: { + title: "تهران، ترمینال شرق", + time: "ساعت ۱۴:۰۰", + }, + destination: { + title: "محل اقامت فرانت جپتر", + time: "ساعت ۱۸:۰۰", + }, + }, + { + type: "MEET", + title: "دورهمی فرانت چپتر", + price: "رایگان", + description: + "شب قبل از همایش دور هم جمع می‌شیم و از شبکه سازی کنار آتیش و موسیقی لذت می‌بریم.", + image: { + mobile: { + src: meetingMobileImage, + alt: "تصویر دورهمی", + }, + desktop: { + src: meetingDesktopImage, + alt: "تصویر دورهمی", + }, + }, + }, +];