Skip to content

Commit

Permalink
Merge pull request #97 from feydan/80-donate-page
Browse files Browse the repository at this point in the history
Adding donation page with donation button
  • Loading branch information
Alisa1989 authored Jun 17, 2024
2 parents 24a8bd5 + 33265f7 commit 9344110
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 1 deletion.
23 changes: 23 additions & 0 deletions src/app/donate/donate.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client";
import DonateSectionLanding from "./donateSectionLanding";

/**
* Section type. Displays light or dark themes.
* @type {{light: string, dark: string}}
*/
export const SectionType = {
light: "light",
dark: "dark",
};

/**
* About page.
* @returns {JSX.Element}
*/
export default function Contact() {
return (
<div className="">
<DonateSectionLanding sectionType={SectionType.light} />
</div>
);
}
41 changes: 41 additions & 0 deletions src/app/donate/donateSectionLanding.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* Donate landing section.
* @returns {JSX.Element}
*/
export default function ContactSectionLanding({ sectionType }) {
return (
<section className={`general-section-${sectionType}`}>
<div
className={`general-section-${sectionType}-container contact-heading-underline`}
>
<h1 className={`general-heading-section`}>Donate</h1>
<h2 className={`contact-sub-heading`}>
Support<br></br> Our Mission
</h2>
</div>



<div className={`general-section-${sectionType}-container`}>
<p className={`contact-section-paragraph`}>
<span className={`paragraph-bold`}>
Choose the option that suits you best.
</span>{" "}
Make a one-time donation to support our mission instantly
{/*, or become a sustaining supporter by selecting the monthly donation option*/}
. Your tax-deductable donation fuels innovaction, empowers civic
engagement, and enhances public services while shaping a brighter
future for Sacramento. Thank you for your generous support!
</p>
<br />

<script async src="https://js.stripe.com/v3/buy-button.js"></script>

<stripe-buy-button
buy-button-id="buy_btn_1POWMWLuvTadPilhtpcuuZL1"
publishable-key="pk_live_51KlwVzLuvTadPilhP2f7hyPjlLqcDK804eFojbSZJOJhowUXFMfCvKKBha7fOfUYlGsTUZJzy4UbKmRSueQnIIqT00MDGq54rB"
></stripe-buy-button>
</div>
</section>
);
}
10 changes: 10 additions & 0 deletions src/app/donate/page.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Donate from './donate'


export default function DonatePage() {
return (
<>
<Donate></Donate>
</>
)
}
2 changes: 1 addition & 1 deletion src/components/AppNavbar/AppNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function AppNavbar() {
<Link href="/contact">Contact</Link>
</li>
<li className={`navbar-link`}>
<Link href="#">Donate</Link>
<Link href="/donate">Donate</Link>
</li>
<hr className={'navbar-underline'}/>
</ul>
Expand Down

0 comments on commit 9344110

Please sign in to comment.