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

feat: added bridge upcoming audit banner #223

Merged
merged 4 commits into from
Jul 26, 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
12 changes: 12 additions & 0 deletions apps/web/src/app/_components/Banner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export default function Banner() {
return (
<div className="bg-space-blue-400 px-4 py-2 font-semibold">
<p className="text-center">
Important Notice: The Bridge will be temporarily unavailable from
07/30/2024 for at least 3 weeks due to a comprehensive audit. We
apologize for any inconvenience this may cause and appreciate your
understanding.
</p>
</div>
);
}
74 changes: 39 additions & 35 deletions apps/web/src/app/_components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import useNftSelection from "../(routes)/bridge/_hooks/useNftSelection";
import useAccountFromChain from "../_hooks/useAccountFromChain";
import useCurrentChain from "../_hooks/useCurrentChain";
import useIsFullyConnected from "../_hooks/useIsFullyConnected";
import Banner from "./Banner";
import ConnectEthereumButton from "./ConnectEthereumButton";
import ConnectStarkNetButton from "./ConnectStarkNetButton";
import Logo from "./Logo";
Expand Down Expand Up @@ -89,44 +90,47 @@ export default function Header() {
const pathname = usePathname();

return (
<header className="fixed z-20 flex h-23 w-full items-center justify-center bg-white p-6 dark:bg-void-black md:justify-between">
<Link href="/">
<Logo />
</Link>
<div className="hidden items-center gap-8 md:flex">
<Link href="/portfolio">
<Typography
className={clsx(
pathname === "/portfolio" && "text-space-blue-source",
"transition-colors hover:text-space-blue-source"
)}
variant="heading_light_xxs"
>
Portfolio
</Typography>
<header className="fixed z-20 w-full">
<Banner />
<div className="flex h-23 w-full items-center justify-center bg-white p-6 dark:bg-void-black md:justify-between">
<Link href="/">
<Logo />
</Link>
<BridgeLink />
<LoungeLink />
<a
href="https://everai.typeform.com/to/PMyHymLn"
rel="noreferrer"
target="_blank"
>
<Typography
className="transition-colors hover:text-space-blue-source"
variant="heading_light_xxs"
<div className="hidden items-center gap-8 md:flex">
<Link href="/portfolio">
<Typography
className={clsx(
pathname === "/portfolio" && "text-space-blue-source",
"transition-colors hover:text-space-blue-source"
)}
variant="heading_light_xxs"
>
Portfolio
</Typography>
</Link>
<BridgeLink />
<LoungeLink />
<a
href="https://everai.typeform.com/to/PMyHymLn"
rel="noreferrer"
target="_blank"
>
Submit Collection
</Typography>
</a>
</div>
<div className="hidden items-center gap-4 md:flex">
<div className="flex gap-4">
{/* TODO @YohanTz: Modal context? */}
<ConnectEthereumButton />
<ConnectStarkNetButton />
<Typography
className="transition-colors hover:text-space-blue-source"
variant="heading_light_xxs"
>
Submit Collection
</Typography>
</a>
</div>
<div className="hidden items-center gap-4 md:flex">
<div className="flex gap-4">
{/* TODO @YohanTz: Modal context? */}
<ConnectEthereumButton />
<ConnectStarkNetButton />
</div>
<DarkModeButton />
</div>
<DarkModeButton />
</div>
</header>
);
Expand Down
Loading
Loading