diff --git a/docs/adding-people.md b/docs/adding-people.md new file mode 100644 index 0000000..b6ab7f0 --- /dev/null +++ b/docs/adding-people.md @@ -0,0 +1,143 @@ +# Adding New People to the Team Page + +This guide explains how to add new team members to the website. The system is designed to automatically display people based on existing component files. + +## Current System + +Currently, only **Adnan Fatayerji** appears on the people page because only his component exists in `src/components/people/People_Adnan.tsx`. + +## How to Add a New Person + +To add a new team member, follow these steps: + +### 1. Create the Person's Component + +Create a new file: `src/components/people/People_[Name].tsx` + +Example for John Doe: +```typescript +import { PersonTemplate } from '@/components/PersonTemplate' + +export const data = [ + { + name: 'John Doe', + role: 'Software Engineer', + imageUrl: '/images/people/john_doe/john_doe.jpg', + xUrl: '#', + linkedinUrl: 'https://www.linkedin.com/in/johndoe/', + }, +] + +const biography = ` +

+ John is a passionate software engineer with expertise in modern web technologies. + He specializes in building scalable applications and has a keen interest in user experience design. +

+

+ With over 5 years of experience in the tech industry, John has worked on various projects + ranging from startups to enterprise applications. He believes in writing clean, maintainable code + and is always eager to learn new technologies. +

+` + +export function People_John() { + return +} +``` + +### 2. Create the Person's Page Route + +Create a directory and page: `src/app/people/John_Doe/page.tsx` + +```typescript +import { CallToAction } from '@/components/CallToAction' +import { Faqs } from '@/components/Faqs' +import { Footer } from '@/components/Footer' +import { Header_darkbg } from '@/components/Header_darkbg' +import { People_John } from '@/components/people/People_John' + +export default function JohnDoePage() { + return ( + <> + +
+ + + +
+