-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add partner-with-us page to landing page (#357)
feat: add Partner With Us and Contact Us sections, integrate Mailgun API, and refactor code
- Loading branch information
1 parent
2fbf0c2
commit e7382d4
Showing
12 changed files
with
280 additions
and
17 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ import { Button } from "@/components/primitives/button"; | |
import HeroSection from "@/components/general/heroSection"; | ||
import MemberRoles from "@/components/general/memberRoles"; | ||
import ProjectSection from "@/components/general/projectSection"; | ||
import PartnerSection from "@/components/general/partnerSection"; | ||
|
||
// const refreshProjects = async () => { | ||
// const res = await fetch( | ||
|
@@ -34,6 +35,10 @@ const text = { | |
joinUsText: | ||
"We are looking for students passionate about tech with varying levels of experience to join our teams! ", | ||
joinUsButton: "Join Our Team", | ||
partnerWithUsTitle: "Partner with us 🤝", | ||
partnerWithUsSubtitle: | ||
"Reach out to us through email or social media! You can also connect with us through [email protected]", | ||
partnerWithUsButton: "Contact us", | ||
}; | ||
|
||
const lpImageProps = { | ||
|
@@ -107,6 +112,24 @@ export default async function Home() { | |
> | ||
<ProjectSection projects={projects ?? []} /> | ||
</section> | ||
<section className="flex pb-8 flex-col md:flex-row items-start justify-between max-w-[1740px] px-8 w-full"> | ||
<div className="flex flex-col text-center items-center lg:items-start py-10 pl-0 lg:pl-10 md:pr-10 w-full"> | ||
<h1 | ||
className={`text-4xl font-bold ${nunitoSans.variable} font-sans pt-5`} | ||
> | ||
{text.partnerWithUsTitle} | ||
</h1> | ||
<p className="text-white text-center lg:text-left py-10"> | ||
{text.partnerWithUsSubtitle} | ||
</p> | ||
<Link href="/contact-us"> | ||
<Button className="p-3" size={"xl"} icon> | ||
<span className="text-lg px-4">{text.partnerWithUsButton}</span> | ||
</Button> | ||
</Link> | ||
</div> | ||
<PartnerSection /> | ||
</section> | ||
<FaqSection faqs={faqs} /> | ||
<MailingList /> | ||
<ExecSection /> | ||
|
8 changes: 6 additions & 2 deletions
8
src/components/general/infoCard.tsx → src/components/general/memberRoleCard.tsx
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
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
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,25 @@ | ||
interface PartnerCardProps { | ||
icon: React.ReactNode; | ||
title: string; | ||
description: string; | ||
} | ||
|
||
export default function PartnerCard({ | ||
icon, | ||
title, | ||
description, | ||
}: PartnerCardProps) { | ||
return ( | ||
<div className="flex flex-col m-2 text-white sm:items-start items-center p-2 rounded-lg w-full"> | ||
<div className="font-size-20 p-2 w-fit rounded-lg">{icon}</div> | ||
<div className="flex flex-col items-left"> | ||
<h2 className="text-indigo-400 break-normal md:px-1 md:py-2 min-w-24 md:min-w-44 lg:min-w-64 md:mt-2 md:text-2xl sm:text-left text-center"> | ||
{title} | ||
</h2> | ||
<p className="text-white mt-2 lg:text-base sm:text-left text-center"> | ||
{description} | ||
</p> | ||
</div> | ||
</div> | ||
); | ||
} |
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,40 @@ | ||
"use client"; | ||
import PartnerCard from "./partnerCard"; | ||
import Company from "./../../../public/icons/company.svg"; | ||
import Mentor from "./../../../public/icons/mentor.svg"; | ||
import useIsMobile from "@/app/lib/hooks/useIsMobile"; | ||
import { useMemo } from "react"; | ||
|
||
export default function MemberRoles() { | ||
const BREAKPOINT = 768; | ||
const isMobile = useIsMobile(BREAKPOINT); | ||
const SCALE = isMobile ? 0.75 : 1; // icons should be smaller on mobile devices | ||
const roles = useMemo( | ||
() => [ | ||
{ | ||
icon: <Company width={60 * SCALE} height={60 * SCALE} />, | ||
title: "For Companies and NPOs", | ||
description: | ||
"We are looking for companies and non-profits with exciting projects to work with. If you have a project for us, please reach out!", | ||
}, | ||
{ | ||
icon: <Mentor width={60 * SCALE} height={60 * SCALE} />, | ||
title: "For Mentors", | ||
description: | ||
"We are looking for experienced mentors who want to share their expertise with a community of aspiring developers and designers. Interested? Please get in touch!", | ||
}, | ||
], | ||
[SCALE], | ||
); | ||
|
||
return ( | ||
<div | ||
className="flex sm:flex-row flex-col items-center lg:items-start sm:px-28 px-8 w-full" | ||
id={"partner"} | ||
> | ||
{roles.map((role, index) => { | ||
return <PartnerCard key={index} {...role} />; | ||
})} | ||
</div> | ||
); | ||
} |
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
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
Oops, something went wrong.