File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ let currentPath = Astro.url.pathname;
77if (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 >
You can’t perform that action at this time.
0 commit comments