Skip to content

Commit 8cf5180

Browse files
committed
UI bug fix
1 parent cbb3080 commit 8cf5180

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/app/(user)/cart/page.js

+13-6
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ function CartPage() {
1414
const { user } = data || {};
1515
const { cart } = user || {};
1616

17-
if (isLoading) return <SpinnerComponent />;
17+
if (isLoading)
18+
return (
19+
<div className="mb-96 mt-48">
20+
<SpinnerComponent />
21+
</div>
22+
);
1823

1924
if (!user || !data)
2025
return (
21-
<div className="container lg:max-w-screen-lg py-6 my-28">
26+
<div className="container lg:max-w-screen-lg py-6 mb-96 mt-36 px-8">
2227
<p className="text-slate-100 font-bold mb-4">
2328
برای مشاهده سبد خرید لطفا به حساب خود وارد شوید
2429
</p>
@@ -30,7 +35,7 @@ function CartPage() {
3035

3136
if (paying)
3237
return (
33-
<section className="mt-10 mb-6">
38+
<section className="mt-10 mb-60">
3439
<div className="flex justify-center relative">
3540
<div className="receipt-section flex flex-col items-center gap-8">
3641
<SpinnerComponent />
@@ -42,16 +47,18 @@ function CartPage() {
4247

4348
if (!user.cart?.products || user.cart?.products.length === 0)
4449
return (
45-
<div className="container lg:max-w-screen-lg py-6 my-28 max-sm:flex max-sm:flex-col max-sm:items-center">
46-
<p className="text-slate-100 font-bold mb-4">دوره ای در سبد خرید شما وجود ندارد</p>
50+
<div className="container lg:max-w-screen-lg py-6 mb-96 mt-36 max-sm:flex max-sm:flex-col max-sm:items-center">
51+
<p className="text-slate-100 font-bold mb-4">
52+
دوره ای در سبد خرید شما وجود ندارد
53+
</p>
4754
<Link href="/courses" className="text-lg font-bold btn inline-block">
4855
رفتن به صفحه دوره ها
4956
</Link>
5057
</div>
5158
);
5259

5360
return (
54-
<section className="container mt-4 lg:max-w-screen-lg px-4">
61+
<section className="container mt-4 lg:max-w-screen-lg px-4 mb-60">
5562
<div className="flex items-center text-secondary-800 mb-5">
5663
<h1 className="font-black text-2xl text-slate-50">سبد خرید شما</h1>
5764
</div>

0 commit comments

Comments
 (0)