-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add people page and temp. people data (#14)
* Add people page and people data * Fix missing import * Add website icon
- Loading branch information
Showing
21 changed files
with
212 additions
and
7 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
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.
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,62 @@ | ||
import Image from 'next/image' | ||
import SocialIcon from '@/components/social-icons' | ||
import { peopleData, PersonData } from './peopleData' | ||
|
||
function SocialLinks({ socials }: { socials: Record<string, string> }) { | ||
return ( | ||
<div className="mt-1 flex gap-2"> | ||
{socials.twitter && <SocialIcon kind="twitter" href={socials.twitter} size={5} />} | ||
{socials.github && <SocialIcon kind="github" href={socials.github} size={5} />} | ||
{socials.website && <SocialIcon kind="website" href={socials.website} size={5} />} | ||
{socials.mail && <SocialIcon kind="mail" href={`mailto:${socials.mail}`} size={5} />} | ||
{socials.linkedin && <SocialIcon kind="linkedin" href={socials.linkedin} size={5} />} | ||
</div> | ||
) | ||
} | ||
|
||
function PersonCard({ person }: { person: PersonData }) { | ||
return ( | ||
<div className="flex flex-col items-center"> | ||
<div className="relative mb-1 h-32 w-32"> | ||
<Image | ||
src={person.avatar} | ||
alt={person.name} | ||
fill | ||
className="rounded-full object-cover" | ||
sizes="(max-width: 128px) 100vw, 128px" | ||
/> | ||
</div> | ||
<h3 className="text-xl font-semibold">{person.name}</h3> | ||
<SocialLinks socials={person.socials} /> | ||
</div> | ||
) | ||
} | ||
|
||
export default function PeoplePage() { | ||
const currentMembers = peopleData.filter((person) => !person.isAlumni) | ||
const alumni = peopleData.filter((person) => person.isAlumni) | ||
|
||
return ( | ||
<div className="container mx-auto px-4 py-12"> | ||
<h1 className="mb-12 text-center text-4xl font-bold">Department Members</h1> | ||
|
||
<section className="mb-16"> | ||
<h2 className="mb-8 text-2xl font-semibold">Office</h2> | ||
<div className="flex flex-wrap gap-8"> | ||
{currentMembers.map((person) => ( | ||
<PersonCard key={person.name} person={person} /> | ||
))} | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<h2 className="mb-8 text-2xl font-semibold">Alumni</h2> | ||
<div className="flex flex-wrap gap-8"> | ||
{alumni.map((person) => ( | ||
<PersonCard key={person.name} person={person} /> | ||
))} | ||
</div> | ||
</section> | ||
</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,136 @@ | ||
import { StaticImageData } from 'next/image' | ||
import stinaImg from './images/stina.jpeg' | ||
import roseImg from './images/rose.gif' | ||
import raulImg from './images/raul.jpeg' | ||
import mpImg from './images/MP.jpeg' | ||
import martinImg from './images/martin.jpeg' | ||
import ligiImg from './images/ligi.jpg' | ||
import leaImg from './images/lea.jpeg' | ||
import kirillImg from './images/kirill.jpeg' | ||
import kaanImg from './images/Kaan.jpeg' | ||
import jacobImg from './images/jacob.jpeg' | ||
import helsImg from './images/hels.jpeg' | ||
import franziImg from './images/franzi.jpeg' | ||
import afriImg from './images/afri.jpeg' | ||
|
||
export interface PersonData { | ||
name: string | ||
avatar: StaticImageData | ||
isAlumni: boolean | ||
socials: { | ||
twitter?: string | ||
github?: string | ||
website?: string | ||
linkedin?: string | ||
} | ||
} | ||
|
||
export const peopleData: PersonData[] = [ | ||
{ | ||
name: 'ligi', | ||
avatar: ligiImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/mr_ligi', | ||
github: 'https://github.com/ligi', | ||
}, | ||
}, | ||
{ | ||
name: 'Afri', | ||
avatar: afriImg, | ||
isAlumni: false, | ||
socials: { | ||
github: 'https://github.com/q9f', | ||
website: 'https://q9f.cc/', | ||
}, | ||
}, | ||
{ | ||
name: 'Franziska', | ||
avatar: franziImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/_franzihei', | ||
github: 'https://github.com/franzihei', | ||
}, | ||
}, | ||
{ | ||
name: 'Jacob', | ||
avatar: jacobImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/_czepluch', | ||
github: 'https://github.com/czepluch', | ||
}, | ||
}, | ||
{ | ||
name: 'Kaan', | ||
avatar: kaanImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/kaanuzdogan', | ||
github: 'https://github.com/kuzdogan', | ||
}, | ||
}, | ||
{ | ||
name: 'Kirill', | ||
avatar: kirillImg, | ||
isAlumni: false, | ||
socials: { | ||
website: 'https://pimenov.cc/', | ||
}, | ||
}, | ||
{ | ||
name: 'Raul', | ||
avatar: raulImg, | ||
isAlumni: false, | ||
socials: {}, | ||
}, | ||
{ | ||
name: 'Stina', | ||
avatar: stinaImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/stinalinneag', | ||
}, | ||
}, | ||
{ | ||
name: 'Lea', | ||
avatar: leaImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/_schmitted', | ||
}, | ||
}, | ||
{ | ||
name: 'Rose', | ||
avatar: roseImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/roseighteth', | ||
}, | ||
}, | ||
{ | ||
name: 'Helena', | ||
avatar: helsImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/helsfoftroy', | ||
}, | ||
}, | ||
{ | ||
name: 'Martin', | ||
avatar: martinImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/MartinBreiten', | ||
}, | ||
}, | ||
{ | ||
name: 'MP', | ||
avatar: mpImg, | ||
isAlumni: false, | ||
socials: { | ||
twitter: 'https://twitter.com/MPtherealmvp', | ||
}, | ||
}, | ||
] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"3":3,"25":1,"ethberlin":25,"results":2,"sponsors":2,"judging":2,"transparency":1,"mentor":1,"bounties":1,"dod":11,"news":5,"foundation":1,"talkshow":1,"diffusion":2,"cogx":1,"zwei":7,"dappcon":1,"ethglobal":1,"meetup":1,"goerli":2,"hackathon":2,"collaboration":1,"culture":3,"blockstars":1,"critiquedao":1,"04":5,"experiences":1} | ||
{"3":3,"25":1,"ethberlin":25,"results":2,"sponsors":2,"judging":2,"transparency":1,"mentor":1,"bounties":1,"dod":11,"diffusion":2,"cogx":1,"zwei":7,"news":5,"dappcon":1,"ethglobal":1,"meetup":1,"goerli":2,"hackathon":2,"collaboration":1,"culture":3,"blockstars":1,"critiquedao":1,"foundation":1,"talkshow":1,"04":5,"experiences":1} |
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
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