From 839064dc6ae2f1ec7ee7334c3f391f6427029407 Mon Sep 17 00:00:00 2001 From: ERFouX Date: Fri, 24 Jan 2025 13:42:05 +0330 Subject: [PATCH] Make JoinCard clickable by wrapping the entire card in a Link component --- pages/join.jsx | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/pages/join.jsx b/pages/join.jsx index c5b4514..9c630f9 100644 --- a/pages/join.jsx +++ b/pages/join.jsx @@ -1,31 +1,32 @@ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { useTranslation } from "@/utils/translation" import { Users, Book, MessageCircle, Code, ArrowLeftCircle, ArrowRightCircle } from 'lucide-react' -import { Button } from "@/components/ui/button" import Link from "next/link" -import { SiBluesky, SiDiscord, SiMastodon, SiTelegram, SiX } from "@icons-pack/react-simple-icons"; const JoinCard = ({ icon: Icon, caption, link, text, url, arrow: Arrow }) => ( - - -
- - - {caption} - - -
-
- {text} -
+ + + +
+ + + {caption} + +
+ {link} + +
+
+
+ {text} +
+ ) export default function Join() { const { t, lang } = useTranslation(); - const arrow = lang == 'fa' ? ArrowLeftCircle : ArrowRightCircle + const arrow = lang === 'fa' ? ArrowLeftCircle : ArrowRightCircle return (