-
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.
- Loading branch information
Showing
27 changed files
with
50 additions
and
172 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,36 +1,27 @@ | ||
--- | ||
import { getLangFromUrl, useTranslations } from "~/i18n/utils"; | ||
import { PersonImage } from "./PersonImage"; | ||
import type { Language } from "~/i18n"; | ||
import type { ComponentProps } from "astro/types"; | ||
import SocialMediaList from "./SocialMediaList.astro"; | ||
interface Props { | ||
type Props = ComponentProps<typeof SocialMediaList> & { | ||
name: string; | ||
lastRole: Record<Language, string>; | ||
img?: string; | ||
skill?: Record<Language, string>; | ||
hasMultipleRoles?: boolean; | ||
} | ||
img: string; | ||
info?: string; | ||
}; | ||
const { name, img, lastRole, skill, hasMultipleRoles = false } = Astro.props; | ||
const lang = getLangFromUrl(Astro.url); | ||
const t = useTranslations(lang); | ||
const { name, img, info, links = [] } = Astro.props; | ||
--- | ||
|
||
<div class="space-y-6"> | ||
<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> | ||
<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>} | ||
</div> | ||
<p> | ||
{skill || <br />} | ||
</p> | ||
<SocialMediaList links={links} /> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
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,24 +1,23 @@ | ||
--- | ||
import type { ComponentProps } from "astro/types"; | ||
import Person from "./Person.astro"; | ||
import team from "~/assets/data/team.json"; | ||
interface Props { | ||
members: ComponentProps<typeof Person>[]; | ||
} | ||
const { members } = Astro.props; | ||
--- | ||
|
||
<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> | ||
<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> |
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 was deleted.
Oops, something went wrong.
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,6 +24,7 @@ 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,6 +24,7 @@ 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,6 +24,7 @@ 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,6 +24,7 @@ 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,6 +24,7 @@ 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,6 +24,7 @@ const historyData = historyJson[lang]["skill17"]; | |
}} | ||
img={Skill09Image} | ||
contact="mailto:[email protected]" | ||
nationalTeam={[]} | ||
timelineEntries={Object.values(historyData)} | ||
additionalLinks={[ | ||
{ | ||
|