Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: homepage updates #184

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

An application to help run a book store.

![bookstore](https://github.com/dylants/bookstore/assets/1596740/29a06c8f-f8ba-43d1-9101-840be931ef23)

## Getting Started

_This app uses [bun](https://bun.sh/) for dependency management and script execution._
Expand Down
22 changes: 10 additions & 12 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,21 @@ function NavLink({
const buttonContent = (
<Button
variant="outline"
className="flex items-center gap-2 py-0 h-8 w-[150px]"
className="flex items-center gap-2 py-0 h-[60px] w-[200px] text-lg"
disabled={disabled}
>
{children}
</Button>
);

return (
<>
<div className="flex items-center">
{disabled ? (
<div className="h-[50px] flex items-center">{buttonContent}</div>
<>{buttonContent}</>
) : (
<Link href={path} className="h-[50px] flex items-center">
{buttonContent}
</Link>
<Link href={path}>{buttonContent}</Link>
)}
</>
</div>
);
}

Expand All @@ -45,21 +43,21 @@ export default function HomePage() {
<div className="flex flex-col w-full items-center mt-[80px] gap-4">
<h1>Bookstore</h1>
<Separator className="bg-customPalette-200 my-4" />
<div className="grid grid-cols-2 gap-x-8 gap-y-2">
<div className="grid grid-cols-2 gap-8">
<NavLink path="/checkout">
<ShoppingCartIcon size={14} />
<ShoppingCartIcon size={18} />
Checkout
</NavLink>
<NavLink path="/invoices">
<PackageOpenIcon size={14} />
<PackageOpenIcon size={18} />
Invoices
</NavLink>
<NavLink path="/orders">
<GiftIcon size={14} />
<GiftIcon size={18} />
Orders
</NavLink>
<NavLink path="#" disabled>
<ClipboardListIcon size={14} />
<ClipboardListIcon size={18} />
Reports
</NavLink>
</div>
Expand Down