Skip to content

Commit f2da8b6

Browse files
committed
fixes css for donate card and background image
1 parent f01174e commit f2da8b6

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed
Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
1-
"use client";
2-
3-
import Image from "next/image";
4-
5-
import DonateApp from "@/components/payment/DonateApp";
1+
import DonateApp from "../../../components/payment/DonateApp";
62

73
export default function App() {
84
return (
9-
<>
10-
<div className="relative">
11-
<Image
12-
src="https://i.imgur.com/YTP7cfp.png"
13-
alt="Background"
14-
width={1920}
15-
height={1080}
16-
priority
17-
/>
18-
<div className="absolute top-0 left-0 w-full h-full bg-black opacity-40"></div>
19-
</div>
20-
<DonateApp className="absolute left-1/3 top-48 transform -translate-x-1/2" />
21-
</>
5+
<div
6+
className="w-full h-[100vh] flex justify-center items-center"
7+
style={{
8+
backgroundImage:
9+
"url(https://firebasestorage.googleapis.com/v0/b/flot-dev.appspot.com/o/static-uploads%2Fimage.png?alt=media&token=44407612-8c8e-492a-988a-2c211d2926bb)",
10+
backgroundPosition: "center",
11+
backgroundSize: "cover",
12+
backgroundRepeat: "no-repeat",
13+
}}
14+
>
15+
<DonateApp />
16+
</div>
2217
);
2318
}

frontend/src/components/payment/DonateApp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import PhysicalDonationForm from "./PhysicalDonationForm";
1111
import SuccessCard from "./SuccessCard";
1212

1313
type DonateAppProps = {
14-
className: string;
14+
className?: string;
1515
};
1616

1717
export default function DonateApp({ className }: DonateAppProps) {

0 commit comments

Comments
 (0)