-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* header component complete * refactor: replace <img> with Next.js Image component for better optimization
- Loading branch information
1 parent
effb7ab
commit fc021b7
Showing
1 changed file
with
27 additions
and
2 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,7 +1,32 @@ | ||
import Image from "next/image"; | ||
|
||
|
||
export default function Header() { | ||
return ( | ||
<div>Header goes here....</div> | ||
<header> | ||
<nav className="bg-dark px-4 lg:px-6 py-2.5 "> | ||
<div className="flex justify-between items-center mx-auto max-w-screen-xl"> | ||
<a href="/"> | ||
<Image | ||
src="/images/logo.png" | ||
alt="Logo" | ||
width={100} | ||
height={36} | ||
/> | ||
</a> | ||
<div className="flex items-center lg:order-2"> | ||
<a href="#" className="text-subtle-text font-medium text-sm px-4">election</a> | ||
<a href="#" className="text-subtle-text font-medium text-sm px-4">vote</a> | ||
<a href="#" className="text-dark bg-text rounded-full text-sm px-4 lg:px-5 py-1 lg:py-1.5 mr-2 ml-5 flex"> | ||
<div className="flex"> | ||
<div className="hidden sm:block">connect wallet</div> | ||
<svg className="sm:ml-2" xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 20 20" height="20px" viewBox="0 0 20 20" width="20px" ><g><rect fill="none" height="20" width="20" /></g><g><path d="M15,4H5C3.34,4,2,5.34,2,7v6c0,1.66,1.34,3,3,3h10c1.66,0,3-1.34,3-3V7C18,5.34,16.66,4,15,4z M13.3,11.33 c-0.18,0.15-0.43,0.21-0.66,0.15L3.69,9.29C3.94,8.82,4.43,8.5,5,8.5h10c0.43,0,0.82,0.19,1.1,0.49L13.3,11.33z M16.5,7.42 C16.06,7.16,15.55,7,15,7H5C4.45,7,3.94,7.16,3.5,7.42V7c0-0.83,0.67-1.5,1.5-1.5h10c0.83,0,1.5,0.67,1.5,1.5V7.42z" /></g></svg> | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</nav> | ||
</header> | ||
); | ||
} | ||
} | ||
|