Skip to content

Commit

Permalink
Add basic links
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabau committed Oct 11, 2024
1 parent 0bfebd0 commit ba4e244
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 3 deletions.
Binary file added gabau.github.io/public/github-mark-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions gabau.github.io/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.
Binary file added gabau.github.io/public/github-mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions gabau.github.io/public/github-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 23 additions & 3 deletions gabau.github.io/src/components/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
import { Link } from "react-router-dom";
import MoonSunToggle from "./MoonSunToggle";
import { useRef, useState } from "react";
import { useContext, useRef, useState } from "react";
import { CiMenuBurger } from "react-icons/ci";
import { useGSAP } from "@gsap/react";
import { gsap } from "gsap/gsap-core";
import GithubIcon from "/github-mark.svg"
import LighGithubIcon from "/github-mark-white.svg"
import ThemeContext from "../context/ThemeContext";
import { FaLinkedin, FaLinkedinIn } from "react-icons/fa";

const RightItems = () => {
const {theme} = useContext(ThemeContext);

return (<div className="flex flex-row space-x-6">
<Link to="https://www.linkedin.com/in/gabriel-au-chen-xi-9a764b21b/" className="flex xl:h-10 sm:h-8">
{theme === "light" && <FaLinkedin className="w-full h-full"/>}
{theme === "dark" && <FaLinkedinIn className="w-full h-full" />}
</Link>
<Link to="https://github.com/Gabau" className="flex xl:h-10 sm:h-8 ">
{theme === "light" && <img src={GithubIcon} className="object-contain w-auto h-auto" />}
{theme === "dark" && <img src={LighGithubIcon} className="object-contain w-auto h-auto" />}
</Link>
<MoonSunToggle />
</div>);
}

const NavDrawer = ({
openDrawer,
Expand Down Expand Up @@ -78,7 +98,7 @@ const Navbar = () => {
<CiMenuBurger />
</button>
</ul>
<MoonSunToggle />
<RightItems />
</nav>
</div>
);
Expand All @@ -103,7 +123,7 @@ const Navbar = () => {
<Link to="/playground">Playground</Link>
</li>
</ul>
<MoonSunToggle />
<RightItems />
</nav>
);
};
Expand Down

0 comments on commit ba4e244

Please sign in to comment.