Skip to content

Commit b47f88d

Browse files
committed
update
1 parent a4d1c8c commit b47f88d

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

app/people/page.tsx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export default function PeoplePage() {
1717
<Divider />
1818

1919
<ExpandPeople text={"PhD Students"} people={peopleList.phds} />
20+
<Divider />
21+
22+
<OtherExpandPerson text={"Master/Undergrad Students"} people={peopleList.masters_and_undergrad} />
2023

2124
</div>
2225
);
@@ -79,3 +82,26 @@ export function PersonCard(person: Person) {
7982
)
8083

8184
}
85+
86+
function OtherExpandPerson(person: Person) {
87+
return (
88+
<li key={person.name}>
89+
<OtherPersonCard {...person} />
90+
</li>
91+
)
92+
}
93+
94+
export function OtherPersonCard(person: Person) {
95+
return (
96+
<Card className="py-4 border-none" shadow="none">
97+
<CardBody>
98+
<div className="grid grid-cols-4">
99+
<div className="flex flex-col">
100+
<p className="text-justify"><strong>{person.name}:</strong> {person.position}</p>
101+
</div>
102+
</div>
103+
104+
</CardBody>
105+
</Card>
106+
)
107+
}

config/people.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export interface Person {
55
intro: string;
66
homepage: string;
77
photo: string | null;
8+
position: Partial<string>;
89
}
910

1011
export const peopleList = {
@@ -69,5 +70,16 @@ export const peopleList = {
6970
homepage: "https://google.com",
7071
photo: "people/no_avt.png",
7172
},
73+
],
74+
"masters_and_undergrad": [
75+
{
76+
name: "Chuhan Li",
77+
position: "Master Student",
78+
},
79+
{
80+
name: "Qifan Zhang",
81+
position: "Master Student",
82+
},
7283
]
84+
7385
}

0 commit comments

Comments
 (0)