Skip to content

Commit a750138

Browse files
committed
Embellish new added link with an icon #20
1 parent d70c80d commit a750138

7 files changed

Lines changed: 23 additions & 3 deletions

File tree

public/images/linkedin-sml.svg

Lines changed: 10 additions & 0 deletions
Loading

src/components/AboutContentItem.astro

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ const { name, jobTitle, about, image, socialLink } = Astro.props;
1919
</div>
2020
</div>
2121
<p>{about}</p>
22-
<a href={socialLink} class="social-link-button">LinkedIn</a>
22+
<a href={socialLink} class="social-link-button">
23+
<img src="/images/linkedin-sml.svg" alt="" class="social-link-icon" />
24+
LinkedIn
25+
</a>
2326
</article>
2427

2528
<style>
@@ -47,15 +50,22 @@ const { name, jobTitle, about, image, socialLink } = Astro.props;
4750
}
4851

4952
.social-link-button {
50-
display: inline-block;
53+
display: inline-flex;
54+
align-items: center;
55+
gap: var(--space-xs);
5156
background-color: #ffeacb;
5257
color: var(--color-pink);
5358
font-weight: var(--font-weight-semibold);
54-
padding: var(--space-xs) var(--space-md);
59+
padding: var(--space-xs) var(--space-sm);
5560
border-radius: var(--card-border-radius);
5661
text-decoration: none;
5762
}
5863

64+
.social-link-icon {
65+
width: 20px;
66+
height: 20px;
67+
}
68+
5969
.social-link-button:hover {
6070
background-color: #fed3b1;
6171
}
607 Bytes
Loading
676 Bytes
Loading
770 Bytes
Loading
628 Bytes
Loading
749 Bytes
Loading

0 commit comments

Comments
 (0)