forked from purefinance/pure.finance
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added component to group all social links
- Loading branch information
1 parent
9074582
commit 5eb36cc
Showing
4 changed files
with
33 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import SvgContainer from '../svg/SvgContainer' | ||
|
||
const SocialIconLink = ({ href, iconName }) => ( | ||
<a href={href} rel="noopener noreferrer" target="_blank"> | ||
<SvgContainer | ||
className="text-grayscale-500 hover:text-grayscale-950 w-6" | ||
name={iconName} | ||
/> | ||
</a> | ||
) | ||
|
||
export default SocialIconLink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import SocialIconLink from './SocialIconLink' | ||
|
||
const Socials = () => ( | ||
<div className="flex gap-3"> | ||
<SocialIconLink href="https://x.com/hemi_xyz" iconName="twitter" /> | ||
<SocialIconLink href="https://discord.gg/hemixyz" iconName="discord" /> | ||
<SocialIconLink href="https://github.com/hemilabs" iconName="github" /> | ||
<SocialIconLink | ||
href="https://www.linkedin.com/company/hemi-labs" | ||
iconName="linkedin" | ||
/> | ||
</div> | ||
) | ||
|
||
export default Socials |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters