-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved header into a separate component
- Loading branch information
Showing
3 changed files
with
13 additions
and
14 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
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,10 +1,13 @@ | ||
const Header = () => { | ||
import React from "react"; | ||
import {Breadcrumbs} from "./Breadcrumbs"; | ||
import {ThemeSwitcher} from "./ThemeSwitcher"; | ||
|
||
export const Header = () => { | ||
return ( | ||
<div className="sticky top-0 z-50 shadow bg-indigo-500 text-indigo-50"> | ||
<header> | ||
<p>Stuff goes here</p> | ||
</header> | ||
</div> | ||
<header className=" text-gray-700 p-4 flex justify-between items-center"> | ||
<div><Breadcrumbs /></div> | ||
<div></div> | ||
<div><ThemeSwitcher /></div> | ||
</header> | ||
); | ||
}; | ||
export default 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