-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from feydan/80-donate-page
Adding donation page with donation button
- Loading branch information
Showing
4 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters