mirror of
https://github.com/Ichitux/lambada-fiesta-live.git
synced 2026-05-15 18:12:19 +02:00
Newer section and modular view
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m14s
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m14s
This commit is contained in:
@@ -274,13 +274,57 @@ export const GALLERY_IMAGES = [
|
||||
{ src: "", alt: "[Descripción foto 6]" },
|
||||
];
|
||||
|
||||
// ---- NAVEGACIÓN ----
|
||||
export const NAV_LINKS = [
|
||||
{ href: "#about" },
|
||||
{ href: "#staff" },
|
||||
{ href: "#schedule" },
|
||||
{ href: "#booking" },
|
||||
{ href: "#hotel" },
|
||||
{ href: "#info" },
|
||||
{ href: "#gallery" },
|
||||
// ---- PAQUETES MIXTOS (Room + Pass) ----
|
||||
export type RoomType = "individual" | "double" | "suite";
|
||||
export type PassType = "full" | "party" | "single";
|
||||
|
||||
export const ROOM_TYPES: { id: RoomType }[] = [
|
||||
{ id: "individual" },
|
||||
{ id: "double" },
|
||||
{ id: "suite" },
|
||||
];
|
||||
|
||||
export const MIXED_BOOKING_PACKAGES = [
|
||||
{ id: "full" as PassType, label: "full", roomPrices: { individual: 0, double: 0, suite: 0 } },
|
||||
{ id: "party" as PassType, label: "party", roomPrices: { individual: 0, double: 0, suite: 0 } },
|
||||
{ id: "single" as PassType, label: "single", roomPrices: { individual: 0, double: 0, suite: 0 } },
|
||||
];
|
||||
|
||||
// ---- SECCIONES VISIBLES ----
|
||||
export const SECTIONS = {
|
||||
about: true,
|
||||
org: true,
|
||||
staff: true,
|
||||
profesores: true,
|
||||
schedule: true,
|
||||
booking: false,
|
||||
mixed_booking: true,
|
||||
hotel: true,
|
||||
practical: true,
|
||||
gallery: true,
|
||||
};
|
||||
|
||||
// ---- NAVEGACIÓN ----
|
||||
const HREF_TO_SECTION: Record<string, keyof typeof SECTIONS> = {
|
||||
"#about": "about",
|
||||
"#staff": "staff",
|
||||
"#schedule": "schedule",
|
||||
"#booking": "booking",
|
||||
"#mixed-booking": "mixed_booking",
|
||||
"#hotel": "hotel",
|
||||
"#info": "practical",
|
||||
"#gallery": "gallery",
|
||||
};
|
||||
|
||||
export const NAV_LINKS = (
|
||||
[
|
||||
{ href: "#about" },
|
||||
{ href: "#staff" },
|
||||
{ href: "#schedule" },
|
||||
{ href: "#booking" },
|
||||
{ href: "#mixed-booking" },
|
||||
{ href: "#hotel" },
|
||||
{ href: "#info" },
|
||||
{ href: "#gallery" },
|
||||
] as const
|
||||
).filter((link) => SECTIONS[HREF_TO_SECTION[link.href]]);
|
||||
|
||||
Reference in New Issue
Block a user