From 99c0bee80a7d7c00d75d33e7dba6135cad0634c0 Mon Sep 17 00:00:00 2001 From: KewinBarboza Date: Wed, 21 Feb 2024 07:42:25 -0400 Subject: [PATCH 1/2] add btn twitch for project --- web/src/components/Projects.astro | 36 ++++++++++++++++++++++++++++--- web/src/consts.js | 9 ++++---- 2 files changed, 38 insertions(+), 7 deletions(-) diff --git a/web/src/components/Projects.astro b/web/src/components/Projects.astro index 4881bfc..d1192e0 100644 --- a/web/src/components/Projects.astro +++ b/web/src/components/Projects.astro @@ -1,5 +1,5 @@ --- -import { PROJECTS } from "../consts" +import { PROJECTS } from "../consts"; ---
{ PROJECTS.map((project, index) => { - const num = `${index + 1}`.padStart(2, "0") + const num = `${index + 1}`.padStart(2, "0"); return (
@@ -119,10 +119,40 @@ import { PROJECTS } from "../consts" )} + {project.twitch != null && ( +
  • + + + + + + + + Twitch + +
  • + )}
    - ) + ); }) }
    Date: Wed, 21 Feb 2024 08:03:43 -0400 Subject: [PATCH 2/2] add btn in the page project --- web/src/components/InfoProject.astro | 113 ++++++++++++++++++++++++++- 1 file changed, 110 insertions(+), 3 deletions(-) diff --git a/web/src/components/InfoProject.astro b/web/src/components/InfoProject.astro index f5fdf06..07fc43e 100644 --- a/web/src/components/InfoProject.astro +++ b/web/src/components/InfoProject.astro @@ -39,7 +39,114 @@ const { info } = Astro.props > #{info.number} - {info.title} - ← Volver a los proyectos + + ← Volver a los proyectos + +