Skip to content

Commit 7dfe6fe

Browse files
feat: add azure and telegam icons
1 parent b766de4 commit 7dfe6fe

6 files changed

Lines changed: 34 additions & 6 deletions

File tree

src/app/dashboard/(active)/azure/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { UsersRound } from "lucide-react"
2+
import Image from "next/image"
23
import Link from "next/link"
4+
import azureSvg from "@/assets/svg/azure.svg"
35
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
46

57
export default function AssocIndex() {
68
return (
79
<div className="container py-8 px-2 flex flex-col gap-4">
8-
<h2 className="text-accent-foreground text-3xl font-bold">Azure</h2>
10+
<h2 className="text-accent-foreground text-3xl font-bold flex gap-2 items-center">
11+
<Image alt="azure logo" src={azureSvg} className="size-7" />
12+
Azure
13+
</h2>
914
<div className="gap-4 flex justify-start flex-wrap items-center">
1015
<Link href="/dashboard/azure/members">
1116
<Card className="w-90 hover:bg-accent transition-colors">

src/app/dashboard/(active)/page.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import Image from "next/image"
12
import Link from "next/link"
3+
import azureSvg from "@/assets/svg/azure.svg"
4+
import telegramSvg from "@/assets/svg/telegram.svg"
25
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
36
import { getServerSession } from "@/server/auth"
47
import { CompleteProfile } from "./complete-profile"
@@ -15,11 +18,26 @@ export default async function AdminHome() {
1518
<Link href="/dashboard/azure">
1619
<Card className="w-90 hover:bg-accent transition-colors">
1720
<CardHeader>
18-
<CardTitle>Azure</CardTitle>
21+
<CardTitle className="flex gap-2">
22+
<Image alt="azure logo" src={azureSvg} className="size-5" />
23+
Azure
24+
</CardTitle>
1925
<CardDescription>Manage Azure related things</CardDescription>
2026
</CardHeader>
2127
</Card>
2228
</Link>
29+
30+
<Link href="/dashboard/telegram">
31+
<Card className="w-90 hover:bg-accent transition-colors">
32+
<CardHeader>
33+
<CardTitle className="flex gap-2">
34+
<Image alt="telegram logo" src={telegramSvg} className="size-5" />
35+
Telegram
36+
</CardTitle>
37+
<CardDescription>Manage Telegram related things</CardDescription>
38+
</CardHeader>
39+
</Card>
40+
</Link>
2341
</div>
2442
</div>
2543
)

src/app/dashboard/(active)/telegram/grants/new-grant.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22

33
import { useMutation, useQueryClient } from "@tanstack/react-query"
44
import { format } from "date-fns"
5-
import { CalendarIcon, ChevronDownIcon, Plus, Search, X } from "lucide-react"
6-
import { useRouter } from "next/navigation"
5+
import { ChevronDownIcon, Plus } from "lucide-react"
76
import { useCallback, useEffect, useState } from "react"
8-
import { start } from "repl"
97
import { toast } from "sonner"
108
import { Button } from "@/components/ui/button"
119
import { Calendar } from "@/components/ui/calendar"

src/app/dashboard/(active)/telegram/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import { Group, Shield, Sparkle, Users } from "lucide-react"
2+
import Image from "next/image"
23
import Link from "next/link"
4+
import telegramSvg from "@/assets/svg/telegram.svg"
35
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
46

57
export default function TelegramIndex() {
68
return (
79
<div className="container py-8 px-2 flex flex-col gap-4">
8-
<h2 className="text-accent-foreground text-3xl font-bold">Telegram</h2>
10+
<h2 className="text-accent-foreground text-3xl font-bold flex gap-2 items-center">
11+
<Image alt="telegram logo" src={telegramSvg} className="size-7" />
12+
Telegram
13+
</h2>
914
<div className="gap-4 flex justify-start flex-wrap items-center">
1015
<Link href="/dashboard/telegram/groups">
1116
<Card className="w-90 hover:bg-accent transition-colors">

src/assets/svg/azure.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/svg/telegram.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)