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

Add banner 1.0 #302

Merged
merged 1 commit into from
Dec 10, 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
3 changes: 3 additions & 0 deletions src/app/BridgeSwap/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import Swap from "./Swap";
import { Details } from "./Details";
import MaintenanceBanner from "@/components/modal/MaintenanceBanner";
import { SwitchToTestNetwork } from "@/staging/components/cross-trade/components/common/WrongNetwork";
import { BANNER10 } from "@/staging/constants/banner";
import { InitialBanner } from "@/staging/components/legacy-titan/InitialBanner";

export default function BridgeSwap() {
return (
Expand All @@ -23,6 +25,7 @@ export default function BridgeSwap() {
>
{/* <ServiceSuspensionBanner/> */}
<MaintenanceBanner />
{BANNER10 && <InitialBanner />}
{/* <SwitchToTestNetwork
style={{ marginTop: "55px", marginBottom: "14px" }}
/> */}
Expand Down
3 changes: 3 additions & 0 deletions src/constant/url/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
export const GoogleFormURL =
"https://docs.google.com/forms/d/e/1FAIpQLSc6pHHABsnIZ2MvcEa57VCtSNTRXHAaFjBLQYf1LbiMB_81OA/viewform";

export const TitanSunSetGuideURL =
"https://medium.com/tokamak-network/tokamak-network-to-sunset-titan-b4471019c92";
56 changes: 56 additions & 0 deletions src/staging/components/legacy-titan/InitialBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import { TitanSunSetGuideURL } from "@/constant/url";
import { Flex, Text } from "@chakra-ui/react";
import React from "react";

export const InitialBanner = () => {
return (
<Flex
w={"493px"}
flexDir={"column"}
gap={"12px"}
justifyContent={"center"}
alignItems={"center"}
mb={"48px"}
>
<Flex
width={"100%"}
flexDir={"column"}
px={"16px"}
py={"10px"}
borderRadius={"8px"}
bg={"#F9C03E"}
>
<Text fontSize={"14px"} color={"#0F0F12"} fontWeight={500}>
Titan to shutown in December, 2024
</Text>
<Text fontSize={"11px"} color={"#0F0F12"} fontWeight={400}>
Read about it more{" "}
<a
href={TitanSunSetGuideURL}
target="_blank"
style={{ textDecoration: "underline" }}
>
here
</a>
. The exact date will be announced soon.
</Text>
</Flex>
<Flex
flexDir={"column"}
px={"16px"}
py={"10px"}
borderRadius={"8px"}
bg={"#F9C03E"}
>
<Text fontSize={"14px"} color={"#0F0F12"} fontWeight={500}>
Tokamak Bridge to shutdown in January, 2025
</Text>
<Text fontSize={"11px"} color={"#0F0F12"} fontWeight={400}>
Pools and cross trade will shutdown in December, while other functions
will continue with limited support until their final shutdown in
January
</Text>
</Flex>
</Flex>
);
};
2 changes: 2 additions & 0 deletions src/staging/constants/banner.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export const BANNER10 = true;
export const MAINTENANCE_MODE = false;
Loading