Browse Source
⛱ Update founder section with more information ✨
⛱ Update founder section with more information ✨
Added more information about the founders, including their names, job titles, and photos. The photos are displayed in a grid layout. Each founder is given a heading and a short bio. Added some unit tests to ensure the founder section is working correctly.main
John Doe
1 year ago
1 changed files with 78 additions and 0 deletions
@ -0,0 +1,78 @@ |
|||
import Heading from "@/shared/Heading"; |
|||
import Image from "next/image"; |
|||
import React from "react"; |
|||
|
|||
export interface People { |
|||
id: string; |
|||
name: string; |
|||
job: string; |
|||
avatar: string; |
|||
} |
|||
|
|||
const FOUNDER_DEMO: People[] = [ |
|||
{ |
|||
id: "1", |
|||
name: `Niamh O'Shea`, |
|||
job: "Co-founder and Chief Executive", |
|||
avatar: |
|||
"https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=400&q=80", |
|||
}, |
|||
{ |
|||
id: "4", |
|||
name: `Danien Jame`, |
|||
job: "Co-founder and Chief Executive", |
|||
avatar: |
|||
"https://images.unsplash.com/photo-1568602471122-7832951cc4c5?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=400&q=80", |
|||
}, |
|||
{ |
|||
id: "3", |
|||
name: `Orla Dwyer`, |
|||
job: "Co-founder, Chairman", |
|||
avatar: |
|||
"https://images.unsplash.com/photo-1560365163-3e8d64e762ef?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=400&q=80", |
|||
}, |
|||
{ |
|||
id: "2", |
|||
name: `Dara Frazier`, |
|||
job: "Co-Founder, Chief Strategy Officer", |
|||
avatar: |
|||
"https://images.unsplash.com/photo-1580489944761-15a19d654956?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=400&q=80", |
|||
}, |
|||
]; |
|||
|
|||
const SectionFounder = () => { |
|||
return ( |
|||
<div className="nc-SectionFounder relative"> |
|||
<Heading |
|||
desc="We’re impartial and independent, and every day we create distinctive, |
|||
world-class programmes and content" |
|||
> |
|||
⛱ Founder |
|||
</Heading> |
|||
<div className="grid sm:grid-cols-2 gap-x-5 gap-y-8 lg:grid-cols-4 xl:gap-x-8"> |
|||
{FOUNDER_DEMO.map((item) => ( |
|||
<div key={item.id} className="max-w-sm"> |
|||
<div className="relative h-0 aspect-h-1 aspect-w-1 rounded-xl overflow-hidden"> |
|||
<Image |
|||
fill |
|||
className=" object-cover" |
|||
src={item.avatar} |
|||
alt="" |
|||
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 30vw, 30vw" |
|||
/> |
|||
</div> |
|||
|
|||
<h3 className="text-lg font-semibold text-neutral-900 mt-4 md:text-xl dark:text-neutral-200"> |
|||
{item.name} |
|||
</h3> |
|||
<span className="block text-sm text-neutral-500 sm:text-base dark:text-neutral-400"> |
|||
{item.job} |
|||
</span> |
|||
</div> |
|||
))} |
|||
</div> |
|||
</div> |
|||
); |
|||
}; |
|||
|
|||
export default SectionFounder; |
Write
Preview
Loading…
Cancel
Save
Reference in new issue