@@ -14,11 +14,16 @@ function CartPage() {
14
14
const { user } = data || { } ;
15
15
const { cart } = user || { } ;
16
16
17
- if ( isLoading ) return < SpinnerComponent /> ;
17
+ if ( isLoading )
18
+ return (
19
+ < div className = "mb-96 mt-48" >
20
+ < SpinnerComponent />
21
+ </ div >
22
+ ) ;
18
23
19
24
if ( ! user || ! data )
20
25
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 " >
22
27
< p className = "text-slate-100 font-bold mb-4" >
23
28
برای مشاهده سبد خرید لطفا به حساب خود وارد شوید
24
29
</ p >
@@ -30,7 +35,7 @@ function CartPage() {
30
35
31
36
if ( paying )
32
37
return (
33
- < section className = "mt-10 mb-6 " >
38
+ < section className = "mt-10 mb-60 " >
34
39
< div className = "flex justify-center relative" >
35
40
< div className = "receipt-section flex flex-col items-center gap-8" >
36
41
< SpinnerComponent />
@@ -42,16 +47,18 @@ function CartPage() {
42
47
43
48
if ( ! user . cart ?. products || user . cart ?. products . length === 0 )
44
49
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 >
47
54
< Link href = "/courses" className = "text-lg font-bold btn inline-block" >
48
55
رفتن به صفحه دوره ها
49
56
</ Link >
50
57
</ div >
51
58
) ;
52
59
53
60
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 " >
55
62
< div className = "flex items-center text-secondary-800 mb-5" >
56
63
< h1 className = "font-black text-2xl text-slate-50" > سبد خرید شما</ h1 >
57
64
</ div >
0 commit comments