Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync header menu UI #10

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/WalletContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const WalletContainer = () => {
d="M17 4V1L16 0H1L0 1V13L1 14H16L17 13V10H18V4H17ZM16 1.41421L15.5858 1H1.41421L1 1.41421V12.5858L1.41421 13H15.5858L16 12.5858V10H7L6 9V5L7 4H16V1.41421ZM17 5H7.41421L7 5.41421V8.58579L7.41421 9H17V5Z"
/>
</svg>
<div className="w-full pl-2 text-center text-xs" style={{ marginBottom: "-2px" }}>
<div className="w-full pl-2 text-center text-xs" style={{ marginBottom: "-1px" }}>
{isConnected && address ? (ensName ? ensName.substring(0, 12) : formatHexString(address)) : "Connect"}
</div>
</button>
Expand Down
8 changes: 4 additions & 4 deletions components/nav/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ export const Navbar: React.FC = () => {

return (
<>
<nav className="font-screener sticky top-0 z-[var(--hub-navbar-z-index)] flex h-20 w-full select-none items-center justify-center bg-neutral-0">
<div className="m-auto flex h-[90%] w-[97%] max-w-[100%] items-center justify-between gap-2 px-4 md:gap-8 lg:h-[95%]">
<nav className="font-screener sticky top-0 z-[var(--hub-navbar-z-index)] flex h-20 w-full select-none items-center justify-center bg-neutral-0 p-6">
<div className="m-auto flex h-[90%] w-[100%] max-w-[100%] items-center justify-between gap-2 md:gap-8 lg:h-[95%]">
<Link
href="/#/community-voting"
className={classNames(
"flex items-center gap-x-5 py-2",
"flex items-center gap-x-5 pt-1.5",
"outline-none focus:outline-none focus-visible:ring focus-visible:ring-primary focus-visible:ring-offset" // focus styles
)}
>
<img src={PUB_PROJECT_LOGO} height={24} className="shrink-0" alt={`${PUB_APP_NAME} logo`} />
<img src={PUB_PROJECT_LOGO} width={73} height={40} className="shrink-0" alt={`${PUB_APP_NAME} logo`} />
</Link>
<ul className="mr-auto hidden gap-x-8 md:flex">
{navLinks.map(({ id, name, path, isExternal = false }) => (
Expand Down
Loading