Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements to UI Components and Team Member Layout #50

Merged
merged 3 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/ui/card.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import * as React from "react"

import { cn } from "@/lib/utils"

const Card = React.forwardRef(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn("rounded-xl border bg-card text-card-foreground shadow", className)}
className={cn("rounded-xl border bg-card text-card-foreground shadow transition-transform duration-300 hover:shadow-lg hover:scale-105", className)}
{...props} />
))
Card.displayName = "Card"
Expand Down
112 changes: 56 additions & 56 deletions data/team.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,61 +50,62 @@ const teamData = [
},
{
"name": {
en: "AhmadReza Khatamian",
fa: "احمدرضا خاتمیان"
en: "Erfan Arabi",
fa: "عرفان عربی"
},
"stack": {
en: "Graphic Designer",
fa: "طراح گرافیک"
en: "Team Leader",
fa: "راهبر تیم"
},
"image": "https://avatars.githubusercontent.com/ahmadreza3",
"image": "https://avatars.githubusercontent.com/ERFouX",
"socials": {
"github": "https://github.com/ahmadreza3",
"mastodon": "https://mas.to/@ahmad00000"
"github": "https://github.com/ERFouX",
"mastodon": "https://mas.to/@ERFouX",
"donate": "https://daramet.com/ERFouX"
}
},
{
"name": {
en: "Pourya Barkati",
fa: "پوریا برکتی"
en: "Pouya Madankar",
fa: "پویا مدنکار"
},
"stack": {
en: "Rust Developer",
fa: "توسعه‌دهنده راست"
en: "Frontend Developer",
fa: "توسعه‌دهنده فرانت‌اند"
},
"image": "https://avatars.githubusercontent.com/BrPrS",
"image": "https://avatars.githubusercontent.com/pouyaMK",
"socials": {
"github": "https://github.com/BrPrS",
"donate": "https://daramet.com/prbarkati"
"github": "https://github.com/pouyaMK"
}
},
{
"name": {
en: "Pouya Madankar",
fa: "پویا مدنکار"
en: "AhmadReza Khatamian",
fa: "احمدرضا خاتمیان"
},
"stack": {
en: "Frontend Developer",
fa: "توسعه‌دهنده فرانت‌اند"
en: "Graphic Designer",
fa: "طراح گرافیک"
},
"image": "https://avatars.githubusercontent.com/pouyaMK",
"image": "https://avatars.githubusercontent.com/ahmadreza3",
"socials": {
"github": "https://github.com/pouyaMK"
"github": "https://github.com/ahmadreza3",
"mastodon": "https://mas.to/@ahmad00000"
}
},
{
"name": {
en: "Mostafa Aminzar",
fa: "مصطفی امین‌زار"
en: "Pourya Barkati",
fa: "پوریا برکتی"
},
"stack": {
en: "UI/UX Designer",
fa: "طراح UI/UX"
en: "Rust Developer",
fa: "توسعه‌دهنده راست"
},
"image": "https://avatars.githubusercontent.com/MosiO1998",
"image": "https://avatars.githubusercontent.com/BrPrS",
"socials": {
"github": "https://github.com/MosiO1998",
"donate": "https://daramet.com/mosio"
"github": "https://github.com/BrPrS",
"donate": "https://daramet.com/prbarkati"
}
},
{
Expand All @@ -124,34 +125,17 @@ const teamData = [
},
{
"name": {
en: "Ali Almasi",
fa: "علی الماسی"
},
"stack": {
en: "Web Developer",
fa: "توسعه‌دهنده وب"
},
"image": "https://avatars.githubusercontent.com/AliAlmasi",
"socials": {
"github": "https://github.com/AliAlmasi",
"donate": "https://daramet.com/alialmasi",
"mastodon": "https://ieji.de/@almasi"
}
},
{
"name": {
en: "Erfan Arabi",
fa: "عرفان عربی"
en: "Mostafa Aminzar",
fa: "مصطفی امین‌زار"
},
"stack": {
en: "Contributer",
fa: "مشارکت کننده"
en: "UI/UX Designer",
fa: "طراح UI/UX"
},
"image": "https://avatars.githubusercontent.com/ERFouX",
"image": "https://avatars.githubusercontent.com/MosiO1998",
"socials": {
"github": "https://github.com/ERFouX",
"mastodon": "https://mas.to/@ERFouX",
"donate": "https://daramet.com/ERFouX"
"github": "https://github.com/MosiO1998",
"donate": "https://daramet.com/mosio"
}
},
{
Expand All @@ -172,17 +156,18 @@ const teamData = [
},
{
"name": {
en: "Mahdi Gholamhosseini",
fa: "مهدی غلام‌حسینی"
en: "Ali Almasi",
fa: "علی الماسی"
},
"stack": {
en: "Web Developer",
fa: "توسعه‌دهنده وب"
},
"image": "https://avatars.githubusercontent.com/m6hdix",
"image": "https://avatars.githubusercontent.com/AliAlmasi",
"socials": {
"github": "https://github.com/m6hdix",
"donate": "https://daramet.com/m6hdix"
"github": "https://github.com/AliAlmasi",
"donate": "https://daramet.com/alialmasi",
"mastodon": "https://ieji.de/@almasi"
}
},
{
Expand Down Expand Up @@ -215,6 +200,21 @@ const teamData = [
"twitter": "https://x.com/Bravemobin/",
"donate": "https://daramet.com/bravemobin/"
}
},
{
"name": {
en: "Mahdi Gholamhosseini",
fa: "مهدی غلام‌حسینی"
},
"stack": {
en: "Web Developer",
fa: "توسعه‌دهنده وب"
},
"image": "https://avatars.githubusercontent.com/m6hdix",
"socials": {
"github": "https://github.com/m6hdix",
"donate": "https://daramet.com/m6hdix"
}
}
]

Expand Down
35 changes: 18 additions & 17 deletions pages/join.jsx
Original file line number Diff line number Diff line change
@@ -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 }) => (
<Card className="animate-in fade-in zoom-in duration-300">
<CardHeader>
<div className="flex gap-4 justify-between">
<CardTitle>
<Icon className="h-6 w-6 inline-block align-middle me-2" />
{caption}
</CardTitle>
<Button asChild variant="outline" className="rounded-full">
<Link href={url}>{link} <Arrow size={16} /></Link>
</Button>
</div>
</CardHeader>
<CardContent>{text}</CardContent>
</Card>
<Link href={url} className="block">
<Card className="animate-in fade-in zoom-in duration-300 cursor-pointer">
<CardHeader>
<div className="flex gap-4 justify-between">
<CardTitle>
<Icon className="h-6 w-6 inline-block align-middle me-2" />
{caption}
</CardTitle>
<div className="flex items-center">
<span>{link}</span>
<Arrow size={16} className="ml-2" />
</div>
</div>
</CardHeader>
<CardContent>{text}</CardContent>
</Card>
</Link>
)

export default function Join() {
const { t, lang } = useTranslation();

const arrow = lang == 'fa' ? ArrowLeftCircle : ArrowRightCircle
const arrow = lang === 'fa' ? ArrowLeftCircle : ArrowRightCircle

return (
<main className="py-12 md:py-24 lg:py-32">
Expand Down
Loading