Skip to content

Commit

Permalink
refactor(saas): Updating UI
Browse files Browse the repository at this point in the history
  • Loading branch information
alifarooq9 committed Apr 25, 2024
1 parent 168e675 commit d402e39
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion starterkits/saas/src/app/(web)/_components/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Balancer from "react-wrap-balancer";
export function WebFooter() {
return (
<div className="py-8">
<footer className="container grid grid-cols-2 gap-8 rounded-lg border border-border p-8">
<footer className="container grid grid-cols-2 gap-8 rounded-lg border border-border bg-background p-8">
<div className="grid place-content-between gap-2">
<div className="grid gap-2">
<Link
Expand Down
21 changes: 7 additions & 14 deletions starterkits/saas/src/app/(web)/_components/header-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { usePathname } from "next/navigation";
import { Badge } from "@/components/ui/badge";
import { cn, isLinkActive } from "@/lib/utils";
import { navigation } from "@/config/header";
import { buttonVariants } from "@/components/ui/button";

/**
* For adding a new navigation item:
Expand All @@ -18,30 +17,24 @@ export function WebHeaderNav() {

return (
<nav className="flex items-center justify-center">
<ul className="flex items-center gap-1">
<ul className="flex items-center gap-8">
{navigation.map((item) => (
<li key={item.id}>
<Link
href={item.href}
className={cn(
buttonVariants({
variant: isLinkActive(item.href, pathname)
? "secondary"
: "ghost",
size: "default",
}),
"text-sm hover:underline hover:underline-offset-4",
isLinkActive(item.href, pathname)
? "font-semibold"
: "font-medium",
)}
>
<span>{item.label}</span>
{item.badge && (
<Badge
variant={
isLinkActive(item.href, pathname)
? "background"
: "secondary"
}
variant="outline"
size="sm"
className="ml-2"
className="ml-1"
>
{item.badge}
</Badge>
Expand Down

0 comments on commit d402e39

Please sign in to comment.