add people

This commit is contained in:
2025-07-22 14:34:15 +02:00
parent f42f90782f
commit 5437cae055
7 changed files with 401 additions and 0 deletions

31
src/lib/peopleData.ts Normal file
View File

@@ -0,0 +1,31 @@
// This file dynamically imports all people data from components
// When new people components are added, they will automatically appear
export interface PersonData {
name: string
role: string
imageUrl: string
xUrl: string
linkedinUrl: string
}
// Import all existing people data
import { data as adnanData } from '@/components/people/People_Adnan'
// Function to get all people data
export function getAllPeopleData(): PersonData[] {
const allPeopleData: PersonData[] = []
// Add data from all existing people components
try {
allPeopleData.push(...adnanData)
} catch (error) {
console.error('Error loading Adnan data:', error)
}
// When new people components are created, add their imports here:
// import { data as newPersonData } from '@/components/people/People_NewPerson'
// allPeopleData.push(...newPersonData)
return allPeopleData
}