Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Changed location of donation via check info. Closes Issue #1239
Browse files Browse the repository at this point in the history
  • Loading branch information
cbj0hns0n committed Jun 22, 2022
1 parent 0f7ad81 commit 151d728
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
1 change: 1 addition & 0 deletions components/common/CommonStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const PostText = tw.div`flex mt-1 pt-8 mb-12 w-full mx-auto`;
export const PostTextContainer = tw.div`max-w-2xl w-full mx-auto`;
export const NewsletterPostText = tw.div`max-w-2xl mb-12 w-full mx-auto`;
export const Paragraph = tw.p`text-lg mb-5 leading-relaxed`;
export const Address = tw.address`text-lg mb-5 leading-relaxed`;
export const H1 = tw.h1`font-bold text-3xl lg:text-4xl leading-tight mt-10 mb-4`;
export const H2 = tw.h2`font-bold text-2xl leading-tight mt-10 mb-4`;
export const H3 = tw.h3`font-bold text-xl leading-tight mt-10 mb-4`;
Expand Down
25 changes: 23 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions pages/_sites/[site]/donate.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ import {
ArticleTitle,
PostTextContainer,
PostText,
Paragraph,
Address,
Anchor
} from '../../../components/common/CommonStyles.js';
import { NextSeo } from 'next-seo';
import TwitterMeta from '../../../components/TwitterMeta';
import React from 'react';

const SectionContainer = tw.div`flex flex-col flex-nowrap items-center px-5 mx-auto max-w-7xl w-full`;
const WideContainer = styled.div(() => ({
Expand All @@ -37,6 +41,20 @@ export default function Donate({
}) {
const isAmp = false;
const router = useRouter();
const tncDonationInfo =
<>
<Paragraph>If you would like to make a tax-deductible donation by check, please mail it to our fiscal agent:</Paragraph>
<Address>
Tiny News Collective<br />
1500 Chestnut Street #2113<br />
Philadelphia, PA 19102<br />
</Address>
<Paragraph>If you have questions about your donations please contact:</Paragraph>
<Paragraph>Heather Bryant, Interim Executive Director</Paragraph>
<Paragraph>
<Anchor meta={siteMetadata} href='mailto:[email protected]'>[email protected]</Anchor>
</Paragraph>
</>;

// If the page is not yet generated, this will be displayed
// initially until getStaticProps() finishes running
Expand Down Expand Up @@ -111,6 +129,13 @@ export default function Donate({
wrap={true}
/>
</WideContainer>
<SectionContainer>
<PostText>
<PostTextContainer>
{tncDonationInfo}
</PostTextContainer>
</PostText>
</SectionContainer>

<NextSeo
title={localisedPage.headline}
Expand Down

0 comments on commit 151d728

Please sign in to comment.