@@ -17,66 +17,66 @@ Click view detail, box will expand
1717Line break 
1818
1919Container includes: 
20- 	 Shadow: Hover expand
21- 	 Card: Title, Url, Description
20+      Shadow: Hover expand
21+      Card: Title, Url, Description
2222*/ 
2323
2424const  Resources  =  ( )  =>  { 
25-   return  ( 
26-     < div  className = "resources-container" > 
27-       < h1  className = "resource-title" > Resources</ h1 > 
28-       < Tab  className = "tab-components" /> 
29-     </ div > 
30-   ) ; 
25+      return  ( 
26+          < div  className = "resources-container" > 
27+              < h1  className = "resource-title" > Resources</ h1 > 
28+              < Tab  className = "tab-components" /> 
29+          </ div > 
30+      ) ; 
3131} ; 
3232
3333export  default  Resources ; 
3434
3535function  Tab ( )  { 
36-   const  [ tabState ,  setTab ]  =  useState ( 1 ) 
36+      const  [ tabState ,  setTab ]  =  useState ( 1 ) 
3737
38-   const  toggleTab  =  ( index )  =>  { 
39-     setTab ( index ) 
40-   } 
38+      const  toggleTab  =  ( index )  =>  { 
39+          setTab ( index ) 
40+      } 
4141
42-   return  ( 
43-     < div  className = 'tab-container' > 
44-       { /* 
45-         <Link to='/resources/tutorials' className='tab-button'>Tutorials</Link> 
46-         <Link to='resources/research' className='tab-button'>Research</Link> 
47-         <Link to='resources/organizations' className='tab-button'>Organizations</Link> 
48-       */ } 
49-       < div  className = 'tabs' > 
50-         < button  type = 'button'  onClick = { ( )  =>  toggleTab ( 1 ) }  className = { tabState  ===  1  ? 'tab-button active'  : 'tab-button' } > Tutorials</ button > 
51-         < button  type = 'button'  onClick = { ( )  =>  toggleTab ( 2 ) }  className = { tabState  ===  2  ? 'tab-button active'  : 'tab-button' } > Research</ button > 
52-         < button  type = 'button'  onClick = { ( )  =>  toggleTab ( 3 ) }  className = { tabState  ===  3  ? 'tab-button active'  : 'tab-button' } > Organizations</ button > 
53-       </ div > 
42+      return  ( 
43+          < div  className = 'tab-container' > 
44+              { /* 
45+              <Link to='/resources/tutorials' className='tab-button'>Tutorials</Link> 
46+              <Link to='resources/research' className='tab-button'>Research</Link> 
47+              <Link to='resources/organizations' className='tab-button'>Organizations</Link> 
48+              */ } 
49+              < div  className = 'tabs' > 
50+                  < button  type = 'button'  onClick = { ( )  =>  toggleTab ( 1 ) }  className = { tabState  ===  1  ? 'tab-button active'  : 'tab-button' } > Tutorials</ button > 
51+                  < button  type = 'button'  onClick = { ( )  =>  toggleTab ( 2 ) }  className = { tabState  ===  2  ? 'tab-button active'  : 'tab-button' } > Research</ button > 
52+                  < button  type = 'button'  onClick = { ( )  =>  toggleTab ( 3 ) }  className = { tabState  ===  3  ? 'tab-button active'  : 'tab-button' } > Organizations</ button > 
53+              </ div > 
5454
55-       < div  className = "tab-contents" > 
56-         < div  className = { tabState  ===  1  ? 'tab-content active-content' : 'tab-content' } > 
57-           < h2 > Tutorials</ h2 > 
58-           < p > Lorem ipsum dolor sit amet, consectetur adipiscing elit,
59- 							 sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
60- 							 Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
61- 							 nisi ut aliquip ex ea commodo consequat.
62-           </ p > 
63-         </ div > 
55+              < div  className = "tab-contents" > 
56+                  < div  className = { tabState  ===  1  ? 'tab-content active-content' : 'tab-content' } > 
57+                      < h2 > Tutorials</ h2 > 
58+                      < p > Lorem ipsum dolor sit amet, consectetur adipiscing elit,
59+                          sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
60+                          Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
61+                          nisi ut aliquip ex ea commodo consequat.
62+                      </ p > 
63+                  </ div > 
6464
65-         < div   className = { tabState  ===  2  ? 'tab-content active-content' : 'tab-content' } > 
66-           < h2 > Research</ h2 > 
67-           < p > Something about Early Research Scholars Programs.
68-           </ p > 
69-         </ div > 
65+                  < div   className = { tabState  ===  2  ? 'tab-content active-content' : 'tab-content' } > 
66+                      < h2 > Research</ h2 > 
67+                      < p > Something about Early Research Scholars Programs.
68+                      </ p > 
69+                  </ div > 
7070
71-         < div   className = { tabState  ===  3  ? 'tab-content active-content' : 'tab-content' } > 
72-           < h2 > Organizations</ h2 > 
73-           < p > Lorem ipsum dolor sit amet, consectetur adipiscing elit,
74- 							sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
75- 							Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
76- 							nisi ut aliquip ex ea commodo consequat.
77-           </ p > 
71+                 < div   className = { tabState  ===  3  ? 'tab-content active-content' : 'tab-content' } > 
72+                     < h2 > Organizations</ h2 > 
73+                     < p > Lorem ipsum dolor sit amet, consectetur adipiscing elit,
74+                         sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
75+                         Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris
76+                         nisi ut aliquip ex ea commodo consequat.
77+                     </ p > 
78+                 </ div > 
79+             </ div > 
7880        </ div > 
79-       </ div > 
80-     </ div > 
81-   ) 
81+     ) 
8282} 
0 commit comments