add people
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user