Skip to content

Commit

Permalink
Added Sproutly Logo to Navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi-p-k-1 committed Feb 18, 2025
1 parent be397a1 commit 75f531b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/web-app/src/Components/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React, { useMemo } from 'react'
import { Link, Outlet, useLocation } from 'react-router-dom';
import '../Styles/custom/navBar.css'
import sproutlyLogo from '../Images/sproutly-logo.svg';
import sproutlyText from '../Images/sproutly-text.svg';

function NavBar() {

Expand All @@ -26,7 +28,10 @@ function NavBar() {
return (
<>
<div className='navbar'>
<div>Sproutly</div>
<div>
<img className='sproutly-logo' src={sproutlyLogo} alt='error img'/>
<img className='sproutly-text' src={sproutlyText} alt='error img'/>
</div>
<div className='navbar-link-container'>
{pageArray.map((page, index)=>{
return <Link key={index} className={`navbar-link${location.pathname===page.path? ' text-white': ''}`} to={page.path}>{page.name}</Link>
Expand Down
4 changes: 4 additions & 0 deletions frontend/web-app/src/Styles/custom/navBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,8 @@
padding-right: 26px;
border-radius: 15px;
border-color: #E6F2D7;
}

.sproutly-text{
padding-left: 11px;
}

0 comments on commit 75f531b

Please sign in to comment.