@@ -18,9 +18,9 @@ const shareContent = (url) => {
1818 }
1919} ;
2020
21- // List of Global Tech Events
21+ // List of all the certfications that matters for developers!
2222
23- const techevents = [
23+ const certfication = [
2424 {
2525 organizer : 'Organizer Name' ,
2626 title : 'Event Name' ,
@@ -33,7 +33,7 @@ const techevents = [
3333 } ,
3434] ;
3535
36- const StyledtecheventsCard = styled . div `
36+ const StyledcertficationCard = styled . div `
3737 position: relative;
3838 border: 1px solid rgb(182, 228, 250);
3939 background: linear-gradient(to right, rgba(15, 27, 53, 0.44), rgba(0, 43, 62, 0.43));
@@ -109,9 +109,9 @@ const StyledtecheventsCard = styled.div`
109109 }
110110` ;
111111
112- const TecheventsCardComponent = ( { organizer, title, location, date, domains, applyLink, poster, shareLink } ) => {
112+ const CertficationCardComponent = ( { organizer, title, location, date, domains, applyLink, poster, shareLink } ) => {
113113 return (
114- < StyledtecheventsCard id = { shareLink . substring ( 1 ) } >
114+ < StyledcertficationCard id = { shareLink . substring ( 1 ) } >
115115 { /* <div className="dot"></div> */ }
116116 < div className = "flex items-center justify-between p-2" >
117117 < span className = "text-sm font-semibold text-white" >
@@ -170,7 +170,7 @@ const TecheventsCardComponent = ({ organizer, title, location, date, domains, ap
170170 </ span >
171171 ) ) }
172172 </ div >
173- </ StyledtecheventsCard >
173+ </ StyledcertficationCard >
174174 ) ;
175175} ;
176176
@@ -187,7 +187,7 @@ const TecheventsCardComponent = ({ organizer, title, location, date, domains, ap
187187 ` }
188188</ style > ;
189189
190- const StyledtecheventsListContainer = styled . div `
190+ const StyledcertficationListContainer = styled . div `
191191 display: flex;
192192 flex-wrap: wrap;
193193 justify-content: center;
@@ -241,20 +241,20 @@ const FilterContainer = styled.div`
241241 }
242242` ;
243243
244- const TecheventsList = ( ) => {
244+ const CertficationList = ( ) => {
245245 const [ locationFilter , setLocationFilter ] = useState ( '' ) ;
246246 const [ monthFilter , setMonthFilter ] = useState ( '' ) ;
247247 const [ domainFilter , setDomainFilter ] = useState ( '' ) ;
248248
249- const filteredtechevents = techevents . filter ( ( techevents ) => {
249+ const filteredcertfication = certfication . filter ( ( certfication ) => {
250250 const matchesLocation = locationFilter
251- ? techevents . location . toLowerCase ( ) . includes ( locationFilter . toLowerCase ( ) )
251+ ? certfication . location . toLowerCase ( ) . includes ( locationFilter . toLowerCase ( ) )
252252 : true ;
253253 const matchesMonth = monthFilter
254- ? new Date ( techevents . date . split ( ' - ' ) [ 0 ] ) . getMonth ( ) + 1 === parseInt ( monthFilter )
254+ ? new Date ( certfication . date . split ( ' - ' ) [ 0 ] ) . getMonth ( ) + 1 === parseInt ( monthFilter )
255255 : true ;
256256 const matchesDomain = domainFilter
257- ? techevents . domains . some ( ( domain ) => domain . toLowerCase ( ) . includes ( domainFilter . toLowerCase ( ) ) )
257+ ? certfication . domains . some ( ( domain ) => domain . toLowerCase ( ) . includes ( domainFilter . toLowerCase ( ) ) )
258258 : true ;
259259 return matchesLocation && matchesMonth && matchesDomain ;
260260 } ) ;
@@ -290,13 +290,13 @@ const TecheventsList = () => {
290290 onChange = { ( e ) => setDomainFilter ( e . target . value ) }
291291 />
292292 </ FilterContainer >
293- < StyledtecheventsListContainer >
294- { filteredtechevents . map ( ( techevents , idx ) => (
295- < TecheventsCardComponent key = { idx } { ...techevents } />
293+ < StyledcertficationListContainer >
294+ { filteredcertfication . map ( ( certfication , idx ) => (
295+ < CertficationCardComponent key = { idx } { ...certfication } />
296296 ) ) }
297- </ StyledtecheventsListContainer >
297+ </ StyledcertficationListContainer >
298298 </ >
299299 ) ;
300300} ;
301301
302- export default TecheventsList ;
302+ export default CertficationList ;
0 commit comments