From b262ce70082dba48af050ee139c09c5952930117 Mon Sep 17 00:00:00 2001 From: Aman Varshney Date: Sat, 24 May 2025 22:10:06 +0530 Subject: [PATCH] add discord button --- apps/web/public/icon/discord.svg | 1 + .../app/(home)/_components/stack-builder.tsx | 12 +++++++++ apps/web/src/app/(home)/page.tsx | 27 +++++++++++++++++-- apps/web/src/lib/constant.ts | 8 +++--- bun.lock | 2 +- 5 files changed, 43 insertions(+), 7 deletions(-) create mode 100644 apps/web/public/icon/discord.svg diff --git a/apps/web/public/icon/discord.svg b/apps/web/public/icon/discord.svg new file mode 100644 index 0000000..5e7aa2e --- /dev/null +++ b/apps/web/public/icon/discord.svg @@ -0,0 +1 @@ + diff --git a/apps/web/src/app/(home)/_components/stack-builder.tsx b/apps/web/src/app/(home)/_components/stack-builder.tsx index dab5d54..94a3a25 100644 --- a/apps/web/src/app/(home)/_components/stack-builder.tsx +++ b/apps/web/src/app/(home)/_components/stack-builder.tsx @@ -17,6 +17,7 @@ import { } from "@/lib/constant"; import { stackParsers, stackQueryStatesOptions } from "@/lib/stack-url-state"; import { cn } from "@/lib/utils"; +import discordLogo from "@/public/icon/discord.svg"; import { Check, ClipboardCopy, @@ -1597,6 +1598,17 @@ const StackBuilder = () => { > + + discord{" "} + diff --git a/apps/web/src/app/(home)/page.tsx b/apps/web/src/app/(home)/page.tsx index 5ba93fe..20f4e4e 100644 --- a/apps/web/src/app/(home)/page.tsx +++ b/apps/web/src/app/(home)/page.tsx @@ -1,7 +1,9 @@ "use client"; import { Button } from "@/components/ui/button"; import { TECH_OPTIONS } from "@/lib/constant"; +import discordLogo from "@/public/icon/discord.svg"; import { Github, Star, Terminal } from "lucide-react"; +import Image from "next/image"; import Link from "next/link"; import { useEffect, useState } from "react"; import CodeContainer from "./_components/code-container"; @@ -165,6 +167,24 @@ export default function HomePage() { )} + + + @@ -208,10 +228,13 @@ export default function HomePage() { key={option.id} className="flex items-center gap-2 rounded border bg-background px-2 py-1" > - {option.icon && ( - {option.name} )} diff --git a/apps/web/src/lib/constant.ts b/apps/web/src/lib/constant.ts index e66befe..10c80bd 100644 --- a/apps/web/src/lib/constant.ts +++ b/apps/web/src/lib/constant.ts @@ -345,7 +345,7 @@ export const TECH_OPTIONS = { id: "pwa", name: "PWA", description: "Progressive Web App", - icon: "📱", + icon: "", color: "from-blue-500 to-blue-700", default: false, }, @@ -377,7 +377,7 @@ export const TECH_OPTIONS = { id: "husky", name: "Husky", description: "Git hooks & lint-staged", - icon: "🐶", + icon: "", color: "from-purple-500 to-purple-700", default: false, }, @@ -395,7 +395,7 @@ export const TECH_OPTIONS = { id: "todo", name: "Todo Example", description: "Simple todo application", - icon: "✅", + icon: "", color: "from-indigo-500 to-indigo-700", default: false, }, @@ -403,7 +403,7 @@ export const TECH_OPTIONS = { id: "ai", name: "AI Example", description: "AI integration example using AI SDK", - icon: "🤖", + icon: "", color: "from-purple-500 to-purple-700", default: false, }, diff --git a/bun.lock b/bun.lock index 24ea604..e18f31f 100644 --- a/bun.lock +++ b/bun.lock @@ -14,7 +14,7 @@ }, "apps/cli": { "name": "create-better-t-stack", - "version": "2.12.0", + "version": "2.13.0", "bin": { "create-better-t-stack": "dist/index.js", },