File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ export default function PeoplePage() {
17
17
< Divider />
18
18
19
19
< ExpandPeople text = { "PhD Students" } people = { peopleList . phds } />
20
+ < Divider />
21
+
22
+ < OtherExpandPerson text = { "Master/Undergrad Students" } people = { peopleList . masters_and_undergrad } />
20
23
21
24
</ div >
22
25
) ;
@@ -79,3 +82,26 @@ export function PersonCard(person: Person) {
79
82
)
80
83
81
84
}
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
+ }
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ export interface Person {
5
5
intro : string ;
6
6
homepage : string ;
7
7
photo : string | null ;
8
+ position : Partial < string > ;
8
9
}
9
10
10
11
export const peopleList = {
@@ -69,5 +70,16 @@ export const peopleList = {
69
70
homepage : "https://google.com" ,
70
71
photo : "people/no_avt.png" ,
71
72
} ,
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
+ } ,
72
83
]
84
+
73
85
}
You can’t perform that action at this time.
0 commit comments