Skip to content
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

add Peeranha footer #94

Open
wants to merge 5 commits 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
22 changes: 21 additions & 1 deletion components/layout/footer/footer-social.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import IconReddit from 'remixicon/icons/Logos/reddit-fill.svg';
import { socialMediaUrls } from 'data/config';

import IconMatrix from '../../../public/images/common/matrix-logo-white.svg';
import IconPeeranha from '../../../public/images/common/peeranha-logo-white.svg';

const SOCIAL_LINKS = {
Discord: {
Expand All @@ -34,12 +35,16 @@ const SOCIAL_LINKS = {
icon: IconMatrix,
href: socialMediaUrls.matrixUrl,
},
Peeranha: {
icon: IconPeeranha,
href: socialMediaUrls.peeranhaUrl,
},
};

export const FooterSocial = () => {
const linkEntries = Object.entries(SOCIAL_LINKS);
return (
<div className="flex flex-row justify-start">
<div className="flex flex-row items-center justify-start">
{linkEntries.map(([key, linkData]) => {
const Icon = linkData.icon;
if (key === 'Matrix') {
Expand All @@ -57,6 +62,21 @@ export const FooterSocial = () => {
);
}

if (key === 'Peeranha') {
return (
<a
href={linkData.href}
className="mr-4 opacity-25 hover:opacity-50"
target="_blank"
rel="noopener noreferrer"
key={key}
aria-label={key}
>
<Icon className="h-7 fill-white" />
</a>
);
}

return (
<a
href={linkData.href}
Expand Down
3 changes: 2 additions & 1 deletion data/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ export const socialMediaUrls = {
discordUrl: 'https://discord.gg/4pnzjWTJ9b',
twitterUrl: 'https://twitter.com/EdgewareDAO',
githubUrl: 'https://github.com/orgs/Edgeware-Network',
redditUrl: 'https://www.reddit.com/r/edgeware',
peeranhaUrl: 'https://edgeware.peeranha.io/',
telegramUrl: 'https://t.me/heyedgeware',
redditUrl: 'https://www.reddit.com/r/edgeware',
matrixUrl: 'https://matrix.to/#/#Edgeverse:matrix.org',
};
6 changes: 6 additions & 0 deletions public/images/common/peeranha-logo-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading