Skip to content

Commit

Permalink
Complete staff page
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Feb 1, 2025
1 parent 58b9abf commit abf7526
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 36 deletions.
Binary file added public/images/media/faq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 26 additions & 26 deletions public/locales/fr/staff.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
"photoBg": 5,
"biography": ""
},
{
"name": "Thomas Klein",
"company": "Opengento",
"companyLogo": "/images/logo/opengento.svg",
"companyUrl": "https://opengento.fr/",
"linkedin": "https://www.linkedin.com/in/thomas-klein/",
"role": "Chargée de communication",
"photo": "/images/staff/thomas_klein.jpeg",
"biography": ""
},
{
"name": "Cannelle Lemnos",
"company": "Ati4 Group",
Expand All @@ -73,27 +83,6 @@
"photoBg": 6,
"biography": ""
},
{
"name": "Patricia Poncy",
"company": "Platform.sh",
"companyLogo": "/images/logo/platformsh.svg",
"companyUrl": "https://platform.sh/",
"linkedin": "https://www.linkedin.com/in/patriciaponcy",
"role": "Agency Partner Manager Western EU",
"photo": "/images/staff/patricia_poncy.png",
"photoBg": 3,
"biography": ""
},
{
"name": "Thomas Klein",
"company": "Opengento",
"companyLogo": "/images/logo/opengento.svg",
"companyUrl": "https://opengento.fr/",
"linkedin": "https://www.linkedin.com/in/thomas-klein/",
"role": "Chargée de communication",
"photo": "/images/staff/thomas_klein.jpeg",
"biography": ""
},
{
"name": "Ceyhun Kaplan",
"company": "Blackbird",
Expand All @@ -106,14 +95,14 @@
"biography": ""
},
{
"name": "Elodie Guiroux",
"name": "Patricia Poncy",
"company": "Platform.sh",
"companyLogo": "/images/logo/platformsh.svg",
"companyUrl": "https://platform.sh/",
"linkedin": "https://www.linkedin.com/in/elodie-guiroux/",
"role": "Events Marketing Manager",
"photo": "/images/staff/elodie_guiroux.png",
"photoBg": 2,
"linkedin": "https://www.linkedin.com/in/patriciaponcy",
"role": "Agency Partner Manager Western EU",
"photo": "/images/staff/patricia_poncy.png",
"photoBg": 3,
"biography": ""
},
{
Expand All @@ -126,6 +115,17 @@
"photo": "/images/staff/olivier_haesen.png",
"photoBg": 4,
"biography": ""
},
{
"name": "Elodie Guiroux",
"company": "Platform.sh",
"companyLogo": "/images/logo/platformsh.svg",
"companyUrl": "https://platform.sh/",
"linkedin": "https://www.linkedin.com/in/elodie-guiroux/",
"role": "Events Marketing Manager",
"photo": "/images/staff/elodie_guiroux.png",
"photoBg": 2,
"biography": ""
}
]
}
2 changes: 1 addition & 1 deletion src/app/code-de-conduite/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ContentMedia from "@/components/ContentMedia/ContentMedia";

export default function Page() {
return (
<Container size="large" className="flex flex-col gap-8 my-8">
<Container className="flex flex-col gap-8 my-8">
<ContentMedia>
<Typography
variant="h1"
Expand Down
2 changes: 1 addition & 1 deletion src/app/mentions-legales/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Image from "next/image";

export default function Page() {
return (
<Container size="large" className="flex flex-col gap-8 my-8">
<Container className="flex flex-col gap-8 my-8">
<ContentMedia>
<Typography
variant="h1"
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Home() {
<div className="content-media-sections flex flex-col gap-12 py-12">
<div id="faq">
<ContentMedia
imageUrl="/images/faq.png"
imageUrl="/images/media/faq.png"
imagePosition="right"
imageWidth="40%"
title="Besoin d'aide ?"
Expand Down
48 changes: 42 additions & 6 deletions src/app/staff/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import {PersonProps} from "@/components/Person/PersonProps";
import Person from "@/components/Person/Person";
import useDataProvider from "@/hooks/useDataProvider";
import PersonPopIn from "@/components/Person/PersonPopIn";
import ButtonLink from "@/components/ButtonLink/ButtonLink";
import {IoIosArrowForward} from "react-icons/io";

export default function Page() {
const { t } = useTranslation(['staff']);
const { t } = useTranslation(['staff', 'common']);
const dataProvider = useDataProvider();
const staffMembers = dataProvider.useStaffs();
const [selectedStaff, setSelectedStaff] = React.useState<PersonProps | null>(null);
Expand Down Expand Up @@ -45,7 +47,7 @@ export default function Page() {
}

return (
<Container size="large" className="flex flex-col gap-8 my-8">
<Container className="flex flex-col gap-8 my-8">
<ContentMedia>
<Typography
variant="h1"
Expand All @@ -61,14 +63,11 @@ export default function Page() {
>
{t('staff:subtitle')}
</Typography>

{renderImages()}

<Typography color="dark" className="whitespace-pre-wrap">
{t('staff:description')}
</Typography>
</ContentMedia>

<div className="grid grid-cols-3 gap-8 gap-y-12">
{staffMembers
.map((staff) => (
Expand All @@ -81,14 +80,51 @@ export default function Page() {
</div>
))}
</div>
<ContentMedia
imageUrl="/images/media/faq.png"
imagePosition="left"
imageWidth="40%"
>
<div className="flex flex-col gap-6 h-full justify-center">
<Typography
variant="subtitle1"
weight="semibold"
color="primary"
>
Rejoignez-nous à Meet Magento France 2025 !
</Typography>
<Typography color="dark">
Réservez votre place dès maintenant et rejoignez-nous pour un événement riche en échanges, en apprentissages et en opportunités !
</Typography>
<div className="flex flex-row flex-wrap gap-8">
<ButtonLink
variant="secondary-invert"
href="/#programs"
iconPosition="right"
icon={<IoIosArrowForward />}
>
Je découvre la programmation
</ButtonLink>
<ButtonLink
variant="secondary-invert"
href={t('common:ticketingUrl')}
target="_blank"
rel="noopener"
iconPosition="right"
icon={<IoIosArrowForward />}
>
Je prend mon billet
</ButtonLink>
</div>
</div>
</ContentMedia>
{selectedStaff && (
<PersonPopIn
isOpen={!!selectedStaff}
onClose={handleCloseModal}
selectedPerson={selectedStaff}
/>
)}

</Container>
);
}
2 changes: 1 addition & 1 deletion src/layouts/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const Footer = () => {
{
content: {
type: 'link',
href: '/mentions-legales#staff',
href: '/staff',
text: 'Les organisateurs'
},
className: "w-full font-semibold hover:text-orange mb-2"
Expand Down

0 comments on commit abf7526

Please sign in to comment.