diff --git a/components/fiscal-sponsorship/first/stats.js b/components/fiscal-sponsorship/first/stats.js index d193640d..bf2d0d41 100644 --- a/components/fiscal-sponsorship/first/stats.js +++ b/components/fiscal-sponsorship/first/stats.js @@ -43,9 +43,6 @@ function formatMoney(amount) { } const Stats = ({ stats }) => { - if (stats.transactions_volume === undefined) { - return null - } const [balance, setBalance] = useState(0) // A formatted balance string, split by decimal useEffect(() => { @@ -67,6 +64,9 @@ const Stats = ({ stats }) => { return () => observer.disconnect() }, [stats.transactions_volume]) + + if (stats.transactions_volume === undefined) return null + return ( diff --git a/components/index/cards/scrapyard.js b/components/index/cards/scrapyard.js new file mode 100644 index 00000000..f6c9db96 --- /dev/null +++ b/components/index/cards/scrapyard.js @@ -0,0 +1,182 @@ +import CardModel from './card-model' +import { Box, Flex, Grid, Image, Text, Heading } from 'theme-ui' +import Buttons from './button' +import { Global } from '@emotion/react' + +/** @jsxImportSource theme-ui */ + +export default function Scrapyard() { + return ( + + + + + + Scrapyard + + + + + + + Build stupid stuff, get stupid prizes. + + + + + 100+ Cities worldwide – March 15-16 + + + + + + + + + + + Learn More + + + + + + + ) +} diff --git a/pages/index.js b/pages/index.js index 22c22985..0af6e9c0 100644 --- a/pages/index.js +++ b/pages/index.js @@ -40,8 +40,7 @@ import Comma from '../components/comma' import Haxidraw from '../components/index/cards/haxidraw' import Onboard from '../components/index/cards/onboard' import Trail from '../components/index/cards/trail' -import HighSeas from '../components/index/cards/highseas' -import Counterspell from '../components/index/cards/counterspell' +import Scrapyard from '../components/index/cards/scrapyard' /** @jsxImportSource theme-ui */ function Page({ @@ -669,8 +668,7 @@ function Page({ and make things together! - - +