-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bugs, add social media links (#21)
* Add link and layout * Update Hotbar.tsx * Update Graph.tsx * Update Hotbar.tsx * Add social media icons --------- Co-authored-by: Pedro Rodrigues <[email protected]>
- Loading branch information
1 parent
3020012
commit 3a869cf
Showing
10 changed files
with
79 additions
and
3 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,4 @@ | ||
.custom-svg-color { | ||
filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(7500%) | ||
hue-rotate(345deg) brightness(100%) contrast(100%); | ||
} |
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,58 @@ | ||
import { FC } from "react"; | ||
import clsx from "clsx"; | ||
|
||
import discord from "../../assets/discord.svg"; | ||
import github from "../../assets/github.svg"; | ||
import linkedin from "../../assets/linkedin.svg"; | ||
|
||
interface Social { | ||
name: string; | ||
Icon: string; | ||
link: string; | ||
} | ||
|
||
const SocialList: Social[] = [ | ||
{ | ||
name: "Github", | ||
Icon: github, | ||
link: "https://github.com/WardAnalytics/WardGraph", | ||
}, | ||
{ | ||
name: "Discord", | ||
Icon: discord, | ||
link: "https://discord.gg/4ZzgeUwa", | ||
}, | ||
{ | ||
name: "LinkedIn", | ||
Icon: linkedin, | ||
link: "https://www.linkedin.com/company/wardanalytics/", | ||
}, | ||
]; | ||
|
||
const SocialButton: FC<Social> = ({ name, Icon, link }) => { | ||
return ( | ||
<a href={link} target="_blank" rel="noreferrer"> | ||
<img | ||
src={Icon} | ||
alt={`${name} Icon`} | ||
className="h-8 w-8 rounded-full p-1 opacity-50 backdrop-blur-sm transition-all duration-200 hover:opacity-70" | ||
/> | ||
</a> | ||
); | ||
}; | ||
|
||
interface SocialsProps { | ||
className?: string; | ||
} | ||
|
||
const Socials: FC<SocialsProps> = ({ className }) => { | ||
return ( | ||
<div className={clsx("flex flex-row gap-x-2", className)}> | ||
{SocialList.map((social) => { | ||
return <SocialButton {...social} key={social.name} />; | ||
})} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Socials from "./Socials"; | ||
|
||
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