-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Propy/feat/claim-your-address-map
Feat/claim your address map
- Loading branch information
Showing
39 changed files
with
13,178 additions
and
10,619 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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,41 @@ | ||
import { createWeb3Modal, defaultWagmiConfig } from '@web3modal/wagmi/react' | ||
|
||
import { WagmiConfig } from 'wagmi' | ||
// import { arbitrum, mainnet } from 'viem/chains' | ||
import { arbitrum, mainnet } from 'wagmi/chains' | ||
|
||
import AppContainer from '../containers/AppContainer'; | ||
|
||
// 1. Get projectId at https://cloud.walletconnect.com | ||
const projectId = 'f230464ddad38c3d4ab987793e5d2b64' | ||
|
||
// 2. Create wagmiConfig | ||
const metadata = { | ||
name: 'Web3Modal', | ||
description: 'Web3Modal Example', | ||
url: 'https://web3modal.com', | ||
icons: ['https://avatars.githubusercontent.com/u/37784886'] | ||
} | ||
|
||
const chains = [mainnet, arbitrum] | ||
const wagmiConfig = defaultWagmiConfig({ chains, projectId, metadata }) | ||
|
||
// 3. Create modal | ||
createWeb3Modal({ | ||
wagmiConfig, | ||
projectId, | ||
chains, | ||
themeMode: 'light', | ||
// chainImages: { | ||
// 1: EthLogo, | ||
// 42161: ArbitrumLogo | ||
// } | ||
}) | ||
|
||
export default function DappProviderWagmi() { | ||
return ( | ||
<WagmiConfig config={wagmiConfig}> | ||
<AppContainer /> | ||
</WagmiConfig> | ||
) | ||
} |
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,74 @@ | ||
import React from 'react' | ||
|
||
import { Theme } from '@mui/material/styles'; | ||
|
||
import makeStyles from '@mui/styles/makeStyles'; | ||
import createStyles from '@mui/styles/createStyles'; | ||
import { Typography } from '@mui/material'; | ||
|
||
import Marquee from "react-fast-marquee"; | ||
|
||
import LinkWrapper from './LinkWrapper'; | ||
|
||
import { | ||
GLOBAL_TOP_BANNER_HEIGHT | ||
} from '../utils/constants'; | ||
|
||
import { | ||
IHorizontalScrollingTextEntry, | ||
} from '../interfaces'; | ||
|
||
const useStyles = makeStyles((theme: Theme) => | ||
createStyles({ | ||
root: { | ||
backgroundColor: 'black', | ||
color: 'white', | ||
}, | ||
marqueeContainer: { | ||
// max-width: 100%; | ||
// overflow: hidden; | ||
zIndex: 2000, | ||
position: 'fixed', | ||
backgroundColor: 'black', | ||
color: 'white', | ||
display: 'flex', | ||
alignItems: 'center', | ||
minWidth: '100%', | ||
} | ||
}), | ||
); | ||
|
||
interface IHorizontalScrollingTextBannerProps { | ||
entries: IHorizontalScrollingTextEntry[] | ||
} | ||
|
||
const HorizontalScrollingTextBanner = (props: IHorizontalScrollingTextBannerProps) => { | ||
|
||
const { | ||
entries | ||
} = props; | ||
|
||
const classes = useStyles(); | ||
|
||
return ( | ||
<div className={classes.marqueeContainer} style={{height: GLOBAL_TOP_BANNER_HEIGHT}}> | ||
<Marquee | ||
speed={25} | ||
pauseOnHover={true} | ||
> | ||
{entries && entries.map((entry, index) => | ||
<div style={{display: 'flex', alignItems: 'center'}}> | ||
<LinkWrapper link={entry.link}> | ||
<Typography variant="body1" style={{fontSize: '0.8rem', fontWeight: 'bold'}} key={`horizontal-text-scroller-banner-entry-${index}`} className="marquee-proto-span"> | ||
{entry.string} | ||
</Typography> | ||
</LinkWrapper> | ||
| | ||
</div> | ||
)} | ||
</Marquee> | ||
</div> | ||
) | ||
} | ||
|
||
export default HorizontalScrollingTextBanner; |
Oops, something went wrong.