Skip to content

add github logo #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion showcase.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"title": "Bicycle to Dfinity",
"url": "https://m5rwi-daaaa-aaaal-acrpq-cai.icp0.io",
"description": "An adventure around the world to meet great souls and promote good stuff.",
"img": "/showcase/aegir.jpg"
"img": "/showcase/aegir.jpg",
"github":"https://github.com/Kyliux/Icloud"
},
{
"title": "ICPFA",
Expand Down
15 changes: 15 additions & 0 deletions src/components/Spotlight/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,19 @@
word-break: break-word;
white-space: pre-wrap;
}

h4 {
display: flex;
align-items: center;
justify-content: space-between; /* This pushes items to the edges */
}

.githubLogo {
width: 40px; /* Adjust the size of the logo */
height: 40px;
}
}

.githubLink {
margin-left: auto; /* Pushes the link to the right */
}
12 changes: 10 additions & 2 deletions src/components/Spotlight/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default function Spotlight({
title,
description,
img,
url
url,
github
}: ShowcaseSpotlight): JSX.Element {
return (
<Link href={url} target="_blank" rel="noreferrer noopener nofollow">
Expand All @@ -22,7 +23,14 @@ export default function Spotlight({
</div>

<div className={styles.content}>
<h4>{title}</h4>
<h4>
{title}
{github && (
<Link href={github} target="_blank" rel="noreferrer noopener nofollow" className={styles.githubLink}>
<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} />
</Link>
)}
</h4>
<p>{description}</p>
</div>
</article>
Expand Down
43 changes: 43 additions & 0 deletions static/icons/github_pink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.