add people

This commit is contained in:
2025-07-22 15:09:30 +02:00
parent 5437cae055
commit 6e613aad17
47 changed files with 1443 additions and 87 deletions

View File

@@ -1,13 +1,14 @@
import Link from 'next/link'
import { getAllPeopleData, PersonData } from '@/lib/peopleData'
import { getAllPeopleDataSync, PersonData } from '@/lib/peopleData'
// Function to convert name to URL slug
function nameToSlug(name: string): string {
return name.replace(/\s+/g, '_')
// Convert to lowercase and replace spaces with underscores
return name.replace(/\s+/g, '_').toLowerCase()
}
export function PeopleHero() {
const people = getAllPeopleData()
const people = getAllPeopleDataSync()
return (
<div className="bg-white py-24 sm:py-32">