Skip to content

Commit 2b98add

Browse files
committed
πŸ’„ style(experience-section): update HTML structure for consistency
- replace h4 and h5 tags with p tags for company and title - use strong tag to emphasize company name - ensure consistent HTML structure across component πŸ’„ style(experience-section): remove unused CSS rules - delete width and text alignment rules for even children - remove paragraph styling from index.module.css
1 parent adea040 commit 2b98add

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

β€Žsrc/components/Section/ExperienceSection/index.module.cssβ€Ž

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@
2020
display: grid;
2121
grid-template-columns: 1fr auto;
2222
column-gap: 1rem;
23-
width: 100%;
24-
25-
&:nth-child(even):not(p) {
26-
text-align: right;
27-
}
28-
29-
p {
30-
font-size: 1rem;
31-
font-weight: 400;
32-
color: var(--md-sys-color-on-surface);
33-
}
3423

3524
.description {
3625
grid-column: 1 / -1; /* Span all columns */

β€Žsrc/components/Section/ExperienceSection/index.tsxβ€Ž

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,14 @@ export const ExperienceSection = ({
5656
}: { title: string; company: string } & Experience): React.ReactElement => {
5757
return (
5858
<div className={styles["container"]} key={`${company}-${title}`}>
59-
<h4>{company}</h4>
59+
<p>
60+
<strong>{company}</strong>
61+
</p>
6062
<p>
6163
{startDate} - {endDate ? endDate : "Present"}
6264
</p>
63-
<h5>{title}</h5>
64-
<h6>{location}</h6>
65+
<p>{title}</p>
66+
<p>{location}</p>
6567
<p className={styles["description"]}>
6668
{description?.map((desc: string) => (
6769
<span>{desc}</span>

0 commit comments

Comments
Β (0)