-
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 branch 'main' into rename-skill-09
- Loading branch information
Showing
27 changed files
with
182 additions
and
49 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/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,42 @@ | ||
--- | ||
import type { ComponentProps } from "astro/types"; | ||
import SocialMediaList from "./SocialMediaList.astro"; | ||
import type { Language } from "~/i18n"; | ||
import { getLangFromUrl, useTranslations } from "~/i18n/utils"; | ||
import PersonImage from "./PersonImage.astro"; | ||
type Props = ComponentProps<typeof SocialMediaList> & { | ||
interface Props { | ||
name: string; | ||
img: string; | ||
info?: string; | ||
}; | ||
lastRole: Record<Language, string>; | ||
imagePath?: string; | ||
skill?: Record<Language, string>; | ||
hasMultipleRoles?: boolean; | ||
} | ||
const { name, img, info, links = [] } = Astro.props; | ||
const { | ||
name, | ||
imagePath, | ||
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 imagePath={imagePath} /> | ||
<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,23 @@ | ||
--- | ||
import { Image } from "astro:assets"; | ||
import { clsx } from "clsx"; | ||
import WsgHandsImage from "~/assets/img/wsg-hands.svg"; | ||
interface Props { | ||
imagePath?: string; | ||
} | ||
const { imagePath } = Astro.props; | ||
const images = import.meta.glob<{ default: ImageMetadata }>( | ||
"/src/assets/**/*.{jpeg,jpg,png,gif,webp}", | ||
); | ||
--- | ||
|
||
<Image | ||
class={clsx( | ||
"mx-auto h-40 w-40 rounded-full object-cover shadow-lg xl:h-56 xl:w-56", | ||
imagePath && "p-5", | ||
)} | ||
src={imagePath ? images[imagePath]() : WsgHandsImage} | ||
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 team from "~/assets/data/team.json"; | ||
import Person from "./Person.astro"; | ||
interface Props { | ||
members: ComponentProps<typeof Person>[]; | ||
} | ||
const { members } = Astro.props; | ||
--- | ||
|
||
<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"]} | ||
imagePath={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 TeamImage from "~/assets/img/team.webp"; | ||
import { getLangFromUrl, localeParams, useTranslations } from "~/i18n/utils"; | ||
import Hero from "../../components/Hero.astro"; | ||
import TeamList from "../../components/team/Team.astro"; | ||
import Layout from "../../layouts/Layout.astro"; | ||
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} /> | ||
<TeamList /> | ||
</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]["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]["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]["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]["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]["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]["skill17"]; | |
}} | ||
img={Skill09Image} | ||
contact="mailto:[email protected]" | ||
nationalTeam={[]} | ||
timelineEntries={Object.values(historyData)} | ||
additionalLinks={[ | ||
{ | ||
|