Skip to content

Commit

Permalink
feat: added Navbar.tsx and Navbar.css and logo.png
Browse files Browse the repository at this point in the history
  • Loading branch information
kz44 committed Feb 6, 2024
1 parent 254454e commit bac5e56
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
Binary file added frontend/sportsmatch-app/src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions frontend/sportsmatch-app/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { FaMailBulk } from 'react-icons/fa'
import '../styles/Navbar.css'

function Navbar() {
return (
<nav>
<nav className={"nav"}>

Check failure on line 5 in frontend/sportsmatch-app/src/components/Navbar.tsx

View workflow job for this annotation

GitHub Actions / test

Replace `"nav"` with `'nav'`
<div className="logo">
<FaMailBulk />
<span>SportsMingle</span>
<a href="/">
<img className="logo-png" src="src\assets\logo.png" alt="SportMingle logo" />

Check failure on line 8 in frontend/sportsmatch-app/src/components/Navbar.tsx

View workflow job for this annotation

GitHub Actions / test

Replace `·className="logo-png"·src="src\assets\logo.png"·alt="SportMingle·logo"` with `⏎············className="logo-png"⏎············src="src\assets\logo.png"⏎············alt="SportMingle·logo"⏎·········`
</a>
</div>
</nav>
)
}

export default Navbar
12 changes: 12 additions & 0 deletions frontend/sportsmatch-app/src/styles/Navbar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.logo-png{
width: 110px;
margin-left: 17px;
margin-top: 16px;
}

nav{
width: 330px;
height: 60px;
background: #fff;
border-radius: 10px;
}

0 comments on commit bac5e56

Please sign in to comment.