Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:about us page fixes #182

Merged
merged 2 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions app/(site)/(aefeup)/about/MenuDescription.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ const MenuDescription = ({ sections }: Props) => {
return (sections.length > 0 &&
<div className="mx-auto max-w-7xl">
<SectionHeader
title="Departamentos"
subtitle="Departamentos"
title="Pelouros"
rubuy-74 marked this conversation as resolved.
Show resolved Hide resolved
subtitle="Conhece os departamentos que compõem a tua AEFEUP e quais as suas áreas de atuação!"
/>

<motion.div
Expand All @@ -51,9 +51,9 @@ const MenuDescription = ({ sections }: Props) => {
>
<div
ref={menuRef}
className="w-full flex items-start gap-8 flex-col sm:flex-row"
className="w-full flex items-start gap-8 flex-col md:flex-row"
>
<div className="flex flex-col gap-4 w-full sm:w-1/4">
<div className="flex flex-col gap-4 w-full md:w-1/4">
{sections.map((section, index) => (
<button
key={index}
Expand All @@ -80,8 +80,10 @@ const MenuDescription = ({ sections }: Props) => {
{sections[selected]?.description}
</p>

<div className="flex flex-col sm:flex-row justify-center gap-4 mb-6">
{sections[selected].members.map((person) => (<Avatar person={person as Person} />))}
<div className="flex flex-col items-center">
<div className="flex flex-col items-center sm:grid sm:grid-cols-2 lg:flex lg:flex-row justify-center gap-4 mb-6">
{sections[selected].members.map((person) => (<Avatar person={person as Person} />))}
</div>
</div>

<div className="space-y-6">
Expand Down
40 changes: 22 additions & 18 deletions components/Avatar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Avatar = ({ person }: Props) => {
const photo = person.photo as Media;

return (
<div className="animate_top group max-w-50 flex flex-col justify-between rounded-lg border border-stroke bg-white p-5 shadow-solid-10 dark:border-strokedark dark:bg-blacksection dark:shadow-none hover:shadow-solid-4 dark:hover:bg-hoverdark">
<div className="animate_top group min-h-72 w-50 flex flex-col justify-around rounded-lg border border-stroke bg-primary p-5 shadow-solid-10 dark:border-strokedark dark:bg-blacksection dark:shadow-none hover:shadow-solid-4 dark:hover:bg-hoverdark">
<div>
<Image
src={photo?.url ?? DefaultAvatarImage.src}
Expand All @@ -30,25 +30,29 @@ const Avatar = ({ person }: Props) => {
height={80}
className="w-20 h-20 object-cover mx-auto rounded-full"
/>
<h6 className="text-para2 font-medium text-black dark:text-white text-center">
{person.name}
</h6>
{person.position && <p className="text-sm text-gray-500 dark:text-gray-400 text-center mt-1">
<div className="mt-3">
<h6 className="text-2xl font-medium text-white dark:text-white text-center">
{person.name}
</h6>
</div>
</div>
<div className="">
{person.position && <p className="text-sm text-gray-300 dark:text-gray-400 text-center mt-1">
{(person.position as Position).name}
</p>}
</div>
<div className="flex justify-center gap-2.5 mt-2">
{person.socials?.map((social) => (
<a
key={social.type}
href={social.link}
target="_blank"
rel="noopener noreferrer"
className="group/btn inline-flex items-center gap-2.5 font-medium text-gray-400 dark:text-manatee transition-all duration-300 hover:text-primary dark:hover:text-primary"
>
{symbols[social.type]}
</a>
))}
<div className="flex justify-center gap-2.5 mt-2">
{person.socials?.map((social) => (
<a
key={social.type}
href={social.link}
target="_blank"
rel="noopener noreferrer"
className="group/btn inline-flex items-center gap-2.5 font-medium text-gray-300 dark:text-manatee transition-all duration-300 hover:text-white dark:hover:text-primary"
>
{symbols[social.type]}
</a>
))}
</div>
</div>
</div>
);
Expand Down