mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-09-27 21:22:20 +00:00
This commit is contained in:
+15
-4
@@ -25,6 +25,7 @@ import milu from "@/assets/staff/milu.jpg";
|
||||
import safira from "@/assets/staff/safira.jpg";
|
||||
import brazromi from "@/assets/staff/braz_romi.jpg";
|
||||
import emanoel from "@/assets/staff/emanoel.jpg";
|
||||
import didipatri from "@/assets/staff/didipatri.jpg";
|
||||
|
||||
import gal1 from "@/assets/gallery/gal1.jpg";
|
||||
import gal2 from "@/assets/gallery/gal2.jpg";
|
||||
@@ -233,6 +234,16 @@ export const STAFF = [
|
||||
instagram: "",
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "15",
|
||||
name: "[Didi & Patricia]",
|
||||
role: "Teacher" as const,
|
||||
description: "[Breve biografía del profesor]",
|
||||
image: didipatri,
|
||||
socials: {
|
||||
instagram: "",
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
// ---- PROGRAMA DEL EVENTO ----
|
||||
@@ -342,19 +353,19 @@ export const ROOM_TYPES: { id: RoomType }[] = [
|
||||
* - 1 de julio - 1 de septiembre: 190€
|
||||
* - Después del inicio del evento: 200€ (último precio)
|
||||
*/
|
||||
export function getFullPassPrice(): { price: number; isLastPrice: boolean } {
|
||||
export function getFullPassPrice(): { price: number; isLastPrice: boolean; validUntilKey: string | null } {
|
||||
const now = new Date();
|
||||
const julyFirst = new Date("2026-07-01T00:00:00");
|
||||
const septemberFirst = new Date("2026-09-01T00:00:00");
|
||||
const eventStart = new Date(EVENT_INFO.date);
|
||||
|
||||
if (now < julyFirst) {
|
||||
return { price: 170, isLastPrice: false };
|
||||
return { price: 170, isLastPrice: false, validUntilKey: "validUntilJuly" };
|
||||
} else if (now < septemberFirst) {
|
||||
return { price: 190, isLastPrice: false };
|
||||
return { price: 190, isLastPrice: false, validUntilKey: "validUntilSeptember" };
|
||||
} else {
|
||||
// After event starts
|
||||
return { price: 200, isLastPrice: true };
|
||||
return { price: 200, isLastPrice: true, validUntilKey: null };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user