Skip to content
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
1 change: 1 addition & 0 deletions public/github-mark-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/app/components/BottomBar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Disclaimer from './Disclaimer';
import FeedbackButton from './FeedbackButton';
import GitHubLink from './GitHubLink';
import PriceTracker from './PriceTracker';
import styles from './css/BottomBar.module.css';

Expand All @@ -12,6 +13,7 @@ const BottomBar: React.FC = () => {
<Disclaimer />
<div className={styles.right}>
<FeedbackButton />
<GitHubLink />
</div>
</div>
);
Expand Down
24 changes: 24 additions & 0 deletions src/app/components/GitHubLink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import Image from 'next/image';
import styles from './css/GitHubLink.module.css';

const GitHubLink: React.FC = () => {
return (
<a
href="https://github.com/ethersphere/beeport"
target="_blank"
rel="noopener noreferrer"
className={styles.link}
aria-label="GitHub"
>
<Image
src="/github-mark-white.svg"
alt="GitHub"
width={20}
height={20}
className={styles.icon}
/>
</a>
);
};

export default GitHubLink;
4 changes: 4 additions & 0 deletions src/app/components/css/BottomBar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
position: fixed;
right: 16px;
bottom: 16px;
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
}

@media (max-width: 1024px) {
Expand Down
18 changes: 18 additions & 0 deletions src/app/components/css/GitHubLink.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.link {
display: flex;
align-items: center;
justify-content: center;
padding: 8px;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.2s;
height: 100%;
}

.link:hover {
background-color: #22272E;
}

.icon {
display: block;
}