-
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.
Merge pull request #299 from blz-it/team-page
- Loading branch information
Showing
27 changed files
with
172 additions
and
50 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,79 @@ | ||
[ | ||
{ | ||
"img": "/src/assets/img/team/Benjamin Frost.webp", | ||
"name": "Benjamin Frost", | ||
"lastRole": { "de": "Jury", "en": "Jury" }, | ||
"hasMultipleRoles": true | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Jonas Wanke.webp", | ||
"name": "Jonas Wanke", | ||
"lastRole": { "en": "Expert", "de": "Bundestrainer" }, | ||
"skill": { | ||
"de": "App-Entwicklung", | ||
"en": "Mobile Applications Development" | ||
}, | ||
"hasMultipleRoles": true | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Dr. Olaf Kappler.webp", | ||
"name": "Dr. Olaf Kappler", | ||
"lastRole": { "en": "Expert", "de": "Bundestrainer" }, | ||
"skill": { | ||
"de": "Software-Entwicklung", | ||
"en": "Software Applications Development" | ||
} | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Doreen Kappler.webp", | ||
"name": "Doreen Kappler", | ||
"lastRole": { "de": "Good Fairy", "en": "Good Fairy" } | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Glenn Skrzypczak.webp", | ||
"name": "Glenn Skrzypczak", | ||
"lastRole": { "en": "Expert", "de": "Bundestrainer" }, | ||
"skill": { | ||
"de": "Web-Entwicklung", | ||
"en": "Web Technologies" | ||
}, | ||
"hasMultipleRoles": true | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Elisa Boose.webp", | ||
"name": "Elisa Boose", | ||
"lastRole": { "en": "Trainer", "de": "Trainer" } | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Michael Boose.webp", | ||
"name": "Michael Boose", | ||
"lastRole": { "en": "Trainer", "de": "Trainer" } | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Joachim Schiller.webp", | ||
"name": "Joachim Schiller", | ||
"lastRole": { "de": "Jury", "en": "Jury" }, | ||
"hasMultipleRoles": true | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Justin Konratt.webp", | ||
"name": "Justin Konratt", | ||
"lastRole": { "de": "Jury", "en": "Jury" }, | ||
"hasMultipleRoles": true | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Kai Redmann.webp", | ||
"name": "Kai Redmann", | ||
"lastRole": { "en": "Workshop-Manager", "de": "Workshop Manager" } | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Lukas Fischer.webp", | ||
"name": "Lukas Fischer", | ||
"lastRole": { "en": "Workshop-Manager", "de": "Workshop Manager" } | ||
}, | ||
{ | ||
"img": "/src/assets/img/team/Thomas Steinfeld.webp", | ||
"name": "Thomas Steinfeld", | ||
"lastRole": { "en": "Mr. Speed Programming", "de": "Mr. Speed Programming" } | ||
} | ||
] |
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.
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
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 |
---|---|---|
@@ -1,27 +1,36 @@ | ||
--- | ||
import type { ComponentProps } from "astro/types"; | ||
import SocialMediaList from "./SocialMediaList.astro"; | ||
import { getLangFromUrl, useTranslations } from "~/i18n/utils"; | ||
import { PersonImage } from "./PersonImage"; | ||
import type { Language } from "~/i18n"; | ||
type Props = ComponentProps<typeof SocialMediaList> & { | ||
interface Props { | ||
name: string; | ||
img: string; | ||
info?: string; | ||
}; | ||
lastRole: Record<Language, string>; | ||
img?: string; | ||
skill?: Record<Language, string>; | ||
hasMultipleRoles?: boolean; | ||
} | ||
const { name, img, info, links = [] } = Astro.props; | ||
const { name, img, lastRole, skill, hasMultipleRoles = false } = Astro.props; | ||
const lang = getLangFromUrl(Astro.url); | ||
const t = useTranslations(lang); | ||
--- | ||
|
||
<div class="space-y-6"> | ||
<img | ||
class="mx-auto h-40 w-40 rounded-full object-cover shadow-lg xl:h-56 xl:w-56" | ||
src={img} | ||
alt="" | ||
/> | ||
<div class="space-y-2"> | ||
<div class="space-y-1 text-lg font-medium leading-6"> | ||
<h3>{name}</h3> | ||
{info && <p class="text-wsg-orange-500">{info}</p>} | ||
<PersonImage img={img} /> | ||
<div class="text-md text-center font-light"> | ||
<h3 class="mb-1 text-lg font-medium">{name}</h3> | ||
<div> | ||
<p class="inline-block"> | ||
{t(lastRole)} | ||
</p> | ||
<p class="inline-block"> | ||
{hasMultipleRoles && t({ de: "und mehr", en: "and more" })} | ||
</p> | ||
</div> | ||
<SocialMediaList links={links} /> | ||
<p> | ||
{skill || <br />} | ||
</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,18 @@ | ||
import clsx from "clsx"; | ||
|
||
export type PersonImageProps = { | ||
img?: string; | ||
}; | ||
|
||
export const PersonImage = ({ img }: PersonImageProps) => { | ||
return ( | ||
<img | ||
className={clsx( | ||
`mx-auto h-40 w-40 rounded-full object-cover shadow-lg xl:h-56 xl:w-56`, | ||
img || "p-5", | ||
)} | ||
src={img ?? "/imgs/wsg/wsg_hands.svg"} | ||
alt="" | ||
/> | ||
); | ||
}; |
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,23 +1,24 @@ | ||
--- | ||
import type { ComponentProps } from "astro/types"; | ||
import Person from "./Person.astro"; | ||
interface Props { | ||
members: ComponentProps<typeof Person>[]; | ||
} | ||
const { members } = Astro.props; | ||
import team from "~/assets/data/team.json"; | ||
--- | ||
|
||
<ul | ||
role="list" | ||
class="mx-auto space-y-16 sm:grid sm:grid-cols-2 sm:gap-16 sm:space-y-0 lg:max-w-5xl lg:grid-cols-3" | ||
> | ||
{ | ||
members.map((member) => ( | ||
<li> | ||
<Person {...member} /> | ||
</li> | ||
)) | ||
} | ||
</ul> | ||
<div class="bg-white py-16"> | ||
<div | ||
class="mx-8 grid grid-cols-2 gap-y-16 md:mx-24 md:grid-cols-3 lg:grid-cols-4" | ||
> | ||
{ | ||
team | ||
.sort((first, second) => first["name"].localeCompare(second["name"])) | ||
.map((member) => ( | ||
<Person | ||
name={member["name"]} | ||
img={member["img"]} | ||
lastRole={member["lastRole"]} | ||
skill={member["skill"]} | ||
hasMultipleRoles={member["hasMultipleRoles"]} | ||
/> | ||
)) | ||
} | ||
</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
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,17 @@ | ||
--- | ||
import { getLangFromUrl, localeParams, useTranslations } from "~/i18n/utils"; | ||
import Hero from "../../components/Hero.astro"; | ||
import TeamPage from "../../components/team/Team.astro"; | ||
import Layout from "../../layouts/Layout.astro"; | ||
import TeamImage from "~/assets/img/team.webp"; | ||
export const getStaticPaths = localeParams; | ||
const lang = getLangFromUrl(Astro.url); | ||
const t = useTranslations(lang); | ||
--- | ||
|
||
<Layout title={t({ de: "Unser Team", en: "Our Team" })}> | ||
<Hero title={t({ de: "Unser Team", en: "Our Team" })} img={TeamImage} /> | ||
<TeamPage /> | ||
</Layout> |
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 |
---|---|---|
|
@@ -24,7 +24,6 @@ const historyData = historyJson[lang]["skill09"]; | |
}} | ||
img={Skill09Image} | ||
contact="mailto:[email protected]" | ||
nationalTeam={[]} | ||
timelineEntries={Object.values(historyData)} | ||
additionalLinks={[ | ||
{ | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,6 @@ const historyData = historyJson[lang]["skill08"]; | |
}} | ||
img={Skill08Image} | ||
contact="mailto:[email protected]" | ||
nationalTeam={[]} | ||
timelineEntries={Object.values(historyData)} | ||
additionalLinks={[ | ||
{ | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,6 @@ const historyData = historyJson[lang]["skill17"]; | |
}} | ||
img={Skill09Image} | ||
contact="mailto:[email protected]" | ||
nationalTeam={[]} | ||
timelineEntries={Object.values(historyData)} | ||
additionalLinks={[ | ||
{ | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,6 @@ const historyData = historyJson[lang]["skill09"]; | |
}} | ||
img={Skill09Image} | ||
contact="mailto:[email protected]" | ||
nationalTeam={[]} | ||
timelineEntries={Object.values(historyData)} | ||
additionalLinks={[ | ||
{ | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,6 @@ const historyData = historyJson[lang]["skill08"]; | |
}} | ||
img={Skill08Image} | ||
contact="mailto:[email protected]" | ||
nationalTeam={[]} | ||
timelineEntries={Object.values(historyData)} | ||
additionalLinks={[ | ||
{ | ||
|
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 |
---|---|---|
|
@@ -24,7 +24,6 @@ const historyData = historyJson[lang]["skill17"]; | |
}} | ||
img={Skill09Image} | ||
contact="mailto:[email protected]" | ||
nationalTeam={[]} | ||
timelineEntries={Object.values(historyData)} | ||
additionalLinks={[ | ||
{ | ||
|