diff --git a/components/companyCard.jsx b/components/companyCard.jsx new file mode 100644 index 0000000..7d524b2 --- /dev/null +++ b/components/companyCard.jsx @@ -0,0 +1,25 @@ +import Image from "next/image"; +import Link from "next/link"; +export default function CompanyCard({ json, basePath }) { + const style = "relative " + "h-28 w-28"; // larger: "h-48 w-48" + return ( + + {json.name} + + ); +} diff --git a/components/companySection.jsx b/components/companySection.jsx new file mode 100644 index 0000000..6fab3ab --- /dev/null +++ b/components/companySection.jsx @@ -0,0 +1,19 @@ +import CompanyCard from "./companyCard"; + +export default function CompanySection({ group, basePath }) { + return ( +
+
+ {group.companies.map((company, index) => ( + + ))} +
+
+ ); +} diff --git a/config/companies.json b/config/companies.json new file mode 100644 index 0000000..699e82d --- /dev/null +++ b/config/companies.json @@ -0,0 +1,51 @@ +[ + { + "companies": [ + { + "name": "Rocket Companies", + "link": "https://www.myrocketcareer.com/", + "image": "rocket-company.png" + }, + { + "name": "PwC", + "link": "https://www.pwc.com/", + "image": "pwc.png" + }, + { + "name": "Bloomberg", + "link": "https://www.bloomberg.com/", + "image": "bloomberg.png" + }, + { + "name": "Dominos", + "link": "https://www.dominos.com/", + "image": "dominos.png" + }, + { + "name": "Figma", + "link": "https://www.figma.com/", + "image": "figma.png" + }, + { + "name": "Discover", + "link": "https://www.discover.com/", + "image": "discover.png" + }, + { + "name": "Capital One", + "link": "https://www.capitalone.com/", + "image": "capital-one.png" + }, + { + "name": "Nissan", + "link": "https://www.nissan-global.com/", + "image": "nissan.png" + }, + { + "name": "Rockstar Games", + "link": "https://www.rockstargames.com/", + "image": "rockstar-games.png" + } + ] + } +] diff --git a/pages/index.jsx b/pages/index.jsx index 70e5b8b..5e3fed4 100644 --- a/pages/index.jsx +++ b/pages/index.jsx @@ -4,6 +4,7 @@ import Hero from "@/components/hero"; import Icon from "@/components/icon"; import Layout from "@/components/layout"; import SponsorSection from "@/components/sponsorSection"; +import CompanySection from "@/components/companySection"; import Timeline from "@/components/timeline"; import Wave from "@/components/wave"; import Wave180 from "@/components/wave180"; @@ -14,7 +15,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { useState } from "react"; -export default function Home({ sponsors, projects, timeline, communityImages }) { +export default function Home({ companies, sponsors, projects, timeline, communityImages }) { sponsors[0].tier = "MDST is made possible by our sponsors"; const router = useRouter(); const basePath = router.basePath; @@ -127,6 +128,12 @@ export default function Home({ sponsors, projects, timeline, communityImages }) +
+

+ Companies We Worked With: +

+ +
); } @@ -218,9 +225,10 @@ function Carousel({ projects, basePath }) { export async function getStaticProps() { const sponsors = loadStaticData("sponsors.json"); + const companies = loadStaticData("companies.json"); const projects = loadStaticData("homepage.json"); const timeline = loadStaticData("timeline.json"); const communityImages = loadStaticData("communityImages.json"); - return { props: { sponsors, projects, timeline, communityImages } }; + return { props: { companies, sponsors, projects, timeline, communityImages } }; } diff --git a/public/images/worked-with/bloomberg.png b/public/images/worked-with/bloomberg.png new file mode 100644 index 0000000..f2ce5a5 Binary files /dev/null and b/public/images/worked-with/bloomberg.png differ diff --git a/public/images/worked-with/capital-one.png b/public/images/worked-with/capital-one.png new file mode 100644 index 0000000..cce121d Binary files /dev/null and b/public/images/worked-with/capital-one.png differ diff --git a/public/images/worked-with/discover.png b/public/images/worked-with/discover.png new file mode 100644 index 0000000..a2dd830 Binary files /dev/null and b/public/images/worked-with/discover.png differ diff --git a/public/images/worked-with/dominos.png b/public/images/worked-with/dominos.png new file mode 100644 index 0000000..434779c Binary files /dev/null and b/public/images/worked-with/dominos.png differ diff --git a/public/images/worked-with/figma.png b/public/images/worked-with/figma.png new file mode 100644 index 0000000..4958830 Binary files /dev/null and b/public/images/worked-with/figma.png differ diff --git a/public/images/worked-with/nissan.png b/public/images/worked-with/nissan.png new file mode 100644 index 0000000..2836b92 Binary files /dev/null and b/public/images/worked-with/nissan.png differ diff --git a/public/images/worked-with/pwc.png b/public/images/worked-with/pwc.png new file mode 100644 index 0000000..72a9a9d Binary files /dev/null and b/public/images/worked-with/pwc.png differ diff --git a/public/images/worked-with/rocket-company.png b/public/images/worked-with/rocket-company.png new file mode 100644 index 0000000..36a044a Binary files /dev/null and b/public/images/worked-with/rocket-company.png differ diff --git a/public/images/worked-with/rockstar-games.png b/public/images/worked-with/rockstar-games.png new file mode 100644 index 0000000..1a378c3 Binary files /dev/null and b/public/images/worked-with/rockstar-games.png differ