From 7df7993dca0d5a58bb24209a15975267e54ad416 Mon Sep 17 00:00:00 2001 From: damnnou Date: Thu, 21 Mar 2024 14:05:30 +0300 Subject: [PATCH] add: PoweredByAlgebra to create pool form --- .../common/PoweredByAlgebra/index.tsx | 22 ++++++ src/pages/CreatePool/index.tsx | 8 ++- src/pages/Swap/index.tsx | 68 +++++++------------ 3 files changed, 53 insertions(+), 45 deletions(-) create mode 100644 src/components/common/PoweredByAlgebra/index.tsx diff --git a/src/components/common/PoweredByAlgebra/index.tsx b/src/components/common/PoweredByAlgebra/index.tsx new file mode 100644 index 0000000..4a7fa40 --- /dev/null +++ b/src/components/common/PoweredByAlgebra/index.tsx @@ -0,0 +1,22 @@ +import AlgebraLogo from '@/assets/algebra-logo.svg'; +import AlgebraIntegral from '@/assets/algebra-itegral.svg'; +import { cn } from '@/lib/utils'; + +const PoweredByAlgebra = ({ className }: { className?: string }) => { + return ( + + Powered by +
+
+ +
+ +
+
+ ); +}; + +export default PoweredByAlgebra; diff --git a/src/pages/CreatePool/index.tsx b/src/pages/CreatePool/index.tsx index 0876914..d68d60f 100644 --- a/src/pages/CreatePool/index.tsx +++ b/src/pages/CreatePool/index.tsx @@ -1,5 +1,6 @@ import PageContainer from '@/components/common/PageContainer'; import PageTitle from '@/components/common/PageTitle'; +import PoweredByAlgebra from '@/components/common/PoweredByAlgebra'; import CreatePoolForm from '@/components/create-pool/CreatePoolForm'; import { Button } from '@/components/ui/button'; import { Link } from 'react-router-dom'; @@ -15,8 +16,11 @@ const CreatePoolPage = () => { -
- +
+
+ +
+
); diff --git a/src/pages/Swap/index.tsx b/src/pages/Swap/index.tsx index 3f1e03a..c73fa58 100644 --- a/src/pages/Swap/index.tsx +++ b/src/pages/Swap/index.tsx @@ -1,49 +1,31 @@ -import SwapPair from "@/components/swap/SwapPair"; -import SwapButton from "@/components/swap/SwapButton"; -import SwapParams from "@/components/swap/SwapParams"; -import PageContainer from "@/components/common/PageContainer"; -import PageTitle from "@/components/common/PageTitle"; -import AlgebraLogo from '@/assets/algebra-logo.svg' -import AlgebraIntegral from '@/assets/algebra-itegral.svg' +import SwapPair from '@/components/swap/SwapPair'; +import SwapButton from '@/components/swap/SwapButton'; +import SwapParams from '@/components/swap/SwapParams'; +import PageContainer from '@/components/common/PageContainer'; +import PageTitle from '@/components/common/PageTitle'; +import PoweredByAlgebra from '@/components/common/PoweredByAlgebra'; const SwapPage = () => { - - return - - - -
- -
- - {/* */} - -
- - - + return ( + + + +
+
+ {/* */} + +
+ + + +
+
- - Powered by -
-
- -
- -
-
- -
- -
- {/* */} +
{/* */}
+
+ ); +}; -
- - - -} - -export default SwapPage; \ No newline at end of file +export default SwapPage;