Skip to content

Commit f20e1e7

Browse files
committed
Rename TechEvents to Certifications and update related components and text
1 parent b36b720 commit f20e1e7

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

src/Page/OpportunitiesHub/CertificationList.jsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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;

src/Page/OpportunitiesHub/Certifications.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Navbar = () => {
2020
<div className="flex items-center justify-center">
2121
<StyledButton onClick={() => setIsModalOpen(true)}>
2222
<div className="blob1" />
23-
<div className="inner">Spotlight Your bootcamps Globally!</div>
23+
<div className="inner">Spotlight Your certfication Globally!</div>
2424
</StyledButton>
2525
</div>
2626

@@ -33,7 +33,7 @@ const Navbar = () => {
3333
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50">
3434
<div className="w-full max-w-md rounded-lg bg-gray-800 p-6 text-white">
3535
<div className="mb-4 flex items-center justify-between">
36-
<h2 className="text-xl font-semibold">Submit The bootcamps Details!</h2>
36+
<h2 className="text-xl font-semibold">Submit The certfication Details!</h2>
3737
<button onClick={() => setIsModalOpen(false)} className="text-gray-400 hover:text-white">
3838
X
3939
</button>

0 commit comments

Comments
 (0)