Skip to content

Commit

Permalink
feat: add tickets data
Browse files Browse the repository at this point in the history
  • Loading branch information
rezankv committed Jan 22, 2024
1 parent e81fad0 commit 6a34feb
Showing 1 changed file with 117 additions and 0 deletions.
117 changes: 117 additions & 0 deletions src/data/tickets.ts
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: "تصویر دورهمی",
},
},
},
];

0 comments on commit 6a34feb

Please sign in to comment.