mirror of
https://github.com/hubHarmony/servii-frontend.git
synced 2024-11-17 21:40:30 +00:00
[+] logo import
(The design is perfect, change scss if gay.)
This commit is contained in:
parent
e2142d63f2
commit
f8516d1ef3
BIN
src/assets/icon.png
Normal file
BIN
src/assets/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 42 KiB |
@ -3,6 +3,7 @@ import { auth } from '../../service/firebase';
|
||||
import styles from './Navbar.module.scss';
|
||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { faUser, faCog, faSignOutAlt } from '@fortawesome/free-solid-svg-icons';
|
||||
import logo from '../../assets/icon.png';
|
||||
import PropTypes from "prop-types";
|
||||
|
||||
const Navbar = ({ user }) => {
|
||||
@ -39,6 +40,9 @@ const Navbar = ({ user }) => {
|
||||
|
||||
return (
|
||||
<div className={styles.navbar}>
|
||||
<div className={styles.logoSection}>
|
||||
<img src={logo} alt="Logo" />
|
||||
</div>
|
||||
<div className={styles.profileSection} onClick={toggleDropdown}>
|
||||
{user && user.photoURL ? (
|
||||
<img src={user.photoURL} alt="Profile" className={styles.profilePic} />
|
||||
|
@ -13,6 +13,11 @@
|
||||
height: var(--navbar-height);
|
||||
}
|
||||
|
||||
.logoSection {
|
||||
justify-content: flex-start;
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.profileSection {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
Loading…
Reference in New Issue
Block a user