Skip to content

Commit

Permalink
feat: basic version
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Apr 13, 2024
1 parent 302f73b commit e6019ce
Show file tree
Hide file tree
Showing 53 changed files with 6,316 additions and 743 deletions.
2 changes: 1 addition & 1 deletion packages/client/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
Expand Down
1 change: 1 addition & 0 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@radix-ui/react-slot": "^1.0.2",
"@tanstack/react-query": "^5.29.2",
"autoprefixer": "^10.4.19",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"connectkit": "^1.7.3",
Expand Down
6 changes: 6 additions & 0 deletions packages/client/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file added packages/client/public/assets/layers/arb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/client/public/assets/layers/avax.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/client/public/assets/layers/base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/client/public/assets/layers/bnb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/client/public/assets/layers/op.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 36 additions & 2 deletions packages/client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,44 @@
import { arbitrumSepolia, avalancheFuji, baseSepolia, bscTestnet, optimismSepolia } from "viem/chains";
import { Web3Provider } from "./Web3Provider";
import { ConnectKitButton } from "connectkit";
import { Champion } from "./component/Champion";
import { DeploymentLocation } from "./component/DeploymentLocation";
import { StatusBar } from "./component/StatusBar";
import { Title } from "./component/Title";
import "./index.css";

function App() {
return (
<Web3Provider>
<ConnectKitButton />
<div className="flex relative h-screen w-screen">
<StatusBar />
<Title />
<Champion />
{/* op sepolia */}
<DeploymentLocation
className="left-1/2 -translate-x-1/2 bottom-[4rem] "
chainId={optimismSepolia.id}
/>
{/* arb sepolia */}
<DeploymentLocation
className="left-[20rem] bottom-[15rem] "
chainId={arbitrumSepolia.id}
/>
{/* base sepolia */}
<DeploymentLocation
className="left-[20rem] top-[15rem] "
chainId={baseSepolia.id}
/>
{/*fuji */}
<DeploymentLocation
className="right-[20rem] top-[15rem] "
chainId={avalancheFuji.id}
/>
{/* bsc testnet */}
<DeploymentLocation
className="right-[20rem] bottom-[15rem] "
chainId={bscTestnet.id}
/>
</div>
</Web3Provider>
);
}
Expand Down
6 changes: 3 additions & 3 deletions packages/client/src/Web3Provider.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { WagmiProvider, createConfig, http } from "wagmi";
import { WagmiProvider, createConfig } from "wagmi";
import {
arbitrumSepolia,
avalanche,
avalancheFuji,
baseSepolia,
bscTestnet,
mainnet,
optimismSepolia,
sepolia,
} from "wagmi/chains";
Expand All @@ -20,6 +19,7 @@ const config = createConfig(
optimismSepolia,
arbitrumSepolia,
bscTestnet,
baseSepolia,
],
// transports: {},

Expand Down
Loading

0 comments on commit e6019ce

Please sign in to comment.