diff --git a/public/SummerPixel22Regular-jE0W7.ttf b/public/SummerPixel22Regular-jE0W7.ttf new file mode 100644 index 0000000..c11e2e5 Binary files /dev/null and b/public/SummerPixel22Regular-jE0W7.ttf differ diff --git a/src/index.js b/src/index.js index 39e3ea1..ef4357d 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ const { connectors } = getDefaultWallets({ }); const wagmiClient = createClient({ - autoConnect: false, + autoConnect: true, connectors, provider, webSocketProvider diff --git a/src/styles/main.css b/src/styles/main.css index d057cc0..64c17ec 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -1,5 +1,11 @@ +@font-face { + font-family: 'SummerPixel'; + src: url('../../public/SummerPixel22Regular-jE0W7.ttf'); +} + + * { - font-family: 'Times New Roman', Times, serif; + font-family: 'SummerPixel'; font-weight: 400; font-style: normal; } diff --git a/src/styles/sections.css b/src/styles/sections.css index ad90ad7..7b00737 100644 --- a/src/styles/sections.css +++ b/src/styles/sections.css @@ -19,8 +19,8 @@ } #heroText { - padding-top: 12vh; - font-size: 4em; + padding-top: 14vh; + font-size: 3.5em; width: 80%; text-align: center; margin: 0 auto; @@ -28,7 +28,7 @@ #heroImage { max-width: 240px; - margin: 1em auto; + margin: .5em auto; animation: fadeIn 4s ease-in; } diff --git a/src/template/Sections.jsx b/src/template/Sections.jsx index e0aedde..d28625d 100644 --- a/src/template/Sections.jsx +++ b/src/template/Sections.jsx @@ -86,15 +86,38 @@ class GenerateBombOverlay extends React.Component { } bombCoords.push(o); } - this.state = {coords: bombCoords}; + this.state = {coords: bombCoords, color: this.props.color}; } render() { - return this.state.coords.map((obj) =>
) + return this.state.coords.map((obj) =>
) } } -export function Section3() { +class GameMap extends React.Component { + constructor(props) { + super(props); + } + + render() { + return ( + <> +

Game Map

+
+ + {/* show active bombs held by other players */} + + {/* show bombs that have exploded */} + + {/* show player bombs */} + +
+ + ) + } +} + +function Section3() { const [boomerAmount, setBoomerAmount] = useState(1); const [bombAmount, setBombAmount] = useState(1); const [sendBombAmount, setSendBombAmount] = useState(1); @@ -104,7 +127,7 @@ export function Section3() { const [bombBalance, setBombBalance] = useState(0); const [bombSupply, setBombSupply] = useState(0); const [boomerSupply, setBoomerSupply] = useState(0); - const [bombExploded, setBombExploded] = useState(0); + const [bombsExploded, setBombsExploded] = useState(0); const [boomerKillCount, setBoomerKillCount] = useState(0); const { isConnected, address } = useAccount(); useContractReads({ @@ -161,7 +184,6 @@ export function Section3() { } ], watch: true, - cacheTime: 5000, onSuccess(data) { setBoomerPrice(data[0].toString()); setBombPrice(data[1].toString()); @@ -169,7 +191,7 @@ export function Section3() { setBombBalance(data[3].toString()); setBoomerSupply(data[4].toString()); setBombSupply(data[5].toString()); - setBombExploded(data[6].toString()); + setBombsExploded(data[6].toString()); setBoomerKillCount(data[7].toString()); } }); @@ -208,50 +230,47 @@ export function Section3() { return (
{isConnected && -
-
-

Radicalize a Boomer

-

Radicalizing a boomer will mint ERC-721 BOOMR tokens with images of a pixel art Web3 Unaboomers.

-

You have {boomerBalance} BOOMR

- -

- radicalizeBoomersWrite.write?.()}> - {radicalizeBoomersWrite.isLoading && <>minting {boomerAmount} || <>mint {boomerAmount} ({ethers.utils.formatEther((boomerPrice * boomerAmount).toString())} Ξ)} - -

- debounce(setBoomerAmount(v), 500)} /> -
-
-

Assemble Bombs

-

Assembling bombs will mint ERC-1155 BOMB tokens with an image of a pixel art bomb to send to random Unaboomers to kill them.

-

You have {bombBalance} BOMB

- -

- assembleBombsWrite.write?.()}> - {assembleBombsWrite.isLoading && <>minting {bombAmount} || <>mint {bombAmount} ({ethers.utils.formatEther((bombPrice * bombAmount).toString())} Ξ)} - -

- setBombAmount(v)} /> -
-
-

Send Bombs

-

Sending bombs will burn your BOMB token and kill a BOOMR token at random. Be careful not to kill yourself in the process.

-

There are {boomerSupply - boomerKillCount} BOOMR available to kill

- -

- sendBombsWrite.write?.()}> - send {sendBombAmount} (~0 Ξ) - -

- setSendBombAmount(v)} /> + <> +
+
+

Radicalize a Boomer

+

Radicalizing a boomer will mint ERC-721 BOOMR tokens with images of a pixel art Web3 Unaboomers.

+

You have {boomerBalance} BOOMR

+ +

+ radicalizeBoomersWrite.write?.()}> + {radicalizeBoomersWrite.isLoading && <>minting {boomerAmount} || <>mint {boomerAmount} ({ethers.utils.formatEther((boomerPrice * boomerAmount).toString())} Ξ)} + +

+ debounce(setBoomerAmount(v), 500)} /> +
+
+

Assemble Bombs

+

Assembling bombs will mint ERC-1155 BOMB tokens with an image of a pixel art bomb to send to random Unaboomers to kill them.

+

You have {bombBalance} BOMB

+ +

+ assembleBombsWrite.write?.()}> + {assembleBombsWrite.isLoading && <>minting {bombAmount} || <>mint {bombAmount} ({ethers.utils.formatEther((bombPrice * bombAmount).toString())} Ξ)} + +

+ setBombAmount(v)} /> +
+
+

Send Bombs

+

Sending bombs will burn your BOMB token and kill a BOOMR token at random. Be careful not to kill yourself in the process.

+

There are {boomerSupply - boomerKillCount} BOOMR available to kill

+ +

+ sendBombsWrite.write?.()}> + send {sendBombAmount} (~0 Ξ) + +

+ setSendBombAmount(v)} /> +
-
- - - - -
-
+ + ||

connect your wallet to play