-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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: "تصویر دورهمی", | ||
}, | ||
}, | ||
}, | ||
]; |