From ff44be5ffdbd1ebc74005984d26d04a60f541f30 Mon Sep 17 00:00:00 2001 From: alice <122629939+espcaa@users.noreply.github.com> Date: Tue, 7 Oct 2025 19:47:00 +0200 Subject: [PATCH] remove the button and som card + mentions (#1647) --- components/index/cards/som.js | 119 ---------------------------------- pages/index.js | 51 ++++----------- 2 files changed, 14 insertions(+), 156 deletions(-) delete mode 100644 components/index/cards/som.js diff --git a/components/index/cards/som.js b/components/index/cards/som.js deleted file mode 100644 index 06562ef5..00000000 --- a/components/index/cards/som.js +++ /dev/null @@ -1,119 +0,0 @@ -import CardModel from './card-model' -import { Box, Card, Flex, Grid, Heading, Text } from 'theme-ui' -import Buttons from './button' -import Image from 'next/image' -import Icon from '@hackclub/icons' -/** @jsxImportSource theme-ui */ - -function BreakdownBox({ icon, text, description, href }) { - return ( - - - - - {text} - - - - {description} - - - ) -} - -export default function Som() { - return ( - - - - Summer of making logo - - - Start building - - - - - - - - - - ) -} diff --git a/pages/index.js b/pages/index.js index 4a9045e7..e575b05f 100644 --- a/pages/index.js +++ b/pages/index.js @@ -41,7 +41,6 @@ import Comma from '../components/comma' import Haxidraw from '../components/index/cards/haxidraw' import Onboard from '../components/index/cards/onboard' import Blueprint from '../components/index/cards/blueprint' -import Som from '../components/index/cards/som' import Athena from '../components/index/cards/athena' import Daydream from '../components/index/cards/daydream' import Highway from '../components/index/cards/highway' @@ -213,7 +212,8 @@ function Page({ copy="Get up to $400 to make a hardware project!" caption="Design a project and get a grant to make it real with Blueprint, Hack Club's largest hardware program" href="https://blueprint.hackclub.com/?utm_source=site-announcement" - imgSrc="https://hc-cdn.hel1.your-objectstorage.com/s/v3/db8d0fd43bb664a8b07431b0262a7ca13c1602c7_blueprint_logo__img_.png"/> + imgSrc="https://hc-cdn.hel1.your-objectstorage.com/s/v3/db8d0fd43bb664a8b07431b0262a7ca13c1602c7_blueprint_logo__img_.png" + /> - - @@ -742,9 +717,11 @@ function Page({ and make things together! - + - @@ -1352,9 +1329,9 @@ export async function getStaticProps() { let events = [] try { - await fetch( - 'https://events.hackclub.com/api/events/upcoming/' - ).then(res => res.json()) + await fetch('https://events.hackclub.com/api/events/upcoming/').then(res => + res.json() + ) } catch (error) { console.error('Error fetching events:', error) }