@@ -6,23 +6,54 @@ import Seo from "../components/seo"
6
6
import Person from "../components/person"
7
7
8
8
function ProgramsPage ( ) {
9
+ const [ search , setSearch ] = React . useState ( "" )
9
10
10
- const [ search , setSearch ] = React . useState ( "" ) ;
11
-
12
- let generalData = require ( '../../data/general.json' )
13
- let teamMembers = require ( '../../data/team.json' )
11
+ let generalData = require ( "../../data/general.json" )
12
+ let teamMembers = require ( "../../data/team.json" )
14
13
15
14
return (
16
15
< Layout >
17
16
< section >
18
- < div class = "mx-auto max-w-screen-xl px-4 py -16" >
17
+ < div class = "mx-auto max-w-6xl px-4 pb -16 flex flex-col mt-8 " >
19
18
< h2 className = "font-bold text-4xl mb-4" > Our Team</ h2 >
20
- < p className = "text-xl mb-4 max-w-2xl" > To be as transparent as possible, we allow anyone to access information for all of our team members. If you would like to join the team, please see the programs page for more information.</ p >
21
- < input value = { search } onChange = { ( e ) => { setSearch ( e . target . value ) } } type = "search" class = "bg-slate-100 p-4 w-full rounded shadow mb-16" placeholder = "John Doe" > </ input >
22
- < div class = "grid gap-4 grid-cols-1 sm:grid-cols-2 md:grid-cols-4" >
23
- {
24
- teamMembers . filter ( member => `${ member . first } ${ member . last } ` . includes ( search ) ) . map ( item => Person ( item ) )
25
- }
19
+ < p className = "text-xl mb-4 max-w-2xl" >
20
+ To be as transparent as possible, we allow anyone to access
21
+ information for all of our team members. If you would like to join
22
+ the team, please see the programs page for more information.
23
+ </ p >
24
+ { /* <input value={search} onChange={(e) => { setSearch(e.target.value) }} type="search" class="bg-slate-100 p-4 w-full rounded shadow mb-16" placeholder="John Doe"></input> */ }
25
+ < div class = "flex items-center lg:w-[35rem] w-[20rem]" >
26
+ < div class = "relative w-full" >
27
+ < div class = "absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none" >
28
+ < svg
29
+ aria-hidden = "true"
30
+ class = "w-5 h-5 text-gray-500 dark:text-gray-400"
31
+ fill = "currentColor"
32
+ viewBox = "0 0 20 20"
33
+ xmlns = "http://www.w3.org/2000/svg"
34
+ >
35
+ < path
36
+ fill-rule = "evenodd"
37
+ d = "M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z"
38
+ clip-rule = "evenodd"
39
+ > </ path >
40
+ </ svg >
41
+ </ div >
42
+ < input
43
+ type = "text"
44
+ class = "bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
45
+ placeholder = "Search our team.."
46
+ value = { search }
47
+ onChange = { event => setSearch ( event . target . value ) }
48
+ />
49
+ </ div >
50
+ </ div >
51
+ < div class = "grid gap-4 grid-cols-1 sm:grid-cols-2 md:grid-cols-4 mt-6" >
52
+ { teamMembers
53
+ . filter ( member =>
54
+ `${ member . first } ${ member . last } ` . toLocaleLowerCase ( ) . includes ( search )
55
+ )
56
+ . map ( item => Person ( item ) ) }
26
57
</ div >
27
58
</ div >
28
59
</ section >
0 commit comments