Skip to content

Commit 44af861

Browse files
committed
add github logo
1 parent 79c5e6c commit 44af861

File tree

4 files changed

+70
-3
lines changed

4 files changed

+70
-3
lines changed

showcase.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"title": "Bicycle to Dfinity",
3535
"url": "https://m5rwi-daaaa-aaaal-acrpq-cai.icp0.io",
3636
"description": "An adventure around the world to meet great souls and promote good stuff.",
37-
"img": "/showcase/aegir.jpg"
37+
"img": "/showcase/aegir.jpg",
38+
"github":"https://github.com/Kyliux/Icloud"
3839
},
3940
{
4041
"title": "ICPFA",

src/components/Spotlight/index.module.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,19 @@
6060
word-break: break-word;
6161
white-space: pre-wrap;
6262
}
63+
64+
h4 {
65+
display: flex;
66+
align-items: center;
67+
justify-content: space-between; /* This pushes items to the edges */
68+
}
69+
70+
.githubLogo {
71+
width: 40px; /* Adjust the size of the logo */
72+
height: 40px;
73+
}
74+
}
75+
76+
.githubLink {
77+
margin-left: auto; /* Pushes the link to the right */
6378
}

src/components/Spotlight/index.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export default function Spotlight({
66
title,
77
description,
88
img,
9-
url
9+
url,
10+
github
1011
}: ShowcaseSpotlight): JSX.Element {
1112
return (
1213
<Link href={url} target="_blank" rel="noreferrer noopener nofollow">
@@ -22,7 +23,14 @@ export default function Spotlight({
2223
</div>
2324

2425
<div className={styles.content}>
25-
<h4>{title}</h4>
26+
<h4>
27+
{title}
28+
{github && (
29+
<Link href={github} target="_blank" rel="noreferrer noopener nofollow" className={styles.githubLink}>
30+
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/Github-desktop-logo-symbol.svg/640px-Github-desktop-logo-symbol.svg.png" alt="GitHub Logo" className={styles.githubLogo} />
31+
</Link>
32+
)}
33+
</h4>
2634
<p>{description}</p>
2735
</div>
2836
</article>

static/icons/github_pink.svg

Lines changed: 43 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)