Skip to content

Commit

Permalink
Fix RWD staff
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Feb 1, 2025
1 parent abf7526 commit 42546a2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion public/locales/fr/staff.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"companyLogo": "/images/logo/opengento.svg",
"companyUrl": "https://opengento.fr/",
"linkedin": "https://www.linkedin.com/in/thomas-klein/",
"role": "Chargée de communication",
"role": "Secrétaire",
"photo": "/images/staff/thomas_klein.jpeg",
"biography": ""
},
Expand Down
2 changes: 1 addition & 1 deletion src/app/staff/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function Page() {
{t('staff:description')}
</Typography>
</ContentMedia>
<div className="grid grid-cols-3 gap-8 gap-y-12">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8 gap-y-12">
{staffMembers
.map((staff) => (
<div
Expand Down
20 changes: 10 additions & 10 deletions src/components/Person/Person.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,31 @@ const Person = ({ person }: { person: PersonProps }) => {
return (
<>
{width < 768 ? (
<div className={classNames(
"flex flex-row gap-2 rounded-full",
bgClass
)}>
<div className="flex flex-row gap-2 rounded-full">
<Image
src={person.photo}
alt={person.name}
width={135}
height={135}
className="min-w-[135px] rounded-full relative aspect-squareobject-cover overflow-hidden"
className={classNames(
"min-w-[135px] rounded-full relative aspect-squareobject-cover overflow-hidden",
bgClass
)}
/>
<PersonCard person={person} />
</div>
) : (
<>
<div className={classNames(
"flex flex-col relative rounded-full",
bgClass
)}>
<div className="flex flex-col relative rounded-full">
<Image
src={person.photo}
alt={person.name}
width={165}
height={165}
className="min-w-[165px] rounded-full relative aspect-square object-cover overflow-hidden"
className={classNames(
"min-w-[165px] rounded-full relative aspect-square object-cover overflow-hidden",
bgClass
)}
/>
<div className="text-white font-semibold opacity-0 group-hover:opacity-100 transition-opacity duration-300 bg-primary w-fit px-4 py-2 rounded-full absolute bottom-0 left-1/2 -translate-x-1/2">
<div className="flex flex-row items-center gap-1">
Expand Down

0 comments on commit 42546a2

Please sign in to comment.