Skip to content

Commit

Permalink
fixes css for donate card and background image
Browse files Browse the repository at this point in the history
  • Loading branch information
jackavh committed Jun 9, 2024
1 parent f01174e commit f2da8b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
31 changes: 13 additions & 18 deletions frontend/src/app/(web app)/donations/page.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
"use client";

import Image from "next/image";

import DonateApp from "@/components/payment/DonateApp";
import DonateApp from "../../../components/payment/DonateApp";

export default function App() {
return (
<>
<div className="relative">
<Image
src="https://i.imgur.com/YTP7cfp.png"
alt="Background"
width={1920}
height={1080}
priority
/>
<div className="absolute top-0 left-0 w-full h-full bg-black opacity-40"></div>
</div>
<DonateApp className="absolute left-1/3 top-48 transform -translate-x-1/2" />
</>
<div
className="w-full h-[100vh] flex justify-center items-center"
style={{
backgroundImage:
"url(https://firebasestorage.googleapis.com/v0/b/flot-dev.appspot.com/o/static-uploads%2Fimage.png?alt=media&token=44407612-8c8e-492a-988a-2c211d2926bb)",
backgroundPosition: "center",
backgroundSize: "cover",
backgroundRepeat: "no-repeat",
}}
>
<DonateApp />
</div>
);
}
2 changes: 1 addition & 1 deletion frontend/src/components/payment/DonateApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import PhysicalDonationForm from "./PhysicalDonationForm";
import SuccessCard from "./SuccessCard";

type DonateAppProps = {
className: string;
className?: string;
};

export default function DonateApp({ className }: DonateAppProps) {
Expand Down

0 comments on commit f2da8b6

Please sign in to comment.