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
5ec9d21
commit 61a26aa
Showing
2 changed files
with
24 additions
and
16 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,26 +1,34 @@ | ||
import styles from "./Header.module.css"; | ||
import SettingsIcon from '@mui/icons-material/Settings'; | ||
import Image from "next/image"; | ||
import Link from "next/link"; | ||
import Popover from "@/app/components/Popover/Popover"; | ||
import Settings from "@/app/components/Settings/Settings"; | ||
|
||
export default function Header({title}) { | ||
const pbDimenstions = 30 | ||
|
||
return ( | ||
<header className={styles.header}> | ||
<Link href="/settings"> | ||
<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> | ||
</Link> | ||
<h1 className={styles.title}>{title}</h1> | ||
</header> | ||
<> | ||
<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" | ||
/> | ||
<SettingsIcon className="fcolor--purple" /> | ||
</div> | ||
}> | ||
<Settings /> | ||
</Popover> | ||
|
||
<h1 className={styles.title}>{title}</h1> | ||
</header> | ||
</> | ||
); | ||
} |
File renamed without changes.