From 93c9ead62f58248f4681fdd9fc70aa7a7d5e6131 Mon Sep 17 00:00:00 2001 From: chimpdev Date: Tue, 16 Apr 2024 04:45:49 +0300 Subject: [PATCH] Add new badge to servers block in homepage --- client/app/page.js | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/client/app/page.js b/client/app/page.js index 334b10e1..b2d0b8a6 100644 --- a/client/app/page.js +++ b/client/app/page.js @@ -13,7 +13,7 @@ export default function Page() { const defaultBlockColor = '#ffffff10'; const [hoveredBlockColor, setHoveredBlockColor] = useState(defaultBlockColor); - function Block({ title, desc, to, index, color, disabled }) { + function Block({ title, desc, to, index, color, disabled, newBadge }) { const blockRef = useRef(null); const buttonRef = useRef(null); @@ -42,7 +42,18 @@ export default function Page() { }} href={to} > -

{title}

+

+ {title} + {newBadge && ( + + New + + )} +

{desc}

+

-
+