-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: PoweredByAlgebra to create pool form
- Loading branch information
Showing
3 changed files
with
53 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<a | ||
href={'https://algebra.finance'} | ||
className={cn('flex items-center gap-2 p-2', className)} | ||
> | ||
<span className="text-sm font-semibold">Powered by</span> | ||
<div className="flex items-center gap-1"> | ||
<div className="flex items-center justify-center w-[18px] h-[18px] rounded-full"> | ||
<img src={AlgebraLogo} width={18} height={18} /> | ||
</div> | ||
<img src={AlgebraIntegral} width={120} height={18} /> | ||
</div> | ||
</a> | ||
); | ||
}; | ||
|
||
export default PoweredByAlgebra; |
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 |
---|---|---|
@@ -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 <PageContainer> | ||
|
||
<PageTitle title={'Swap'} /> | ||
|
||
<div className="grid grid-cols-1 lg:grid-cols-3 gap-x-0 gap-y-8 w-full lg:gap-8 mt-8 lg:mt-16"> | ||
|
||
<div className="flex flex-col gap-2"> | ||
|
||
{/* <IntegralPools /> */} | ||
|
||
<div className="flex flex-col gap-1 w-full bg-card border border-card-border p-2 rounded-3xl"> | ||
<SwapPair /> | ||
<SwapParams /> | ||
<SwapButton /> | ||
return ( | ||
<PageContainer> | ||
<PageTitle title={'Swap'} /> | ||
|
||
<div className="grid grid-cols-1 lg:grid-cols-3 gap-x-0 gap-y-8 w-full lg:gap-8 mt-8 lg:mt-16"> | ||
<div className="flex flex-col gap-2"> | ||
{/* <IntegralPools /> */} | ||
|
||
<div className="flex flex-col gap-1 w-full bg-card border border-card-border p-2 rounded-3xl"> | ||
<SwapPair /> | ||
<SwapParams /> | ||
<SwapButton /> | ||
</div> | ||
<PoweredByAlgebra /> | ||
</div> | ||
|
||
<a href={'https://algebra.finance'} className="flex items-center gap-2 p-2"> | ||
<span className="text-sm font-semibold">Powered by</span> | ||
<div className="flex items-center gap-1"> | ||
<div className="flex items-center justify-center w-[18px] h-[18px] rounded-full"> | ||
<img src={AlgebraLogo} width={18} height={18} /> | ||
</div> | ||
<img src={AlgebraIntegral} width={120} height={18} /> | ||
</div> | ||
</a> | ||
|
||
</div> | ||
|
||
<div className="col-span-2"> | ||
{/* <SwapChart /> */} | ||
<div className="col-span-2">{/* <SwapChart /> */}</div> | ||
</div> | ||
</PageContainer> | ||
); | ||
}; | ||
|
||
</div> | ||
|
||
</PageContainer> | ||
|
||
} | ||
|
||
export default SwapPage; | ||
export default SwapPage; |