-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from FazidSamoon/feature/sidenav
Added sideNav
- Loading branch information
Showing
11 changed files
with
98 additions
and
203 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 @@ | ||
export * from './themeControl'; |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export { default as Footer } from "./footer"; | ||
export { default as Nav } from "./nav"; | ||
export { default as SideNav } from "./sideNav"; |
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,67 @@ | ||
import React from "react"; | ||
import { | ||
FaYarn, | ||
FaVuejs, | ||
FaReact, | ||
FaNpm, | ||
FaWindows, | ||
FaLinux, | ||
FaTerminal | ||
} from "react-icons/fa"; | ||
import { AiFillGithub } from "react-icons/ai"; | ||
|
||
import { SiNestjs, SiNextdotjs, SiHeroku } from "react-icons/si"; | ||
import { RiFlutterFill } from "react-icons/ri"; | ||
|
||
function SideNav() { | ||
const navItems = [ | ||
{ name: FaLinux, desc: "Linux", link: "https://www.linux.org/" }, | ||
{ | ||
name: FaWindows, | ||
desc: "Windows", | ||
link: "https://www.microsoft.com/en-us/windows/", | ||
}, | ||
{ name: FaNpm, desc: "NPM", link: "https://www.npmjs.com/" }, | ||
{ name: FaYarn, desc: "Yarn", link: "https://yarnpkg.com/en/" }, | ||
{ name: FaVuejs, desc: "Vue.js", link: "https://vuejs.org/" }, | ||
{ name: FaReact, desc: "React", link: "https://reactjs.org/" }, | ||
{ name: AiFillGithub, desc: "Github", link: "https://github.com" }, | ||
{ name: RiFlutterFill, desc: "Flutter", link: "https://flutter.dev/" }, | ||
{ name: SiNestjs, desc: "Nest.js", link: "https://nestjs.com/" }, | ||
{ name: SiNextdotjs, desc: "Next.js", link: "https://nextjs.org/" }, | ||
{ name: SiHeroku, desc: "Heroku", link: "https://www.heroku.com/" }, | ||
]; | ||
|
||
return ( | ||
<div className=""> | ||
<div | ||
className="group absolute z-40 flex flex-col h-screen w-[6rem] hover:w-[14rem] bg-blue-primary shadow-right px-2 ease-in-out duration-300 " | ||
|
||
> | ||
<div className="flex flex-col mt-3.5"> | ||
<FaTerminal className="w-12 h-12 text-white ml-[0.9rem] mb-12 mt-5"/> | ||
{navItems.map((Item, index) => { | ||
return ( | ||
<div key={index} className="flex flex-col"> | ||
<a href={Item.link}> | ||
<div className="flex flex-row justify-start items-center"> | ||
<div className="my-3 ml-[0.8rem]"> | ||
<Item.name className="text-white cursor-pointer w-12 h-12 hover:text-blue-light transition-all duration-300" /> | ||
</div> | ||
<span | ||
className={`cursor-pointer opacity-0 hover:text-blue-light pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto items-center pl-5 text-2xl text-white transition ease-in duration-300 `} | ||
> | ||
{Item.desc} | ||
</span> | ||
</div> | ||
</a> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default SideNav; |
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 |
---|---|---|
@@ -1,10 +1,13 @@ | ||
module.exports = { | ||
content: [ | ||
'./src/**/*.{html,js, jsx, tsx}', | ||
], | ||
content: ["./src/**/*.{html,js, jsx, tsx}"], | ||
important: true, | ||
theme: { | ||
extend: {}, | ||
extend: { | ||
colors: { | ||
blue: { primary: "#00183A", light: "#B9E6FF" }, | ||
}, | ||
}, | ||
}, | ||
|
||
plugins: [], | ||
}; |