mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-06-10 01:14:57 +02:00
Changes in maths and new image
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m15s
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m15s
This commit is contained in:
BIN
src/assets/staff/didipatri.jpg
Normal file
BIN
src/assets/staff/didipatri.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 216 KiB |
@@ -114,13 +114,18 @@ const MixedBookingSection = () => {
|
|||||||
{price > 0 ? `${price}€` : t("mixedBooking.priceTBD")}
|
{price > 0 ? `${price}€` : t("mixedBooking.priceTBD")}
|
||||||
</p>
|
</p>
|
||||||
<p className="text-sm font-medium text-foreground mt-2">
|
<p className="text-sm font-medium text-foreground mt-2">
|
||||||
{t(`mixedBooking.passTypes.${pkg.id}`)}: {passPrice}€ {pkg.id === "full" ? t("mixedBooking.perPerson") : t("mixedBooking.perParty")}
|
{t(`mixedBooking.passTypes.${pkg.id}`)}: {basePrice}€ {pkg.id === "full" ? t("mixedBooking.perPerson") : t("mixedBooking.perParty")}
|
||||||
</p>
|
</p>
|
||||||
{showNonHotelNote && (
|
{showNonHotelNote && (
|
||||||
<p className="text-xs text-red-600 font-medium mt-2">
|
<p className="text-xs text-red-600 font-medium mt-2">
|
||||||
{t("mixedBooking.nonHotelNote")}
|
{t("mixedBooking.nonHotelNote")}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
{pkg.id === "full" && fullPassPricing.validUntilKey && (
|
||||||
|
<p className="text-xs text-muted-foreground mt-1">
|
||||||
|
{t(`mixedBooking.${fullPassPricing.validUntilKey}`)}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
{hasHotel && (
|
{hasHotel && (
|
||||||
<p className="text-sm font-medium text-foreground mt-2">
|
<p className="text-sm font-medium text-foreground mt-2">
|
||||||
{t(`mixedBooking.roomTypes.${selectedRoom}`)}: {roomPrice}€
|
{t(`mixedBooking.roomTypes.${selectedRoom}`)}: {roomPrice}€
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import milu from "@/assets/staff/milu.jpg";
|
|||||||
import safira from "@/assets/staff/safira.jpg";
|
import safira from "@/assets/staff/safira.jpg";
|
||||||
import brazromi from "@/assets/staff/braz_romi.jpg";
|
import brazromi from "@/assets/staff/braz_romi.jpg";
|
||||||
import emanoel from "@/assets/staff/emanoel.jpg";
|
import emanoel from "@/assets/staff/emanoel.jpg";
|
||||||
|
import didipatri from "@/assets/staff/didipatri.jpg";
|
||||||
|
|
||||||
import gal1 from "@/assets/gallery/gal1.jpg";
|
import gal1 from "@/assets/gallery/gal1.jpg";
|
||||||
import gal2 from "@/assets/gallery/gal2.jpg";
|
import gal2 from "@/assets/gallery/gal2.jpg";
|
||||||
@@ -233,6 +234,16 @@ export const STAFF = [
|
|||||||
instagram: "",
|
instagram: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "15",
|
||||||
|
name: "[Didi & Patricia]",
|
||||||
|
role: "Teacher" as const,
|
||||||
|
description: "[Breve biografía del profesor]",
|
||||||
|
image: didipatri,
|
||||||
|
socials: {
|
||||||
|
instagram: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
// ---- PROGRAMA DEL EVENTO ----
|
// ---- PROGRAMA DEL EVENTO ----
|
||||||
@@ -342,19 +353,19 @@ export const ROOM_TYPES: { id: RoomType }[] = [
|
|||||||
* - 1 de julio - 1 de septiembre: 190€
|
* - 1 de julio - 1 de septiembre: 190€
|
||||||
* - Después del inicio del evento: 200€ (último precio)
|
* - 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 now = new Date();
|
||||||
const julyFirst = new Date("2026-07-01T00:00:00");
|
const julyFirst = new Date("2026-07-01T00:00:00");
|
||||||
const septemberFirst = new Date("2026-09-01T00:00:00");
|
const septemberFirst = new Date("2026-09-01T00:00:00");
|
||||||
const eventStart = new Date(EVENT_INFO.date);
|
const eventStart = new Date(EVENT_INFO.date);
|
||||||
|
|
||||||
if (now < julyFirst) {
|
if (now < julyFirst) {
|
||||||
return { price: 170, isLastPrice: false };
|
return { price: 170, isLastPrice: false, validUntilKey: "validUntilJuly" };
|
||||||
} else if (now < septemberFirst) {
|
} else if (now < septemberFirst) {
|
||||||
return { price: 190, isLastPrice: false };
|
return { price: 190, isLastPrice: false, validUntilKey: "validUntilSeptember" };
|
||||||
} else {
|
} else {
|
||||||
// After event starts
|
// After event starts
|
||||||
return { price: 200, isLastPrice: true };
|
return { price: 200, isLastPrice: true, validUntilKey: null };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -137,6 +137,8 @@
|
|||||||
"hotelYes": "Yes",
|
"hotelYes": "Yes",
|
||||||
"hotelNo": "No",
|
"hotelNo": "No",
|
||||||
"nonHotelNote": "+50€ fee for not staying in hotel",
|
"nonHotelNote": "+50€ fee for not staying in hotel",
|
||||||
|
"validUntilJuly": "From now until 1 July",
|
||||||
|
"validUntilSeptember": "From now until 1 September",
|
||||||
"roomTypes": {
|
"roomTypes": {
|
||||||
"individual": "Single Room",
|
"individual": "Single Room",
|
||||||
"double": "Double Room",
|
"double": "Double Room",
|
||||||
|
|||||||
@@ -137,6 +137,8 @@
|
|||||||
"hotelYes": "Sí",
|
"hotelYes": "Sí",
|
||||||
"hotelNo": "No",
|
"hotelNo": "No",
|
||||||
"nonHotelNote": "+50€ por no alojarse en hotel",
|
"nonHotelNote": "+50€ por no alojarse en hotel",
|
||||||
|
"validUntilJuly": "Desde ahora hasta el 1 de julio",
|
||||||
|
"validUntilSeptember": "Desde ahora hasta el 1 de septiembre",
|
||||||
"roomTypes": {
|
"roomTypes": {
|
||||||
"individual": "Habitación Individual",
|
"individual": "Habitación Individual",
|
||||||
"double": "Habitación Doble",
|
"double": "Habitación Doble",
|
||||||
|
|||||||
Reference in New Issue
Block a user