Skip to content

Commit 449e470

Browse files
committed
Ocultado Back y Front hasta fecha concreta
1 parent 8531bfb commit 449e470

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/pages/index.astro

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ let currentPath = Astro.url.pathname;
77
if (currentPath !== '/' && currentPath.endsWith('/')) {
88
currentPath = currentPath.slice(0, -1);
99
}
10+
11+
const today = new Date();
12+
const releaseBackEnd = new Date('2025-12-14');
13+
const releaseFrontEnd = new Date('2026-02-22');
14+
15+
const showBackend = today >= releaseBackEnd;
16+
const showFrontend = today >= releaseFrontEnd;
17+
1018
---
1119

1220
<Layout title="The Bridge">
@@ -24,16 +32,20 @@ if (currentPath !== '/' && currentPath.endsWith('/')) {
2432
title="Fundamentals"
2533
description="En esta sección encontrarás información sobre los fundamentos de la programación, incluyendo HTML, CSS y JavaScript."
2634
/>
35+
{showBackend && (
2736
<Card
2837
href=`${currentPath}/backend/`
2938
title="Backend"
3039
description="En esta sección encontrarás información sobre el desarrollo backend, incluyendo Node.js, bases de datos y más."
3140
/>
41+
)}
42+
{showFrontend && (
3243
<Card
3344
href=`${currentPath}/frontend/`
3445
title="Frontend"
3546
description="En esta sección encontrarás información sobre el desarrollo frontend en React."
3647
/>
48+
)}
3749

3850
</ul>
3951
</section>

0 commit comments

Comments
 (0)