Newer section and modular view
All checks were successful
Deploy NPM app / Deploy NPM (push) Successful in 1m14s

This commit is contained in:
Ichitux
2026-04-14 15:48:44 +02:00
parent 7a65e7a1f4
commit 823ca68119
7 changed files with 264 additions and 21 deletions

View File

@@ -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]]);