Skip to content
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
21 changes: 18 additions & 3 deletions components/home/Personality.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,24 @@ const Personality = () => {
</div>

<div className="w-full md:w-1/2 flex flex-col p-6 md:p-10 lg:p-12 overflow-y-auto">
<div className="mb-6">
<h2 className="text-3xl font-bold font-header mb-2 text-primary">PERSONALITY OF THE WEEK</h2>
<p className="text-lg text-gray-500 font-medium">Celebrating Excellence</p>
<div className="mb-6 flex justify-between items-start gap-4">
<div>
<h2 className="text-3xl font-bold font-header mb-2 text-primary">PERSONALITY OF THE WEEK</h2>
<p className="text-lg text-gray-500 font-medium">Celebrating Excellence</p>
</div>
{personality.linkedin && (
<a
href={personality.linkedin}
target="_blank"
rel="noopener noreferrer"
className="mt-2 p-3 bg-[#0077b5] text-white rounded-lg hover:bg-[#006097] transition-all duration-300 shadow-md hover:shadow-lg transform hover:-translate-y-0.5"
title="Connect on LinkedIn"
>
<svg className="w-7 h-7" fill="currentColor" viewBox="0 0 24 24" aria-hidden="true">
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 21.227.792 22 1.771 22h20.451C23.2 22 24 21.227 24 20.271V1.729C24 .774 23.2 0 22.225 0z" />
</svg>
</a>
)}
</div>

<div className="text-gray-700 leading-relaxed space-y-4">
Expand Down
46 changes: 24 additions & 22 deletions hooks/usePOTW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ import { gql } from "graphql-request";
import { contentfulClient } from "../lib/contentful-client";

export interface POTWItem {
_id: string;
image: {
url: string;
description: string;
title: string;
};
description: {
json: any;
};
_id: string;
image: {
url: string;
description: string;
title: string;
};
description: {
json: any;
};
linkedin?: string;
}

interface POTWCollection {
personalityOfTheWeekCollection: {
items: POTWItem[]
}
personalityOfTheWeekCollection: {
items: POTWItem[]
}
}

const GET_POTW = gql`
Expand All @@ -34,19 +35,20 @@ const GET_POTW = gql`
description {
json
}
linkedin
}
}
}`

export const usePOTW = () => {
return useQuery({
queryKey: ["pots"],
queryFn: async () => {
const data = await contentfulClient.request<POTWCollection>(GET_POTW);
if (data.personalityOfTheWeekCollection.items.length === 0) {
return null;
}
return data.personalityOfTheWeekCollection.items;
},
});
return useQuery({
queryKey: ["pots"],
queryFn: async () => {
const data = await contentfulClient.request<POTWCollection>(GET_POTW);
if (data.personalityOfTheWeekCollection.items.length === 0) {
return null;
}
return data.personalityOfTheWeekCollection.items;
},
});
};
4 changes: 2 additions & 2 deletions lib/data/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const teamMembers: TeamMember[] = [
major: "Geomatic Engineering",
description: "As a Lead Developer together with Joy, Obrempong was a driving force behind the entire GESA platform. He seamlessly bridged the gap between backend architecture and frontend elegance, implementing both the secure core infrastructure and the stunning, interactive user interfaces. His full-stack expertise ensured a performant, pixel-perfect experience from the database to the screen.",
image: "/images/Obrempong.jpg",
funFact: "A young daring Ghanaian, totally out of his comfort zone living his epic vision for Africa and Ghana, with hunger in his bones.",
funFact: "A young daring Ghanaian, totally out of his comfort zone living his epic vision for the Church, Africa and Ghana, with hunger in his bones.",
socials: {
github: "https://github.com/Obrempong-1",
linkedin: "https://www.linkedin.com/in/obrempong-kwabena-osei-wusu-7b0217257/"
Expand All @@ -78,7 +78,7 @@ export const teamMembers: TeamMember[] = [
{
name: "Albert Agyapong Yeboah (Logical)",
role: "UI Designer",
year: "3rd Year",
year: "4th Year",
major: "Computer Engineering",
description: "A creative powerhouse with a deep background in graphics design, Logical brought the GESA platform to life through his expert use of Figma. He meticulously crafted the web interfaces, establishing the premium visual identity that balances aesthetic appeal with intuitive user experience.",
image: "/images/Albert.jpg",
Expand Down