Skip to content

Commit

Permalink
Add banner for the upcoming hardfork
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-if committed Mar 5, 2024
1 parent c200fbb commit 03a27ba
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions components/HardforkBanner/HardforkBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Container, Flex, Link, Text } from "@/lib/ui";

export function HardforkBanner() {
return (
<Flex bg="black" h="52px" alignItems="center">
<Container
textAlign={{
base: "left",
md: "center",
}}
>
<Text color="white">
The hardfork is coming on April 2nd, 12 PM GMT.&nbsp;
<Link href="/learn/blog/2024-02-26-testnet-hardfork">
Learn more {">"}
</Link>
</Text>
</Container>
</Flex>
);
}
2 changes: 2 additions & 0 deletions layouts/Main/Main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { Flex, chakra } from "@/lib/ui";
import { Footer } from "../../components/Footer/Footer";
import { NavBar } from "../../components/NavBar/NavBar";
import { HardforkBanner } from "@/components/HardforkBanner/HardforkBanner";

export function MainLayout({ children }: { children: React.ReactNode }) {
return (
<Flex direction="column" alignItems="stretch" minHeight="100svh">
<HardforkBanner />
<NavBar />
<chakra.main
flexGrow={1}
Expand Down

0 comments on commit 03a27ba

Please sign in to comment.