diff --git a/frontend/next.config.js b/frontend/next.config.js index 9e2dc93..8c5b033 100644 --- a/frontend/next.config.js +++ b/frontend/next.config.js @@ -75,10 +75,16 @@ const nextConfig = { basePath: false }, { - source: '/projects', + source: '/projects24', destination: 'https://guadalahacks.devpost.com/project-gallery', permanent: false, basePath: false + }, + { + source: '/projects25', + destination: 'https://guadalahacks-2025.devpost.com/project-gallery', + permanent: false, + basePath: false } ] } diff --git a/frontend/src/app/localization.tsx b/frontend/src/app/localization.tsx index 4100c81..a3dd3ba 100644 --- a/frontend/src/app/localization.tsx +++ b/frontend/src/app/localization.tsx @@ -37,6 +37,10 @@ export const stringLocalization: StringLocalization = { event_map_title: { es: "Ubicación del evento", en: "Event location" + }, + landing_projects: { + es: "Proyectos ", + en: "Projects " } } @@ -147,25 +151,13 @@ export const elementLocalization: ElementLocalization = { en: <>guadalahacks }, landing_seeYouSoon: { - es: <>¡Nos vemos en 2025!, - en: <>See you in 2025! + es: <>¡Nos vemos en 2026!, + en: <>See you in 2026! }, landing_eventDates: { es: <>17 y 18 de mayo de 2025, en: <>17-18 May 2025 }, - landing_thankYou: { - es: <>Muchas gracias por acomapañarnos., - en: <>Thank you for coming. - }, - landing_teamsComingSoon: { - es: <>Pronto podrás conocer a los equipos detrás de los asombrosos proyectos., - en: <>Soon you'll be able to meet the teams behind these amazing projects. - }, - landing_signUpSoon: { - es: <>Pronto podrás inscribirte a guadalahacks 2025, - en: <>Registrations for guadalahacks 2025 are opening soon - }, landing_register: { es: <>Inscríbete ahora, en: <>Register now @@ -174,10 +166,6 @@ export const elementLocalization: ElementLocalization = { es: <>Crea tu equipo en Devpost, en: <>Create your team on Devpost }, - landing_seeProjects: { - es: <>Conoce los proyectos, - en: <>See all the projects - }, landing_countdown: { es: <>para finalizar, en: <>to finish diff --git a/frontend/src/sections/LandingPage.tsx b/frontend/src/sections/LandingPage.tsx index 920c593..bf1e3d6 100644 --- a/frontend/src/sections/LandingPage.tsx +++ b/frontend/src/sections/LandingPage.tsx @@ -1,7 +1,7 @@ import React from 'react'; import dynamic from 'next/dynamic'; import './LandingPage.css'; // Import the CSS -import { getLocalizedElement, languageState } from '@/app/locale'; +import { getLocalizedElement, getLocalizedString, languageState } from '@/app/locale'; import { Varela_Round } from 'next/font/google' import Link from 'next/link'; import Image from 'next/image'; @@ -16,7 +16,7 @@ const LandingPage: React.FC = () => { const [language, _] = languageState.useState(); return (
- + {/* LOGO AND DATES */}
logo @@ -29,50 +29,40 @@ const LandingPage: React.FC = () => {
- {/* (Commented divs for post-hackathon) */} - - {/* Countdown */} - {/*
- {getLocalizedElement("landing_seeYouSoon", language)} -
*/} - - - {/*
*/} - {/* Location */} - {/*
- {getLocalizedElement("landing_thankYou", language)} -
*/} - - {/* Date */} - - {/*
- {getLocalizedElement("landing_teamsComingSoon", language)} -
*/} - {/*
*/} - - {/* Login button */} + {/* */} - {/* Register button */} - {/*
- {getLocalizedElement("landing_signUpSoon", language)} + {/* PRE-HACK */} + {/*
+ + {getLocalizedElement("landing_register", language)} +
*/} -
+ {/* DURING HACK */} + {/*
{getLocalizedElement("landing_devpost", language)} +
*/} + + + {/* POST-HACK */} +
+ {getLocalizedElement("landing_seeYouSoon", language)}
- {/*
- - {getLocalizedElement("landing_register", language)} - +
+
+ + {getLocalizedString("landing_projects", language) + "2025"} + +
+
+ + {getLocalizedString("landing_projects", language) + "2024"} + +
-
- - {getLocalizedElement("landing_seeProjects", language)} - -
*/} {/* Placeholder Squares */}