Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
Expand Down
24 changes: 6 additions & 18 deletions frontend/src/app/localization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
}
}

Expand Down Expand Up @@ -147,25 +151,13 @@ export const elementLocalization: ElementLocalization = {
en: <>guadala<b>hacks</b></>
},
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&apos;ll be able to meet the teams behind these amazing projects.</>
},
landing_signUpSoon: {
es: <>Pronto podrás inscribirte a guadala<b>hacks</b> 2025</>,
en: <>Registrations for guadala<b>hacks</b> 2025 are opening soon</>
},
landing_register: {
es: <>Inscríbete ahora</>,
en: <>Register now</>
Expand All @@ -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</>
Expand Down
64 changes: 27 additions & 37 deletions frontend/src/sections/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -16,7 +16,7 @@ const LandingPage: React.FC = () => {
const [language, _] = languageState.useState();
return (
<div className="gradient-container">

{/* LOGO AND DATES */}
<div className='logo-container'>
<Image src={img_logo_outline} alt="logo" className="logo" />
<span>
Expand All @@ -29,50 +29,40 @@ const LandingPage: React.FC = () => {
</span>
</div>

{/* (Commented divs for post-hackathon) */}

{/* Countdown */}
{/* <div className={'countdown-text text-white'+' '+valeraLight.className}>
{getLocalizedElement("landing_seeYouSoon", language)}
</div> */}
<Countdown />

{/* <div style={{ display: 'flex', justifyContent: 'space-between' }}> */}
{/* Location */}
{/* <div className={'text-3xl font-semibold text-white info-text'+' '+valeraLight.className}>
{getLocalizedElement("landing_thankYou", language)}
</div> */}

{/* Date */}

{/* <div className={'text-3xl font-semibold text-white info-text'+' '+valeraLight.className}>
{getLocalizedElement("landing_teamsComingSoon", language)}
</div> */}
{/* </div> */}

{/* Login button */}
{/* <Countdown /> */}

{/* Register button */}
{/* <div className={'text-3xl font-semibold text-white info-text'+' '+valeraLight.className}>
{getLocalizedElement("landing_signUpSoon", language)}
{/* PRE-HACK */}
{/* <div className="register-button-container">
<Link href="https://registro.guadalahacks.com/" className="register-button">
{getLocalizedElement("landing_register", language)}
</Link>
</div> */}

<div className="register-button-container">
{/* DURING HACK */}
{/* <div className="register-button-container">
<Link href="https://guadalahacks-2025.devpost.com/" className="register-button">
{getLocalizedElement("landing_devpost", language)}
</Link>
</div> */}


{/* POST-HACK */}
<div className={'countdown-text text-white'+' '+valeraLight.className}>
{getLocalizedElement("landing_seeYouSoon", language)}
</div>

{/* <div className="register-button-container">
<Link href="https://registro.guadalahacks.com/" className="register-button">
{getLocalizedElement("landing_register", language)}
</Link>
<div style={{ display: 'flex', justifyContent: 'space-between', gap: '20px' }}>
<div className="register-button-container">
<Link href="/projects25" className="register-button">
{getLocalizedString("landing_projects", language) + "2025"}
</Link>
</div>
<div className="register-button-container">
<Link href="/projects24" className="register-button">
{getLocalizedString("landing_projects", language) + "2024"}
</Link>
</div>
</div>
<div className="register-button-container">
<Link href="/projects" className="register-button">
{getLocalizedElement("landing_seeProjects", language)}
</Link>
</div> */}

{/* Placeholder Squares */}

Expand Down