Skip to content

Commit

Permalink
Take a stab at content updates 1
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed Feb 6, 2024
1 parent cbdf2ef commit cf0330c
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 17 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "vitest run && astro check && astro build",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"test": "vitest"
Expand Down
7 changes: 7 additions & 0 deletions src/components/Typeography.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ export const Em21: TypographicComponent = ({ children, className }) => (
<em className={clsx(SWITZER_BOLD_21, "not-italic", className)}>{children}</em>
);

export const SWITZER_REGULAR_17 =
"font-switzer font-normal text-[17px] leading-[25.5px]";

export const P17: TypographicComponent = ({ children, className }) => (
<p className={clsx(SWITZER_REGULAR_17, className)}>{children}</p>
);

// Another callout font

/** Desktop font metrics. */
Expand Down
109 changes: 93 additions & 16 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ import { ButtonLink } from "../components/ButtonLink.tsx";
import {
H1,
H2,
H3,
Em21,
Em24,
Em28,
P17,
P21,
P24,
P28,
PMedium,
} from "../components/Typeography.tsx";
Expand Down Expand Up @@ -146,35 +144,114 @@ const BLOG_POST_URL =

<!-- 'how it works' table -->
<div class="flex flex-col">
<!-- table entry -->
<div
class="flex flex-row flex-nowrap border-t border-b py-6 border-darkest items-center space-x-8"
class="flex flex-row flex-nowrap border-t border-b py-6 border-darkest items-start space-x-8"
>
<P21 className="flex-grow">
Voter registration, persuasion, and turnout
</P21>
<div class="flex-grow flex flex-col">
<P21>
Organize and mobilize specific communities and demographics
</P21>
<P17 className="mt-4 text-dark">
These organizations find, persuade, and mobilize individuals
in key constituencies such as middle-class workers (<a
href="https://www.workingamerica.org"
target="_blank"
class="cursor-pointer underline">Working America</a
>), moderate women (<a
href="https://www.galvanizeusa.org"
target="_blank"
class="cursor-pointer underline">Galvanize</a
>), suburban voters (<a
href="https://forwardmajority.org"
target="_blank"
class="cursor-pointer underline">Forward Majority</a
>), and others (<a
href="https://movement.vote"
target="_blank"
class="cursor-pointer underline">Movement Voter PAC</a
>).
</P17>
</div>
<PMedium className="flex-shrink-0">40%</PMedium>
</div>

<!-- table entry -->
<div
class="flex flex-row flex-nowrap border-b py-6 border-darkest items-center space-x-8"
class="flex flex-row flex-nowrap border-b py-6 border-darkest items-start space-x-8"
>
<P21 className="flex-grow">
Organizations that focus on specific communities and
demographics
</P21>
<div class="flex-grow flex flex-col">
<P21>Support Biden campaign &amp; competitive House races</P21>
<P17 className="mt-4 text-dark">
Campaigns are impactful because they can buy ads at discounted
rates and because they can legally coordinate with the party
and each other. For the House, <a
href="https://swingleft.org"
target="_blank"
class="cursor-pointer underline">Swing Left</a
> will allocate this fund across competitive races.
</P17>
</div>
<PMedium className="flex-shrink-0">20%</PMedium>
</div>

<!-- table entry -->
<div
class="flex flex-row flex-nowrap border-b py-6 border-darkest items-center space-x-8"
class="flex flex-row flex-nowrap border-b py-6 border-darkest items-start space-x-8"
>
<P21 className="flex-grow">Biden Campaign</P21>
<div class="flex-grow flex flex-col">
<P21>Improve data and other infrastructure</P21>
<P17 className="mt-4 text-dark">
<a
href="https://americavotes.org"
target="_blank"
class="cursor-pointer underline">America Votes</a
> and the <a
href="https://democrats.org"
target="_blank"
class="cursor-pointer underline">DNC</a
> maintain critical data warehouses and other infrastructure for
the ecosystem’s two sides: campaigns and “independent expenditure”
organizations
</P17>
</div>
<PMedium className="flex-shrink-0">20%</PMedium>
</div>

<!-- table entry -->
<div
class="flex flex-row flex-nowrap py-6 border-darkest items-center space-x-8"
class="flex flex-row flex-nowrap py-6 border-darkest items-start space-x-8"
>
<P21 className="flex-grow">Other competitive house races</P21>
<div class="flex-grow flex flex-col">
<P21>Execute and spread new evidence-based best practices</P21>
<P17 className="mt-4 text-dark">
<a
href="https://www.voterev.org"
target="_blank"
class="cursor-pointer underline">Vote Rev</a
> and <a
href="https://movementlabs.com"
target="_blank"
class="cursor-pointer underline">Movement Labs</a
> find and mobilize individuals who agree with us but aren’t regular
voters.
</P17>
</div>
<PMedium className="flex-shrink-0">20%</PMedium>
</div>

<!-- table entry -->
<div
class="flex flex-row flex-nowrap py-6 border-darkest items-start space-x-8"
>
<ButtonLink
title="Donate Now"
href={ACTBLUE_URL}
invert
className="!w-full !py-5 text-center"
client:load
/>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit cf0330c

Please sign in to comment.