Skip to content

Commit

Permalink
fix: updated buttons to rounded
Browse files Browse the repository at this point in the history
  • Loading branch information
khushijohri2001 committed Oct 19, 2023
1 parent d9e38c6 commit c7b3126
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
6 changes: 3 additions & 3 deletions app/(marketing)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ export default function Home() {
<Link
href="https://discord.com/invite/vee94km4Wh"
target="_blank"
className={cn(buttonVariants({ variant: "outline" }))}
className={cn(buttonVariants({ variant: "outlineRounded" }))}
>
Join Discord Community
Join Community
</Link>
<Link href="/batch" className={cn(buttonVariants())}>
<Link href="/batch" className={cn(buttonVariants({ variant: "rounded" }))}>
Get Started
</Link>
</div>
Expand Down
4 changes: 2 additions & 2 deletions components/layout/site-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ export default function SiteFooter({}: Props) {
<Link
href="https://discord.com/invite/vee94km4Wh"
target="_blank"
className={`${cn(buttonVariants()) } md:flex md:min-w-fit`}
className={`${cn(buttonVariants({ variant: "rounded" })) } md:flex md:min-w-fit`}
>
Join Discord Community
Join Community
</Link>
<a
href="/batch/build/react/fundamentals"
Expand Down
11 changes: 3 additions & 8 deletions components/layout/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@ export default function SiteHeader({}: Props) {
<div className="container flex h-14 items-center md:gap-6 gap-9 md:px-8 px-0">
<MainNav items={navConfig} />
<ModeToggle />
{/* <a href="https://discord.com/invite/vee94km4Wh" target="_blank">
<Button className="hidden md:flex md:min-w-fit rounded-full">
Join Discord Community
</Button>
</a> */}

<Link
href="https://discord.com/invite/vee94km4Wh"
target="_blank"
className={`${cn(buttonVariants()) } hidden w-0 md:flex md:min-w-fit`}
className={`${cn(buttonVariants({ variant: "rounded" })) } hidden w-0 md:flex md:min-w-fit`}
>
Join Discord Community
Join Community
</Link>
</div>
</header>
Expand Down
8 changes: 4 additions & 4 deletions components/tracks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function Tracks({}: Props) {
</div>
<Link
href="/batch/learn/html/basic"
className={cn(buttonVariants(), "px-8 py-2 mt-4")}
className={cn(buttonVariants({ variant: "rounded" }), "px-8 py-2 mt-4")}
>
Join
</Link>
Expand All @@ -55,7 +55,7 @@ export default function Tracks({}: Props) {
</div>
<Link
href="/batch/dsa/loops"
className={cn(buttonVariants(), "px-8 py-2 mt-4")}
className={cn(buttonVariants({ variant: "rounded" }), "px-8 py-2 mt-4")}
>
Join
</Link>
Expand All @@ -77,7 +77,7 @@ export default function Tracks({}: Props) {
</div>
<Link
href="/batch/build/react/fundamentals"
className={cn(buttonVariants(), "px-8 py-2 mt-4")}
className={cn(buttonVariants({ variant: "rounded" }), "px-8 py-2 mt-4")}
>
Join
</Link>
Expand All @@ -99,7 +99,7 @@ export default function Tracks({}: Props) {
</div>
<Link
href="/batch/hire/hire"
className={cn(buttonVariants(), "px-8 py-2 mt-4")}
className={cn(buttonVariants({ variant: "rounded" }), "px-8 py-2 mt-4")}
>
Join
</Link>
Expand Down
3 changes: 3 additions & 0 deletions components/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ const buttonVariants = cva(
default: "bg-primary text-primary-foreground hover:bg-primary/90",
destructive:
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
rounded: "bg-primary text-primary-foreground hover:bg-primary/90 rounded-full",
outline:
"border border-input bg-background hover:bg-accent hover:text-accent-foreground",
outlineRounded:
"border border-input bg-background hover:bg-accent hover:text-accent-foreground rounded-full",
secondary:
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost: "hover:bg-accent hover:text-accent-foreground",
Expand Down

0 comments on commit c7b3126

Please sign in to comment.