Skip to content

Commit

Permalink
Update banner
Browse files Browse the repository at this point in the history
  • Loading branch information
pjborowiecki committed Dec 15, 2023
1 parent ab481c7 commit 83834da
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/app/(app)/app/home/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ import { TopSellingItems } from "@/components/dashboard/top-selling-items"
export default function AppHomeDashboardPage(): JSX.Element {
return (
<div>
<Banner />
<div className="flex w-full max-w-8xl flex-col gap-5 p-5">
<Banner />

<div className="flex w-full flex-col gap-5 xl:flex-row">
<SalesActivity />
<InventorySummary />
Expand Down
18 changes: 10 additions & 8 deletions src/components/dashboard/banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ export function Banner(): JSX.Element {
className={
hidden
? "hidden"
: "relative flex gap-4 border-b bg-accent/50 px-7 py-5"
: "relative flex w-full gap-4 border-b bg-accent/50 p-5"
}
>
<div className="flex shrink-0 items-center gap-5">
<div className="flex w-1/2 items-center gap-5">
<Icons.creditCard
className="h-20 w-20 text-muted-foreground"
aria-hidden="true"
Expand All @@ -35,21 +35,23 @@ export function Banner(): JSX.Element {
</div>
</div>

<div className="flex flex-1 grow items-center justify-center">
<div className="flex w-1/2 items-center justify-center gap-4">
<Button
size="lg"
className="px-8 font-semibold uppercase"
aria-label="Enable online payments"
>
enable
enable now
</Button>

<Button
variant="ghost"
className="absolute right-0 top-2"
variant="secondary"
size="lg"
className="px-8 font-semibold uppercase"
aria-label="Hide promotional banner"
onClick={() => setHidden(true)}
aria-label="Close the promo banner"
>
<Icons.close aria-hidden="true" className="h-5 w-5" />
hide banner
</Button>
</div>
</div>
Expand Down

0 comments on commit 83834da

Please sign in to comment.