From 63b17945ab0997d65df4d6f50feabe19e07c5989 Mon Sep 17 00:00:00 2001 From: Alexis Werefox Date: Sun, 17 Oct 2021 22:40:17 +0000 Subject: [PATCH] Minor changes on which buttons open a new page. --- src/info/components/project-block.js | 1 + src/info/components/project-card.js | 66 ++++++++++++++++++++-------- src/info/data/homepage/other.yml | 2 + 3 files changed, 50 insertions(+), 19 deletions(-) diff --git a/src/info/components/project-block.js b/src/info/components/project-block.js index 57130d2..8532da4 100644 --- a/src/info/components/project-block.js +++ b/src/info/components/project-block.js @@ -9,6 +9,7 @@ export default function ProjectCardBlock({ title, cards }) { - - -
  • -
    - - {alt} - - {` ${title}`} -
    -
    {description}
    -
  • -
    - - - ); + if (Boolean(new_tab)) { + return ( +
    + + +
  • +
    + + {alt} + + {` ${title}`} +
    +
    {description}
    +
  • +
    + +
    + ); + } else { + return ( +
    + + +
  • +
    + + {alt} + + {` ${title}`} +
    +
    {description}
    +
  • +
    + +
    + ); + } } diff --git a/src/info/data/homepage/other.yml b/src/info/data/homepage/other.yml index c0b5792..0dff32e 100644 --- a/src/info/data/homepage/other.yml +++ b/src/info/data/homepage/other.yml @@ -4,8 +4,10 @@ Servers: url: "https://info.werefox.dev/servers" images: - { src: "/emoji/computer.svg", alt: "Computer emoji" } + new_tab: true "Support Us?": url: "https://info.werefox.dev/support" images: - { src: "/emoji/green_money.svg", alt: "Green money emoji" } + new_tab: true