-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add team alumni sections * change page.tsx to align with main * factor out constants * add config.json * fix page.tsx
- Loading branch information
1 parent
4823614
commit 97e740e
Showing
24 changed files
with
307 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
import Image from 'next/image'; | ||
import companies from './data/companies.json'; | ||
import useScreenSize from '../../src/hooks/useScreenSize'; | ||
import { TABLET_BREAKPOINT } from '../../src/consts'; | ||
import { MemberCard } from './MemberGroup'; | ||
import alumniMembers from '../../../backend/src/members-archive/fa21.json'; | ||
import config from '../../config.json'; | ||
|
||
const AlumniDisplay = () => ( | ||
<div className="flex justify-center bg-[#F6F6F6] pb-36"> | ||
<div className="xs:mx-5 md:mx-10 lg:mx-20 xl:mx-60 max-w-5xl"> | ||
<h2 className="font-semibold md:text-[32px] xs:text-2xl">Alumni & Inactive Members</h2> | ||
<div | ||
className="grid lg:grid-cols-4 md:grid-cols-3 xs:grid-cols-2 md:gap-10 | ||
xs:gap-x-1.5 xs:gap-y-5 md:mt-10 xs:mt-5" | ||
> | ||
{alumniMembers.members.map((member, index) => | ||
index <= 5 ? ( | ||
<a href={member.linkedin ?? undefined}> | ||
<MemberCard | ||
{...member} | ||
roleDescription={member.roleDescription as RoleDescription} | ||
cardState={undefined} | ||
image={'/martha.png'} | ||
/> | ||
</a> | ||
) : ( | ||
<></> | ||
) | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
const BeyondDTI = () => { | ||
const { width } = useScreenSize(); | ||
const insertIndex = width < TABLET_BREAKPOINT ? 8 : 7; | ||
return ( | ||
<div className="flex justify-center items-center bg-[#E4E4E4] py-20 "> | ||
<div className="grid md:grid-cols-6 xs:grid-cols-4 w-full place-items-center md:gap-5 max-w-5xl"> | ||
{companies.icons.map((icon, index) => ( | ||
<> | ||
<img src={icon.src} alt={icon.alt} key={icon.alt} className="scale-50" /> | ||
{index === insertIndex && ( | ||
<div className="flex flex-col items-center gap-6 col-span-2 row-span-2"> | ||
<h1 className="font-semibold md:text-[32px] xs:text-[20px]">Beyond DTI</h1> | ||
<p className="md:text-[22px] xs:text-sm !leading-7"> | ||
Our members and alumni are <span className="font-bold">all over the world</span>, | ||
but here are just a few places you'll find the DTI family continue their success | ||
into industry. | ||
</p> | ||
</div> | ||
)} | ||
</> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const TeamAlumni = () => { | ||
const isApplicationOpen = Date.parse(config.applicationDeadline) >= Date.now(); | ||
return ( | ||
<div className="flex flex-col"> | ||
<AlumniDisplay /> | ||
<BeyondDTI /> | ||
<div className="flex justify-center bg-[#EDEDED] lg:py-32 md:py-16 xs:py-10"> | ||
<div className="flex md:flex-row xs:flex-col lg:gap-[60px] md:gap-10 xs:gap-8 md:items-center"> | ||
<Image | ||
src="/images/full-team.png" | ||
alt="team picture" | ||
width={412} | ||
height={312} | ||
className="lg:w-[412px] xs:w-[360px] rounded-xl" | ||
/> | ||
<div className="flex flex-col gap-[20px] items-start"> | ||
<h1 className="font-semibold lg:text-[32px] md:text-2xl">Want to join the family?</h1> | ||
<p className="lg:text-[22px] md:text-lg"> | ||
Applications for {config.semester} are{' '} | ||
{isApplicationOpen ? 'now open!' : 'now closed.'} | ||
</p> | ||
{isApplicationOpen && ( | ||
<button className="rounded-xl py-3 px-[14px] bg-[#A52424] text-white font-bold hover:bg-white hover:text-[#A52424]"> | ||
<a href={'/apply'} target="_blank" rel="noopener noreferrer"> | ||
Apply here | ||
</a> | ||
</button> | ||
)} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default TeamAlumni; |
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,24 @@ | ||
{ | ||
"icons": [ | ||
{ "src": "/icons/company-icons/adobe.svg", "alt": "adobe" }, | ||
{ "src": "/icons/company-icons/amazon.svg", "alt": "amazon" }, | ||
{ "src": "/icons/company-icons/apple.svg", "alt": "apple" }, | ||
{ "src": "/icons/company-icons/capitalone.svg", "alt": "capital-one" }, | ||
{ "src": "/icons/company-icons/datadog.svg", "alt": "datadog" }, | ||
{ "src": "/icons/company-icons/goldman.svg", "alt": "goldman" }, | ||
{ "src": "/icons/company-icons/google.svg", "alt": "google" }, | ||
{ "src": "/icons/company-icons/ibm.svg", "alt": "ibm" }, | ||
{ "src": "/icons/company-icons/linkedin.svg", "alt": "linkedin" }, | ||
{ "src": "/icons/company-icons/mckinsey.svg", "alt": "mckinsey" }, | ||
{ "src": "/icons/company-icons/meta.svg", "alt": "meta" }, | ||
{ "src": "/icons/company-icons/microsoft.svg", "alt": "microsoft" }, | ||
{ "src": "/icons/company-icons/mongodb.svg", "alt": "mongodb" }, | ||
{ "src": "/icons/company-icons/robinhood.svg", "alt": "robinhood" }, | ||
{ "src": "/icons/company-icons/roblox.svg", "alt": "roblox" }, | ||
{ "src": "/icons/company-icons/salesforce.svg", "alt": "salesforce" }, | ||
{ "src": "/icons/company-icons/squarespace.svg", "alt": "squarespace" }, | ||
{ "src": "/icons/company-icons/tesla.svg", "alt": "tesla" }, | ||
{ "src": "/icons/company-icons/uber.svg", "alt": "uber" }, | ||
{ "src": "/icons/company-icons/ycombinator.svg", "alt": "ycombinator" } | ||
] | ||
} |
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,4 @@ | ||
{ | ||
"semester": "Spring 2024", | ||
"applicationDeadline": "February 1, 2024 11:59:59" | ||
} |
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.
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.
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.
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.
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.
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.
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.
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.
Oops, something went wrong.