From 8ed443ee2d53016fd4b3ad93f083f7bd541e4252 Mon Sep 17 00:00:00 2001 From: graham Date: Sat, 11 Oct 2025 20:09:06 -0400 Subject: [PATCH] Fixing merge issue and lockfile issue w/ #1658 - moonshot card (#1660) * Added moonshot card * Revert "Added moonshot card" This reverts commit 1b0eecd0c19c6e68c62a7f2acc13070c3f77e32e. * excising lockfiles * fixing merge issue * add referral type --------- Co-authored-by: Hafsa <116444403+slippyishappy@users.noreply.github.com> --- components/index/cards/button.js | 19 ++-- components/index/cards/moonshot.js | 146 +++++++++++++++++++++++++++++ pages/index.js | 2 + 3 files changed, 161 insertions(+), 6 deletions(-) create mode 100644 components/index/cards/moonshot.js 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} /> +