1
1
import { title , subtitle } from "@/components/primitives" ;
2
2
import { Placeholder } from "@/components/placeholder" ;
3
3
import { peopleList , PeopleList , Person } from "@/config/people" ;
4
- import { Image } from "@nextui-org/image" ;
5
4
import { Link } from "@nextui-org/link" ;
6
5
import { Divider } from "@nextui-org/divider" ;
7
6
import { Card , CardHeader , CardBody } from "@nextui-org/card" ;
8
7
8
+ import Image from "next/image" ;
9
+ // import { Image } from "@nextui-org/image";
10
+
11
+
9
12
10
13
export default function PeoplePage ( ) {
11
14
return (
@@ -46,22 +49,20 @@ function ExpandPerson(person: Person) {
46
49
)
47
50
}
48
51
49
-
50
52
export function PersonCard ( person : Person ) {
51
53
return (
52
- < Card className = "py-4 border-none" shadow = "none" >
54
+ < Card className = "py-4 border-none bg-transparent " shadow = "none" >
53
55
< CardBody >
54
- < div className = "grid grid-cols-4" >
56
+ < div className = "grid grid-cols-4 gap-4 " >
55
57
< div className = "col-span-1" >
56
- < div className = "relative aspect-[500/300] " >
58
+ < div className = "relative h-64 " >
57
59
< Image
58
- src = "https://scholar.googleusercontent.com/citations?view_op=medium_photo & user = 6 fqNXooAAAAJ & citpid = 1 "
60
+ src = { person . photo || "/favicon.ico" }
59
61
alt = { person . name }
60
- height = { 2 }
61
- radius = "none"
62
- // layout="fill"
63
- className = "h-full"
64
- // classNames={{ wrapper: "w-full min-h-full"}}
62
+ fill
63
+ style = { {
64
+ objectFit : 'cover' ,
65
+ } }
65
66
/>
66
67
</ div >
67
68
@@ -70,8 +71,8 @@ export function PersonCard(person: Person) {
70
71
< div className = "col-span-3 flex" >
71
72
< div className = "flex flex-col" >
72
73
< h2 className = { subtitle ( ) } > { person . name } </ h2 >
73
- < p className = "text-justify" > { person . intro } </ p >
74
- < Link href = { person . homepage } > Homepage</ Link >
74
+ < p className = "text-justify mb-4 " > { person . intro } </ p >
75
+ { person . homepage && < Link href = { person . homepage } > Homepage</ Link > }
75
76
</ div >
76
77
</ div >
77
78
0 commit comments