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

feat/add icons in navbar #369

Open
wants to merge 2 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
31 changes: 25 additions & 6 deletions src/Component/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
/** @format */

import React, { useState } from "react";
import "./style.css";
import { GiCrossMark } from "react-icons/gi";
import { FaGithub, FaLaptop, FaHome, FaRegSun } from "react-icons/fa";
import { BsFiletypeDoc } from "react-icons/bs";
import { Link, useNavigate } from "react-router-dom";
import React, { useState } from 'react';
import './style.css';
import { GiCrossMark } from 'react-icons/gi';
import { FaGithub, FaLaptop, FaHome, FaRegSun } from 'react-icons/fa';
import { BiHome, BiEdit } from "react-icons/bi";
import { RiContactsLine } from "react-icons/ri";
import { BsFiletypeDoc } from 'react-icons/bs';
import { Link, useNavigate } from 'react-router-dom';


function Navbar() {
const navigate = useNavigate();
Expand Down Expand Up @@ -43,6 +46,21 @@ function Navbar() {
</div>
<div className="right-sight">
<div className="cart-item">

<Link to="/" className='link'><span className='icon'><BiHome /> </span>Home</Link>
</div>
<div className="cart-item">
<Link to="/intern" className='link'> <span className='icon'><FaLaptop /></span> Internships</Link>
</div>
<div className="cart-item">
<Link to="/docs" className='link'><span className='icon'><BiEdit /> </span>Documentation</Link>
</div>
<div className="cart-item">
<Link to="https://github.com/HimanshuNarware/CareerZunction_Intern" className='link'><span className='icon'><FaGithub /></span> GitHub</Link>
</div>
<div className="cart-item">
<Link to="/Contact" className='link'><span className='icon'><RiContactsLine /></span> Contact Us</Link>

<Link to="/" className="link">
{" "}
Home
Expand Down Expand Up @@ -78,6 +96,7 @@ function Navbar() {
{" "}
Contact Us
</Link>

</div>
</div>
</nav>
Expand Down
4 changes: 3 additions & 1 deletion src/Component/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ user-select:none;
max-width:100%;

}

.icon{
color: aliceblue;
}
.left-sight {
margin-left: 4%;

Expand Down