Skip to content

Commit 98a3581

Browse files
Add computer icon to education degree title
Style the Computer Science h3 with a small inline laptop icon and muted accent color. Includes contribution attribution for Gus H. Co-authored-by: parse-nip <parse-nip@users.noreply.github.com>
1 parent 03a13cb commit 98a3581

3 files changed

Lines changed: 50 additions & 2 deletions

File tree

src/app/globals.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,6 +1009,23 @@
10091009
color: inherit;
10101010
}
10111011

1012+
#locked-resume .locked-resume-education-title {
1013+
display: inline-flex;
1014+
align-items: center;
1015+
gap: 0.45em;
1016+
}
1017+
1018+
#locked-resume .locked-resume-education-icon {
1019+
display: inline-flex;
1020+
flex-shrink: 0;
1021+
color: var(--color-text-muted, #8a8a8a);
1022+
}
1023+
1024+
#locked-resume .locked-resume-education-icon svg {
1025+
width: 0.95em;
1026+
height: 0.95em;
1027+
}
1028+
10121029
.design-select-overlay {
10131030
pointer-events: none;
10141031
position: fixed;

src/components/locked/LockedResume.tsx

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,31 @@ export function LockedResume() {
5151
<ul>
5252
{data.education.map((item) => (
5353
<li key={item.id} data-fact-id={item.id}>
54-
<h3>{item.title}</h3>
54+
<h3
55+
className="locked-resume-education-title"
56+
data-contribution-id="gus-h-education-degree-icon"
57+
>
58+
<span className="locked-resume-education-icon" aria-hidden="true">
59+
<svg width="14" height="14" viewBox="0 0 16 16" fill="none">
60+
<rect
61+
x="2"
62+
y="3"
63+
width="12"
64+
height="8"
65+
rx="1"
66+
stroke="currentColor"
67+
strokeWidth="1.2"
68+
/>
69+
<path
70+
d="M1 12h14"
71+
stroke="currentColor"
72+
strokeWidth="1.2"
73+
strokeLinecap="round"
74+
/>
75+
</svg>
76+
</span>
77+
{item.title}
78+
</h3>
5579
{item.details.map((detail, i) => (
5680
<p key={i}>{detail}</p>
5781
))}

src/data/contributions.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
{
2-
"contributions": []
2+
"contributions": [
3+
{
4+
"id": "gus-h-education-degree-icon",
5+
"contributor": "Gus H",
6+
"description": "Small computer icon beside education degree title",
7+
"selector": "section#education > ul > li > h3"
8+
}
9+
]
310
}

0 commit comments

Comments
 (0)