-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Homepage to match designs * lint/pretty * Bump dependencies to fix audit warning * Less hacky full-width container, avoids horizontal scrollbar * prettier fix
- Loading branch information
Showing
15 changed files
with
163 additions
and
12 deletions.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,105 @@ | ||
import Image from "next/image"; | ||
|
||
import { rubik } from "@/utils/Fonts"; | ||
import { Col, Container, Row } from "react-bootstrap"; | ||
|
||
import asifKapadia from "@/assets/supporter_portraits/asif-kapadia-540.webp"; | ||
import carolVorderman from "@/assets/supporter_portraits/carol-vorderman-540.webp"; | ||
import dannyPrice from "@/assets/supporter_portraits/danny-price-540.webp"; | ||
import emmaKennedy from "@/assets/supporter_portraits/emma-kennedy-540.webp"; | ||
import femiOluwole from "@/assets/supporter_portraits/femi-oluwole-540.webp"; | ||
import grahamHughes from "@/assets/supporter_portraits/graham-hughes-540.webp"; | ||
import joshRussell from "@/assets/supporter_portraits/josh-russell-540.webp"; | ||
import lizWebster from "@/assets/supporter_portraits/liz-webster-540.webp"; | ||
import marinaPurkiss from "@/assets/supporter_portraits/marina-purkiss-540.webp"; | ||
import patsyStevenson from "@/assets/supporter_portraits/patsy-stevenson-540.webp"; | ||
import seanAdams from "@/assets/supporter_portraits/sean-adams-540.webp"; | ||
import supertanskiii from "@/assets/supporter_portraits/supertanskiii-540.webp"; | ||
import { StaticImageData } from "next/image"; | ||
|
||
const MovementSection = () => { | ||
const people = { | ||
asifKapadia: { name: "Asif Kapadia", image: asifKapadia }, | ||
carolVorderman: { name: "Carol Vorderman", image: carolVorderman }, | ||
dannyPrice: { name: "Danny Price", image: dannyPrice }, | ||
emmaKennedy: { name: "Emma Kennedy", image: emmaKennedy }, | ||
femiOluwole: { name: "Femi Oluwole", image: femiOluwole }, | ||
grahamHughes: { name: "Graham Hughes", image: grahamHughes }, | ||
patsyStevenson: { name: "Patsy Stevenson", image: patsyStevenson }, | ||
seanAdams: { name: "Sean Adams", image: seanAdams }, | ||
lizWebster: { name: "Liz Webster", image: lizWebster }, | ||
marinaPurkiss: { name: "Marina Purkiss", image: marinaPurkiss }, | ||
supertanskiii: { name: "Supertanskiii", image: supertanskiii }, | ||
joshRussell: { name: "Josh Russell", image: joshRussell }, | ||
}; | ||
|
||
return ( | ||
<section id="section-movement" className="section-light"> | ||
<Container className="py-4 py-md-5"> | ||
{/* PEOPLE */} | ||
<Row> | ||
<Col className="pb-3 pb-md-5"> | ||
<h2 className={`${rubik.className} fw-bolder fs-1`}> | ||
Join A Movement building voter power, beyond this election. | ||
</h2> | ||
</Col> | ||
</Row> | ||
</Container> | ||
|
||
<Container fluid className="p-0 mb-4 mb-md-5"> | ||
<Row xs={4} md={6} className="g-0"> | ||
{Object.keys(people).map((key) => { | ||
// TS isn't smart enough to work out `key` is just the keys from the people object, | ||
// so thinks they might not be a valid key for the object... | ||
// @ts-expect-error | ||
const name: string = people[key]["name"]; | ||
// @ts-expect-error | ||
const image: StaticImageData = people[key]["image"]; | ||
|
||
return ( | ||
<Col key={key}> | ||
<Image | ||
src={image} | ||
alt={`Photo of ${name}`} | ||
style={{ width: "100%", height: "100%" }} | ||
/> | ||
</Col> | ||
); | ||
})} | ||
</Row> | ||
</Container> | ||
|
||
{/* PLAN */} | ||
<Container> | ||
<Row xs={1} md={2}> | ||
<Col> | ||
<h3 className={`${rubik.className} fw-bolder fs-5`}>We show up</h3> | ||
<h4 className={`${rubik.className} fw-bolder fs-2`}> | ||
To get the tories out | ||
</h4> | ||
<p> | ||
In many places around the country, if we vote together for the | ||
most likely candidate to beat the Tory, out votes demolish them | ||
into tiny numbers. | ||
</p> | ||
</Col> | ||
<Col> | ||
<h3 className={`${rubik.className} fw-bolder fs-5`}> | ||
We stick together | ||
</h3> | ||
<h4 className={`${rubik.className} fw-bolder fs-2`}> | ||
To influence the next government | ||
</h4> | ||
<p> | ||
A bigger influence on the next government than the media that | ||
currently shape the narrative. We stick together offering our | ||
votes for the changes we want. | ||
</p> | ||
</Col> | ||
</Row> | ||
</Container> | ||
</section> | ||
); | ||
}; | ||
|
||
export default MovementSection; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.