Skip to content

Commit

Permalink
fix: product navbar mobile is not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
ainunns committed Dec 5, 2024
1 parent a6c9ecc commit 13d7dc3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 30 deletions.
45 changes: 18 additions & 27 deletions resources/js/Layouts/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,39 +153,30 @@ export default function Navbar() {
(showingNavigationDropdown ? "block" : "hidden") + " sm:hidden"
}
>
{auth.user !== null && (
<div className="space-y-1 pb-3 pt-2">
<div className="space-y-1 pb-3 pt-2">
<ResponsiveNavLink
href={route("product.index")}
active={route().current("product.index")}
>
Product
</ResponsiveNavLink>
{auth.user !== null && auth.user.role === "user" && (
<ResponsiveNavLink
href={route("dashboard")}
active={route().current("dashboard")}
href={route("cart.index")}
active={route().current("cart.index")}
>
Dashboard
Cart
</ResponsiveNavLink>
)}
{auth.user !== null && auth.user.role === "user" && (
<ResponsiveNavLink
href={route("product.index")}
active={route().current("product.index")}
href={route("transaction.index")}
active={route().current("transaction.index")}
>
Product
Transaction
</ResponsiveNavLink>
{auth.user !== null && auth.user.role === "user" && (
<ResponsiveNavLink
href={route("cart.index")}
active={route().current("cart.index")}
>
Cart
</ResponsiveNavLink>
)}
{auth.user !== null && auth.user.role === "user" && (
<ResponsiveNavLink
href={route("transaction.index")}
active={route().current("transaction.index")}
>
Transaction
</ResponsiveNavLink>
)}
</div>
)}

)}
</div>
{auth.user !== null ? (
<div className="border-t border-gray-200 pb-1 pt-4">
<div className="px-4">
Expand Down
6 changes: 3 additions & 3 deletions resources/js/Pages/Welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,15 @@ export default function Welcome() {
</Typography>
</div>
<div className="flex flex-col lg:flex-row gap-6">
<div className="rounded-lg bg-primary-700 p-4 h-[150px] flex flex-col justify-center">
<div className="rounded-lg bg-primary-700 p-4 min-h-[150px] flex flex-col justify-center">
<Typography className="text-white">
"The quality of the furniture is outstanding! My living room has
never looked better. The delivery was smooth, and the assembly was
so easy. Highly recommend this store!"
</Typography>
<Typography className="text-white">- Emily J.</Typography>
</div>
<div className="rounded-lg bg-secondary-500 p-4 h-[150px] flex flex-col justify-center">
<div className="rounded-lg bg-secondary-500 p-4 min-h-[150px] flex flex-col justify-center">
<div>
<Typography>
"I love my new dining table set! It’s sturdy, elegant, and fits
Expand All @@ -202,7 +202,7 @@ export default function Welcome() {
<Typography>- James T.</Typography>
</div>
</div>
<div className="rounded-lg bg-primary-700 p-4 h-[150px] flex flex-col justify-center">
<div className="rounded-lg bg-primary-700 p-4 min-h-[150px] flex flex-col justify-center">
<div>
<Typography className="text-white">
"Affordable prices, premium quality, and excellent designs. The
Expand Down

0 comments on commit 13d7dc3

Please sign in to comment.