Skip to content

Commit

Permalink
skip precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
nlebovits committed Oct 18, 2024
1 parent cb31eb2 commit fce9524
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 1 deletion.
44 changes: 44 additions & 0 deletions src/app/(content-pages)/donate/DonatePage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { ThemeButtonLink } from '@/components/ThemeButton';
import { ArrowUpRight } from '@phosphor-icons/react';
import Image from 'next/image';
import imageTransformProperty from '@/images/transform-a-property.png';

export default function SupportPage() {
return (
<div className="grid grid-cols-1 md:grid-cols-2 gap-10 items-center">
<div>
<h1 className="heading-3xl font-bold mb-6">
Support Clean & Green Philly
</h1>
<p>
Help us catalyze transformative investment in Philadelphia&#39;s
vacant properties. Your donation supports us in promoting data-driven
efforts to improve quality of life across Philadelphia through
strategic, place-based interventions.
</p>
<p className="mt-4">Thank you for supporting Clean & Green Philly!</p>
<ThemeButtonLink
className="text-white inline-flex mt-4"
href="https://fnd.us/clean-and-green-philly/pay"
target="_blank"
rel="noopener noreferrer"
color="primary"
label="Donate Now"
endContent={<ArrowUpRight aria-hidden="true" />}
aria-label="Open donation page in a new tab"
/>
</div>
<div className="flex justify-center items-center">
<div className="relative w-7/12 pb-[105%]">
<Image
src={imageTransformProperty}
alt="Transform a property in Philadelphia"
className="object-cover object-center rounded-lg"
fill
sizes="(max-width: 768px) 58vw, 29vw"
/>
</div>
</div>
</div>
);
}
16 changes: 16 additions & 0 deletions src/app/(content-pages)/donate/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { generateMetadata } from '@/utilities/generateMetaData';

const title = 'Donate';
const description = 'Donate to support Clean & Green Philly';
const url = '/donate';

export const metadata = generateMetadata({
title,
description,
url,
});

const DonateLayout = ({ children }: { children: React.ReactNode }) => {
return <>{children}</>;
};
export default DonateLayout;
15 changes: 15 additions & 0 deletions src/app/(content-pages)/donate/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
'use client';

import { NextUIProvider } from '@nextui-org/react';
import { FC } from 'react';
import DonatePage from './DonatePage';

const Donate: FC = () => {
return (
<NextUIProvider>
<DonatePage />
</NextUIProvider>
);
};

export default Donate;
7 changes: 6 additions & 1 deletion src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Navbar, NavbarBrand, NavbarContent } from '@nextui-org/react';
import { PiBinoculars, PiKey, PiTree, PiInfo } from 'react-icons/pi';
import { PiBinoculars, PiKey, PiTree, PiInfo, PiHeart } from 'react-icons/pi';
import Image from 'next/image';
import Link from 'next/link';
import IconLink from './IconLink';
Expand Down Expand Up @@ -65,6 +65,11 @@ const Header = () => (
text="About"
href="/about"
/>
<IconLink
icon={<PiHeart className="h-6 w-6" />}
text="Donate"
href="/donate"
/>
</ul>
</NavbarContent>
</Navbar>
Expand Down

0 comments on commit fce9524

Please sign in to comment.