diff --git a/package.json b/package.json index d37e6329..b4833002 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "globby": "^11.0.4", "graphql": "^16.6.0", "gsap": "^3.11.3", - "jquery": "^3.6.1", "lodash": "^4.17.21", "next": "^12.3.1", "next-compose-plugins": "^2.2.1", diff --git a/pages/hackathons/grant.js b/pages/hackathons/grant.js index 451ee5d7..1e227b26 100644 --- a/pages/hackathons/grant.js +++ b/pages/hackathons/grant.js @@ -13,29 +13,12 @@ import Apply from '../../components/hackathons/grant/apply' import Zoom from 'react-reveal/Zoom' /** @jsxImportSource theme-ui */ -if (typeof window !== 'undefined') { - window.$ = window.jQuery = require('jquery') - $(document).ready(function () { - // Add smooth scrolling to all links (source: w3schools) - $('a').on('click', function (event) { - if (this.hash !== '') { - event.preventDefault() - var hash = this.hash - - $('html, body').animate( - { - scrollTop: $(hash).offset().top - }, - 800, - function () { - window.location.hash = hash - } - ) - } - }) - }) -} +const styles = ` + html { + scroll-behavior: smooth; + } +` const Requirement = ({ title, children, checkmark, background, size }) => { return ( @@ -84,6 +67,7 @@ const HackathonGrant = () => { description="Hack Club is partnering with FIRST to provide $500 grants to in-person high school hackathons happening until June 30th, 2023." image="https://cloud-7yw9f6xnv-hack-club-bot.vercel.app/0grant.png" /> +