-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
38d7211
commit 3306147
Showing
2 changed files
with
45 additions
and
34 deletions.
There are no files selected for viewing
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,34 +1,44 @@ | ||
import styles from "./Header.module.css"; | ||
import SettingsIcon from '@mui/icons-material/Settings'; | ||
import SettingsIcon from "@mui/icons-material/Settings"; | ||
import Image from "next/image"; | ||
import Popover from "@/app/components/Popover/Popover"; | ||
import Settings from "@/app/components/Settings/Settings"; | ||
|
||
export default function Header({ title }) { | ||
const pbDimenstions = 30 | ||
const pbDimenstions = 30; | ||
|
||
return ( | ||
<> | ||
<header className={styles.header}> | ||
<Popover trigger={ | ||
<div | ||
className={styles.profile} | ||
> | ||
<Image | ||
className={styles.profile__img} | ||
src="/images/sloth-profile.svg" | ||
width={pbDimenstions} | ||
height={pbDimenstions} | ||
alt="Profile Pic" | ||
<Popover | ||
trigger={ | ||
<div className={styles.profile}> | ||
<Image | ||
className={styles.profile__img} | ||
src="/images/sloth-profile.svg" | ||
width={pbDimenstions} | ||
height={pbDimenstions} | ||
alt="Profile Pic" | ||
/> | ||
<SettingsIcon className="fcolor--purple" /> | ||
</div> | ||
}> | ||
<SettingsIcon className="fcolor--purple" /> | ||
</div> | ||
} | ||
> | ||
<Settings /> | ||
</Popover> | ||
|
||
<h1 className={styles.title}>{title}</h1> | ||
|
||
{title.length > 0 ? ( | ||
<h1 className={styles.title}>{title}</h1> | ||
) : ( | ||
<Image | ||
className={styles.logo} | ||
src="/images/sloth-profile.svg" | ||
width={pbDimenstions} | ||
height={pbDimenstions} | ||
alt="Profile Pic" | ||
/> | ||
)} | ||
</header> | ||
</> | ||
); | ||
} | ||
} |
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