-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
7,104 additions
and
2,852 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 |
---|---|---|
|
@@ -35,4 +35,4 @@ | |
} | ||
] | ||
} | ||
} | ||
} |
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,30 +1,45 @@ | ||
import { FC, useState } from "react"; | ||
import { motion } from 'framer-motion'; | ||
import { cx } from "util/cx"; | ||
|
||
export const ContractOrRegister: FC<{ value: number, setValue: (value: number) => void }> = ({ value, setValue }) => { | ||
import { cx } from 'node:util/cx'; | ||
import { FC } from 'react'; | ||
|
||
export const ContractOrRegister: FC<{ | ||
value: number; | ||
setValue: (value: number) => void; | ||
}> = ({ value, setValue }) => { | ||
return ( | ||
<div className="bg-white border rounded-md w-full h-12 flex relative p-1 overflow-hidden"> | ||
<div className="relative h-full w-full flex justify-around text-white"> | ||
<motion.div className="bg-ens-blue h-full w-[49%] rounded-md absolute left-0" | ||
<motion.div | ||
className="bg-ens-blue h-full w-[49%] rounded-md absolute left-0" | ||
animate={{ x: value === 0 ? 0 : '100%' }} | ||
></motion.div> | ||
<div | ||
className={cx( | ||
'z-10 w-full h-full flex items-center justify-center font-bold', | ||
value == 0 | ||
? 'text-white' | ||
: 'text-ens-blue cursor-pointer' | ||
)} | ||
onClick={() => { | ||
setValue(0); | ||
}} | ||
> | ||
</motion.div> | ||
<div className={cx("z-10 w-full h-full flex items-center justify-center font-bold", value == 0 ? 'text-white' : 'text-ens-blue cursor-pointer')} onClick={() => { | ||
setValue(0); | ||
}}> | ||
Contract | ||
</div> | ||
<div className={cx("z-10 w-full h-full flex items-center justify-center font-bold", value == 1 ? 'text-white' : 'text-ens-blue cursor-pointer')} | ||
onClick={ | ||
() => { | ||
setValue(1); | ||
} | ||
}> | ||
<div | ||
className={cx( | ||
'z-10 w-full h-full flex items-center justify-center font-bold', | ||
value == 1 | ||
? 'text-white' | ||
: 'text-ens-blue cursor-pointer' | ||
)} | ||
onClick={() => { | ||
setValue(1); | ||
}} | ||
> | ||
Gateway | ||
</div> | ||
</div> | ||
</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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
import { Card } from "@ensdomains/thorin"; | ||
import { FC } from "react"; | ||
import { Card } from '@ensdomains/thorin'; | ||
import { FC } from 'react'; | ||
|
||
export const BannerCard: FC = () => { | ||
|
||
return ( | ||
<Card className="leading-6"> | ||
<div> | ||
<h2 className="font-bold">Welcome to CCIP Tools</h2> | ||
<p className="text-neutral-700 mt-2"> | ||
This page contains tooling to let you easily deploy and manage Offchain Resolvers for your ENS names. | ||
This page contains tooling to let you easily deploy and | ||
manage Offchain Resolvers for your ENS names. | ||
</p> | ||
</div> | ||
</Card> | ||
) | ||
); | ||
}; |
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
Oops, something went wrong.