-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create shield all banner and page (#1116)
- Loading branch information
1 parent
89b2ece
commit 06d1455
Showing
8 changed files
with
93 additions
and
12 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
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { ActionButton } from "@namada/components"; | ||
import TransferRoutes from "App/Transfer/routes"; | ||
import { twMerge } from "tailwind-merge"; | ||
|
||
export const ShieldAllBanner = (): JSX.Element => { | ||
return ( | ||
<div | ||
className={twMerge( | ||
"bg-yellow rounded-sm h-fit", | ||
"flex flex-col items-center gap-2", | ||
"p-3" | ||
)} | ||
> | ||
<div className="w-[145px] h-[145px] bg-white">img</div> | ||
<ActionButton | ||
href={TransferRoutes.shieldAll().url} | ||
className="max-w-[160px]" | ||
size="sm" | ||
backgroundColor="black" | ||
textColor="yellow" | ||
backgroundHoverColor="yellow" | ||
> | ||
Shield All Assets | ||
</ActionButton> | ||
</div> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { PageWithSidebar } from "App/Common/PageWithSidebar"; | ||
|
||
export const ShieldAll: React.FC = () => { | ||
return ( | ||
<PageWithSidebar> | ||
<div className="flex flex-col gap-2 text-yellow"> | ||
<div>Shield All (WIP)</div> | ||
</div> | ||
<aside className="flex flex-col gap-2 text-yellow"> | ||
<div>Sidebar (WIP)</div> | ||
</aside> | ||
</PageWithSidebar> | ||
); | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Route, Routes } from "react-router-dom"; | ||
import { ShieldAll } from "./ShieldAll"; | ||
import TransferRoutes from "./routes"; | ||
|
||
export const Transfer: React.FC = () => ( | ||
<main className="w-full"> | ||
<Routes> | ||
<Route | ||
path={TransferRoutes.shieldAll().toString()} | ||
element={<ShieldAll />} | ||
/> | ||
</Routes> | ||
</main> | ||
); |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Transfer } from "./Transfer"; |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { createRouteOutput, RouteOutput } from "utils/routes"; | ||
|
||
export const index = (): string => `/transfer`; | ||
|
||
const routeOutput = createRouteOutput(index); | ||
|
||
export const overview = (): RouteOutput => routeOutput(`/`); | ||
|
||
export const shieldAll = (): RouteOutput => routeOutput(`/shield-all`); | ||
|
||
export default { | ||
index, | ||
overview, | ||
shieldAll, | ||
}; |
06d1455
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://namada-interface-dev.netlify.app as production
🚀 Deployed on https://66e57634c95efb4c006880ea--namada-interface-dev.netlify.app