diff --git a/components/index/cards/button.js b/components/index/cards/button.js index 4af7dfee..4a114a93 100644 --- a/components/index/cards/button.js +++ b/components/index/cards/button.js @@ -6,6 +6,7 @@ import Icon from '@hackclub/icons' export default function Buttons({ children, icon, + customIcon, id, content, link, @@ -51,12 +52,18 @@ export default function Buttons({ rel="noreferrer" {...props} > - + {customIcon ? ( + + {customIcon} + + ) : ( + + )} {children} diff --git a/components/index/cards/moonshot.js b/components/index/cards/moonshot.js new file mode 100644 index 00000000..d0119583 --- /dev/null +++ b/components/index/cards/moonshot.js @@ -0,0 +1,146 @@ +import CardModel from './card-model' +import { Box, Text, Image } from 'theme-ui' +import Buttons from './button' +import Balancer from 'react-wrap-balancer' + +/** @jsxImportSource theme-ui */ + +export default function Moonshot() { + return ( + + + + + + + + + + + + + moonshot! + + + + + 4-day hackathon in Orlando, Florida + + + + w/ a FREE visit to NASA and Universal Studios! + + + + + + + } + sx={{ + fontFamily: 'system-ui, sans-serif', + fontWeight: '600' + }} + > + Join Moonshot + + + + + ) +} \ No newline at end of file diff --git a/pages/index.js b/pages/index.js index 21284ac7..f3a76718 100644 --- a/pages/index.js +++ b/pages/index.js @@ -42,6 +42,7 @@ import Haxidraw from '../components/index/cards/haxidraw' import Onboard from '../components/index/cards/onboard' import Blueprint from '../components/index/cards/blueprint' import Athena from '../components/index/cards/athena' +import Moonshot from '../components/index/cards/moonshot' import Highway from '../components/index/cards/highway' import Shipwrecked from '../components/index/cards/shipwrecked' /** @jsxImportSource theme-ui */ @@ -731,6 +732,7 @@ function Page({ blueprintData={blueprintData} stars={stars.onboard.stargazerCount} /> +