File tree Expand file tree Collapse file tree 2 files changed +25
-17
lines changed Expand file tree Collapse file tree 2 files changed +25
-17
lines changed Original file line number Diff line number Diff line change
1
+ import { useState } from "react" ;
2
+ import { EXECS } from "@/../public/data/execs" ;
3
+
4
+ const ExecDisplay = ( ) => {
5
+ return (
6
+ < div className = "my-5" >
7
+ < h2 className = "text-xl font-bold mb-2" > Execs</ h2 >
8
+ < div className = "grid grid-cols-2 md:grid-cols-4 gap-4" >
9
+ { EXECS . map ( exec => (
10
+ < div >
11
+ < div >
12
+ < p > { exec . name } </ p >
13
+ < p className = "text-gray-500" > { exec . role } </ p >
14
+ </ div >
15
+ </ div >
16
+ ) ) }
17
+ </ div >
18
+ </ div >
19
+ ) ;
20
+ }
21
+
22
+ export default ExecDisplay ;
Original file line number Diff line number Diff line change 1
1
import PortfolioDisplay from "@/components/About/PortfolioDisplay" ;
2
+ import ExecDisplay from "@/components/About/ExecDisplay" ;
2
3
import Layout from "@/components/Layout" ;
3
4
import PageBody from "@/components/PageBody" ;
4
5
import PageTitle from "@/components/PageTitle" ;
@@ -24,19 +25,7 @@ const ExecsDirectorsSubcommitteesPage = () => {
24
25
</ div >
25
26
26
27
{ /* EXECS */ }
27
- < div className = "my-5" >
28
- < h2 className = "text-xl font-bold mb-2" > Execs</ h2 >
29
- < div className = "grid grid-cols-2 md:grid-cols-4 gap-4" >
30
- { EXECS . map ( exec => (
31
- < div >
32
- < div >
33
- < p > { exec . name } </ p >
34
- < p className = "text-gray-500" > { exec . role } </ p >
35
- </ div >
36
- </ div >
37
- ) ) }
38
- </ div >
39
- </ div >
28
+ < ExecDisplay />
40
29
41
30
< div className = "border-t border-gray-300 my-10" > </ div >
42
31
@@ -50,10 +39,7 @@ const ExecsDirectorsSubcommitteesPage = () => {
50
39
</ div >
51
40
52
41
< PortfolioDisplay />
53
-
54
- { /* <p className="text-xl bold my-5">
55
- Get to know them better <a href="https://media.csesoc.org.au/fyg24-meet-csesoc/" className="text-blue-500 hover:underline">here</a>!
56
- </p> */ }
42
+
57
43
</ div >
58
44
</ PageBody >
59
45
</ Layout >
You can’t perform that action at this time.
0 commit comments