File tree Expand file tree Collapse file tree 5 files changed +9
-14
lines changed Expand file tree Collapse file tree 5 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -112,25 +112,20 @@ contract BlockBack is Ownable {
112
112
}
113
113
114
114
function withdrawCampaign (uint256 _id ) external payable {
115
- console.log (msg .sender );
116
115
Campaign storage campaign = s_idToCampaign[_id];
117
116
if (campaign.owner != msg .sender ) {
118
- console.log ("bruh " );
119
117
revert BlockBack__OnlyOwnerCanWithdraw ();
120
118
}
121
119
122
120
if (campaign.deadline > block .timestamp ) {
123
- console.log ("where? " );
124
121
revert BlockBack__DeadlineNotMet ();
125
122
}
126
123
127
124
campaign.status = CampaignStatus.Completed;
128
125
s_campaigns[_id] = campaign;
129
126
130
- console.log ("here " );
131
127
payable (msg .sender ).transfer (campaign.raisedAmount);
132
128
emit CampaignWithrawn (_id, msg .sender );
133
- console.log ("here " );
134
129
}
135
130
136
131
function withdraw () external onlyOwner {
Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ export default function CampaignPage({ params }: { params: { slug: string } }) {
87
87
return (
88
88
< >
89
89
< Navbar />
90
- < div className = "w-full flex justify-center items-center mt-10" >
90
+ < div className = "w-full flex justify-center items-center md: mt-10" >
91
91
{ campaign && (
92
- < div className = "flex w-full mx-72 gap-10" >
93
- < div className = "w-2/3 flex flex-col gap-2" >
92
+ < div className = "flex md:flex-row flex-col w-full lg:mx-30 xl: mx-72 gap-10" >
93
+ < div className = "md: w-2/3 flex flex-col gap-2" >
94
94
< img
95
95
src = { SERVER_ENDPOINTS . getImage ( campaign . imagePath ) }
96
96
className = "w-full max-h-56 object-cover rounded-lg"
@@ -100,7 +100,7 @@ export default function CampaignPage({ params }: { params: { slug: string } }) {
100
100
< h1 className = "text-3xl font-semibold" > { campaign . title } </ h1 >
101
101
< p className = "text-gray-400" > { campaign . description } </ p >
102
102
</ div >
103
- < div className = "w-1/3 flex flex-col gap-5" >
103
+ < div className = "md: w-1/3 flex flex-col gap-5" >
104
104
< div >
105
105
{ campaign . website && (
106
106
< a
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export default function RootLayout({
33
33
return (
34
34
< html lang = "en" >
35
35
< body
36
- className = { `${ inter . variable } ${ hankenGrotesk . variable } flex h-auto flex-col px-20 font-body pb-5` }
36
+ className = { `${ inter . variable } ${ hankenGrotesk . variable } flex h-auto flex-col px-5 md:px- 20 font-body pb-5` }
37
37
>
38
38
< Toaster position = "bottom-right" reverseOrder = { false } />
39
39
< WagmiProviderComp initialState = { initialState } >
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export default function Home() {
84
84
Finished
85
85
</ h1 >
86
86
</ div >
87
- < div className = "my-4 flex w-full gap-4" >
87
+ < div className = "my-4 flex w-full gap-4 flex-col md:flex-row " >
88
88
{ ( isPending || serverError || error ) && (
89
89
< div className = "h-full w-full flex items-center justify-center content-center py-40 text-xl" >
90
90
{ isPending
@@ -113,7 +113,7 @@ export default function Home() {
113
113
} )
114
114
. map ( ( campaign , key ) => (
115
115
< div
116
- className = "flex flex-col p-4 bg-magic-gray rounded-2xl w-1/3 gap-2 hover:cursor-pointer"
116
+ className = "flex flex-col p-4 bg-magic-gray rounded-2xl md: w-1/3 gap-2 hover:cursor-pointer"
117
117
key = { key }
118
118
onClick = { ( ) => router . push ( `/campaign/${ campaign . id } ` ) }
119
119
>
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import { MainIcon } from "./icons";
4
4
5
5
export default function Navbar ( ) {
6
6
return (
7
- < nav className = "flex justify-between p -10 font-sans items-center" >
7
+ < nav className = "flex justify-between py -10 font-sans items-center" >
8
8
< div className = "flex flex-row items-center gap-4" >
9
9
< MainIcon height = { 40 } width = { 40 } className = { "fill-accent-500" } />
10
10
< a href = "/" className = "text-3xl text-gray-100 font-bold tracking-wide" >
11
11
BlockBack
12
12
</ a >
13
13
</ div >
14
14
15
- < div className = "flex flex-row items-center gap-12 text-xl font-semibold text-gray-200 transition duration-300" >
15
+ < div className = "hidden lg: flex flex-row items-center gap-12 text-xl font-semibold text-gray-200 transition duration-300" >
16
16
< a href = "/manage" className = "hover:text-accent-500" >
17
17
Manage Campaigns
18
18
</ a >
You can’t perform that action at this time.
0 commit comments