From 99c0bee80a7d7c00d75d33e7dba6135cad0634c0 Mon Sep 17 00:00:00 2001 From: KewinBarboza Date: Wed, 21 Feb 2024 07:42:25 -0400 Subject: [PATCH] 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 + +
  • + )}
    - ) + ); }) }