-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure infura provider
- Loading branch information
Showing
18 changed files
with
262 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import clsx from 'clsx'; | ||
|
||
// A simple grid of squares similar to Github's contribution graph | ||
export function HeatmapSquares({ | ||
rows, | ||
columns, | ||
data, | ||
}: { | ||
rows: number; | ||
columns: number; | ||
data: any[]; | ||
}) { | ||
return ( | ||
<div | ||
style={{ | ||
gridTemplateRows: `repeat(${rows}, minmax(0, 1fr))`, | ||
gridTemplateColumns: `repeat(${columns}, minmax(0, 1fr))`, | ||
}} | ||
className="grid w-full gap-1" | ||
> | ||
{data.map((value, index) => ( | ||
<div | ||
key={index} | ||
className={clsx( | ||
'h-3 w-3 rounded-[1px] border border-gray-300 transition-all duration-1000 sm:h-4 sm:w-4 md:h-5 md:w-5', | ||
value ? 'bg-green-700' : 'bg-gray-400', | ||
)} | ||
/> | ||
))} | ||
</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
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 |
---|---|---|
@@ -1,10 +1,14 @@ | ||
export const links = { | ||
home: 'https://celostation.org', | ||
celo: 'https://celo.org', | ||
blockscout: 'https://explorer.celo.org', | ||
celoscan: 'https://celoscan.io', | ||
celoscanApi: 'https://api.celoscan.io', | ||
discord: 'https://discord.gg/celo', | ||
github: 'https://github.com/jmrossy/celo-station', | ||
twitter: 'https://twitter.com/CeloOrg', | ||
// RPCs | ||
forno: 'https://forno.celo.org', | ||
infura: 'https://celo-mainnet.infura.io/v3', | ||
// Explorers | ||
blockscout: 'https://explorer.celo.org', | ||
celoscan: 'https://celoscan.io', | ||
celoscanApi: 'https://api.celoscan.io', | ||
}; |
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.