|
| 1 | +import { StaticImageData } from "next/image"; |
| 2 | + |
| 3 | +// ** assets |
| 4 | +import hotelMobileImage from "@/assets/images/home/tickets-section-hotel-mobile.png"; |
| 5 | +import hotelDesktopImage from "@/assets/images/home/tickets-section-hotel-desktop.png"; |
| 6 | +import busDesktopImage from "@/assets/images/home/tickets-section-bus-desktop.png"; |
| 7 | +import busMobileImage from "@/assets/images/home/tickets-section-bus-mobile.png"; |
| 8 | +import meetingDesktopImage from "@/assets/images/home/tickets-section-meeting-desktop.png"; |
| 9 | +import meetingMobileImage from "@/assets/images/home/tickets-section-meeting-mobile.png"; |
| 10 | + |
| 11 | +type Image = { |
| 12 | + src: StaticImageData; |
| 13 | + alt: string; |
| 14 | +}; |
| 15 | +type Route = { |
| 16 | + title: string; |
| 17 | + time: string; |
| 18 | +}; |
| 19 | + |
| 20 | +export type Ticket = { |
| 21 | + title: string; |
| 22 | + price: string; |
| 23 | + description: string; |
| 24 | + image: { mobile: Image; desktop: Image }; |
| 25 | + date?: string; |
| 26 | + time?: string; |
| 27 | +} & ( |
| 28 | + | { |
| 29 | + type: "PLACE"; |
| 30 | + hotel: { |
| 31 | + name: string; |
| 32 | + rate: { |
| 33 | + value: number; |
| 34 | + placeholder: string; |
| 35 | + }; |
| 36 | + }; |
| 37 | + } |
| 38 | + | { |
| 39 | + type: "TRANSPORT"; |
| 40 | + origin: Route; |
| 41 | + destination: Route; |
| 42 | + } |
| 43 | + | { |
| 44 | + type: "MEET"; |
| 45 | + } |
| 46 | +); |
| 47 | + |
| 48 | +export const tickets: Ticket[] = [ |
| 49 | + { |
| 50 | + type: "PLACE", |
| 51 | + title: "اقامت شب قبل از همایش", |
| 52 | + price: "۲۵۶٬۰۰۰ تومان", |
| 53 | + description: |
| 54 | + "همهی سخنرانان و شرکتکنندگان شب قبل از همایش در هتل میزبان بابلسر پذیرش و اسکان داده میشوند.", |
| 55 | + image: { |
| 56 | + mobile: { |
| 57 | + src: hotelMobileImage, |
| 58 | + alt: "تصویر هتل", |
| 59 | + }, |
| 60 | + desktop: { |
| 61 | + src: hotelDesktopImage, |
| 62 | + alt: "تصویر هتل", |
| 63 | + }, |
| 64 | + }, |
| 65 | + time: "ساعت ۱۹:۳۰ الی ۸:۰۰ روز بعد", |
| 66 | + date: "۰۹ اسفند ۱۴۰۲", |
| 67 | + hotel: { |
| 68 | + name: "هتل میزبان بابلسر", |
| 69 | + rate: { |
| 70 | + value: 5, |
| 71 | + placeholder: "۵ ستاره", |
| 72 | + }, |
| 73 | + }, |
| 74 | + }, |
| 75 | + { |
| 76 | + type: "TRANSPORT", |
| 77 | + title: "بلیت رفت و برگشت", |
| 78 | + price: "۲۵۶٬۰۰۰ تومان", |
| 79 | + description: |
| 80 | + "رفت و برگشت از تهران به محل اقامت و همچنین بازگشت پس از اتمام همایش به تهران.", |
| 81 | + image: { |
| 82 | + mobile: { |
| 83 | + src: busMobileImage, |
| 84 | + alt: "تصویر هتل", |
| 85 | + }, |
| 86 | + desktop: { |
| 87 | + src: busDesktopImage, |
| 88 | + alt: "تصویر هتل", |
| 89 | + }, |
| 90 | + }, |
| 91 | + origin: { |
| 92 | + title: "تهران، ترمینال شرق", |
| 93 | + time: "ساعت ۱۴:۰۰", |
| 94 | + }, |
| 95 | + destination: { |
| 96 | + title: "محل اقامت فرانت جپتر", |
| 97 | + time: "ساعت ۱۸:۰۰", |
| 98 | + }, |
| 99 | + }, |
| 100 | + { |
| 101 | + type: "MEET", |
| 102 | + title: "دورهمی فرانت چپتر", |
| 103 | + price: "رایگان", |
| 104 | + description: |
| 105 | + "شب قبل از همایش دور هم جمع میشیم و از شبکه سازی کنار آتیش و موسیقی لذت میبریم.", |
| 106 | + image: { |
| 107 | + mobile: { |
| 108 | + src: meetingMobileImage, |
| 109 | + alt: "تصویر دورهمی", |
| 110 | + }, |
| 111 | + desktop: { |
| 112 | + src: meetingDesktopImage, |
| 113 | + alt: "تصویر دورهمی", |
| 114 | + }, |
| 115 | + }, |
| 116 | + }, |
| 117 | +]; |
0 commit comments