Skip to content

Commit

Permalink
Add Financials section with Form 990 on About Us page. (#387)
Browse files Browse the repository at this point in the history
This required a few, minor tweaks to the TextHeader component to allow
for arbitrary React content as well as styling tweaks.
  • Loading branch information
richardxia authored Mar 7, 2024
1 parent c2629e1 commit 37236a7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/components/grid-aware/TextHeader/TextHeader.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@
margin-top: 15px;
}

.description > :not(:first-child) {
margin-top: 15px;
}

/* We want this to have higher specificity than the :not(:first-child) selector
* above, so we attach the pseudoclass to the element name. */
.description > br:not(:first-child) {
margin-top: 0;
}

.description > h2 {
font: var(--font-body-large);
}

@media (--tablet-and-down) {
.description {
margin-top: 20px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/grid-aware/TextHeader/TextHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as s from "./TextHeader.module.css";

type TextHeaderProps = {
title: string;
description?: string;
description?: React.ReactNode;
large?: boolean;
hasBottomPadding?: boolean;
};
Expand Down
Binary file added src/pages/about/form-990-2022.pdf
Binary file not shown.
23 changes: 23 additions & 0 deletions src/pages/about/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import BaseHead from "../../components/BaseHead";
import ArticleSpotlightCard from "../../components/grid-aware/ArticleSpotlightCard";
import ImageHeader from "../../components/grid-aware/ImageHeader";
import Spacer from "../../components/grid-aware/Spacer";
import TextHeader from "../../components/grid-aware/TextHeader";
import TwoParagraphBlock from "../../components/grid-aware/TwoParagraphBlock";
import Layout from "../../components/layout";
import articleSpotlightImage from "../images/laura-barerra-vera-cropped.png";
import darcelJackson from "./darcel-jackson.png";
import form990_2022 from "./form-990-2022.pdf";
import teamImage from "./sheltertech-team.png";

export default () => (
Expand Down Expand Up @@ -62,6 +64,27 @@ export default () => (
alt: "Team members posing for a group photo.",
}}
/>
<TextHeader
title="Financials"
description={
<>
<h2>2022</h2>
<ul>
<li>
<a href={form990_2022}>2022 Form 990</a>
</li>
</ul>
<br />
<p>
ShelterTech is a 501(c)(3) tax-exempt organization. All donations to
ShelterTech are tax-exempt to the extent allowed by law. For more
information about our financial statements, please contact{" "}
<a href="mailto:info@sheltertech.org">info@sheltertech.org</a>
</p>
</>
}
/>
<Spacer heightDesktop="40px" heightMobile="20px" />
<TwoParagraphBlock
isAbout
title="A note from our Founder, Darcel Jackson"
Expand Down

0 comments on commit 37236a7

Please sign in to comment.