Skip to content

Commit

Permalink
Update certificate titles to use h2 tags and adjust font sizes in CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
upayanmazumder committed Nov 22, 2024
1 parent 95a8d47 commit 9ca6990
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/src/components/certificate/certificate.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
.certificateDetailContainer h2 {
margin-bottom: 10px;
cursor: default;
font-size: 1.5rem;
}

.certificateDetailContainer p {
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/certificates/certificates.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Certificates = () => {
<div className={certificateStyles.certificatesContainer}>
{certificates.map((certificate, index) => (
<div key={index} className={certificateStyles.certificateCard}>
<h3>{certificate.title}</h3>
<h2>{certificate.title}</h2>
<a href={`/certificates/${createSlug(certificate.title)}#image`}>
<img src={certificate.path} alt={`${certificate.title} certificate`} />
</a>
Expand Down
6 changes: 3 additions & 3 deletions app/src/components/certificates/certificates.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.certificateCard h3 {
.certificateCard h2 {
color: #a0cfff;
font-size: 1.5rem;
font-size: 1.5em;
margin-bottom: 10px;
text-align: center;
}
Expand Down Expand Up @@ -58,7 +58,7 @@
padding: 5px 10px;
margin: 5px;
border-radius: var(--border-radius-small);
font-size: 0.8rem;
font-size: 0.8em;
}

@media (max-width: 768px) {
Expand Down

0 comments on commit 9ca6990

Please sign in to comment.