diff --git a/apps/site/.eslintrc.json b/apps/site/.eslintrc.json index fc32a217..1a69f9fa 100644 --- a/apps/site/.eslintrc.json +++ b/apps/site/.eslintrc.json @@ -1,3 +1,3 @@ { - "extends": ["next/core-web-vitals"] + "extends": ["eslint:recommended", "next/core-web-vitals", "next/typescript"] } diff --git a/apps/site/src/app/(home)/page.tsx b/apps/site/src/app/(home)/page.tsx index 7091c1ca..df97f876 100644 --- a/apps/site/src/app/(home)/page.tsx +++ b/apps/site/src/app/(home)/page.tsx @@ -2,7 +2,7 @@ export const revalidate = 60; import Landing from "./sections/Landing"; import GetInvolved from "./sections/GetInvolved"; -import Sponsors from "./sections/Sponsors"; +// import Sponsors from "./sections/Sponsors"; import FAQ from "./sections/FAQ"; import styles from "./page.module.scss"; diff --git a/apps/site/src/app/schedule/ClipboardSchedule/ClipboardSchedule.tsx b/apps/site/src/app/schedule/ClipboardSchedule/ClipboardSchedule.tsx index 5a21bf47..ed903e5d 100644 --- a/apps/site/src/app/schedule/ClipboardSchedule/ClipboardSchedule.tsx +++ b/apps/site/src/app/schedule/ClipboardSchedule/ClipboardSchedule.tsx @@ -112,7 +112,6 @@ const ClipboardSchedule: React.FC = ({ schedule }) => { title, description, location, - hosts, startTime, endTime, }) => { diff --git a/apps/site/src/components/.gitkeep b/apps/site/src/components/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/apps/site/src/components/Footer/Footer.tsx b/apps/site/src/components/Footer/Footer.tsx index 8b6706da..8fb3ea39 100644 --- a/apps/site/src/components/Footer/Footer.tsx +++ b/apps/site/src/components/Footer/Footer.tsx @@ -1,6 +1,4 @@ -"use client"; - -import Image from "next/image"; +import Image, { StaticImageData } from "next/image"; import Link from "next/link"; import clsx from "clsx"; @@ -13,7 +11,7 @@ import Hack from "@/assets/icons/hack.svg"; import TikTok from "@/assets/icons/tiktok.svg"; type Social = { - icon: any; + icon: StaticImageData; link: string; alt: string; }; diff --git a/apps/site/src/components/Sticker/BaseSticker.module.scss b/apps/site/src/components/Sticker/BaseSticker.module.scss deleted file mode 100644 index 996b0e97..00000000 --- a/apps/site/src/components/Sticker/BaseSticker.module.scss +++ /dev/null @@ -1,5 +0,0 @@ -.sticker { - cursor: grab; - position: absolute; - z-index: 100; -} diff --git a/apps/site/src/components/Sticker/BaseSticker.tsx b/apps/site/src/components/Sticker/BaseSticker.tsx deleted file mode 100644 index ad77726b..00000000 --- a/apps/site/src/components/Sticker/BaseSticker.tsx +++ /dev/null @@ -1,82 +0,0 @@ -"use client"; - -import { MutableRefObject, useRef } from "react"; -import { motion } from "framer-motion"; - -import styles from "./BaseSticker.module.scss"; - -interface StickerProps { - imageSrc: string; - alt: string; - height?: number; - width?: number; - draggable?: boolean; - dragConstraints?: object | false | MutableRefObject | undefined; - // dragConstraints prop can be an object containing coordinates, a Falsy boolean, or a parent ref (https://www.framer.com/motion/gestures/#:~:text=%23-,dragConstraints%3A,-false%20%7C%20Partial%3CBoundingBox2D) - animate?: object | undefined; - transition?: object | undefined; - offsetX?: number; - offsetY?: number; -} - -const BaseSticker: React.FC = ({ - imageSrc, - alt, - height = 100, - width = 100, - draggable = true, - dragConstraints = false, - animate = {}, - transition = {}, - offsetX = 0, - offsetY = 0, -}) => { - // prevent next from throwing error involving DOM API - const pageRef = useRef( - typeof document !== "undefined" ? document.documentElement : undefined, - ); - let transitionProps = { ...transition }; - - let animateProps = { - ...animate, - filter: "drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.3))", - }; - - if (draggable) - transitionProps = { - ...transition, - scale: { type: "spring", stiffness: 100 }, - }; - const drag = draggable - ? { - whileTap: { - scale: 1.1, - filter: `drop-shadow(16px 20px 20px rgba(0, 0, 0, 0.15))`, - }, - whileHover: { - scale: 1.025, - filter: `drop-shadow(10px 14px 10px rgba(0, 0, 0, 0.2))`, - }, - drag: true, - initial: { x: -width / 2 + offsetX, y: -height / 2 + offsetY }, - dragMomentum: false, - dragConstraints: dragConstraints ? dragConstraints : pageRef, - dragElastic: 0.2, - transition: transitionProps, - } - : {}; - - return ( - - ); -}; - -export default BaseSticker; diff --git a/apps/site/src/components/Sticker/StickerPosition.module.scss b/apps/site/src/components/Sticker/StickerPosition.module.scss deleted file mode 100644 index a9bd3cdf..00000000 --- a/apps/site/src/components/Sticker/StickerPosition.module.scss +++ /dev/null @@ -1,12 +0,0 @@ -.stickerPosition { - position: relative; - display: flex; - justify-content: center; - width: max-content; -} - -.stickerParent { - position: relative; - width: 0; - height: 0; -} diff --git a/apps/site/src/components/Sticker/StickerPosition.tsx b/apps/site/src/components/Sticker/StickerPosition.tsx deleted file mode 100644 index 445796cc..00000000 --- a/apps/site/src/components/Sticker/StickerPosition.tsx +++ /dev/null @@ -1,56 +0,0 @@ -import type { StickerProps } from "./Stickers/stickerProps"; -import styles from "./StickerPosition.module.scss"; - -interface Sticker { - Node: React.ComponentType; - positionX?: "left" | "right"; - positionY?: "top" | "bottom"; - offsetX?: number; - offsetY?: number; -} - -const StickerParent: React.FC = ({ - Node, - positionY = "top", - offsetX, - offsetY, -}) => ( -
- -
-); - -interface StickerPositionProps { - children?: React.ReactNode; - stickers: Sticker[]; -} - -const StickerPosition: React.FC = ({ - children, - stickers, -}) => { - return ( -
- {stickers - .filter(({ positionX }) => !positionX || positionX === "left") - .map((sticker) => ( - // eslint-disable-next-line react/jsx-key - - ))} - {children} - {stickers - .filter(({ positionX }) => positionX === "right") - .map((sticker) => ( - // eslint-disable-next-line react/jsx-key - - ))} -
- ); -}; - -export default StickerPosition; diff --git a/apps/site/src/components/Sticker/Stickers/HackSticker/HackSticker.tsx b/apps/site/src/components/Sticker/Stickers/HackSticker/HackSticker.tsx deleted file mode 100644 index 398abf35..00000000 --- a/apps/site/src/components/Sticker/Stickers/HackSticker/HackSticker.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import type React from "react"; -import type { StickerProps } from "../stickerProps"; -import HackLogo from "@/assets/icons/hack.png"; -import BaseSticker from "../../BaseSticker"; -import { lightShake } from "@/components/animation"; - -const HackSticker: React.FC = (props) => ( - -); - -export default HackSticker; diff --git a/apps/site/src/components/Sticker/Stickers/HeartSticker/HeartSticker.tsx b/apps/site/src/components/Sticker/Stickers/HeartSticker/HeartSticker.tsx deleted file mode 100644 index 9257901f..00000000 --- a/apps/site/src/components/Sticker/Stickers/HeartSticker/HeartSticker.tsx +++ /dev/null @@ -1,18 +0,0 @@ -import type React from "react"; -import type { StickerProps } from "../stickerProps"; -import HeartEmoji from "@/assets/images/heart_emoji.png"; -import BaseSticker from "../../BaseSticker"; -import { fastShake } from "@/components/animation"; - -const HeartSticker: React.FC = (props) => ( - -); - -export default HeartSticker; diff --git a/apps/site/src/components/Sticker/Stickers/index.tsx b/apps/site/src/components/Sticker/Stickers/index.tsx deleted file mode 100644 index d14e7554..00000000 --- a/apps/site/src/components/Sticker/Stickers/index.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import type React from "react"; -import type { StickerProps } from "./stickerProps"; -import HackLogo from "@/assets/icons/hack.png"; -import HeartEmoji from "@/assets/images/heart_emoji.png"; -import BaseSticker from "../BaseSticker"; -import { fastShake, lightShake } from "@/components/animation"; - -export const HackSticker: React.FC = (props) => { - return ( - - ); -}; - -export const HeartSticker: React.FC = (props) => ( - -); diff --git a/apps/site/src/components/Sticker/Stickers/stickerProps.ts b/apps/site/src/components/Sticker/Stickers/stickerProps.ts deleted file mode 100644 index 054a6a1a..00000000 --- a/apps/site/src/components/Sticker/Stickers/stickerProps.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface StickerProps { - offsetX?: number; - offsetY?: number; -} diff --git a/apps/site/src/views/Resources/components/ResourceCard/ResourceCard.tsx b/apps/site/src/views/Resources/components/ResourceCard/ResourceCard.tsx index d5903f06..a79c55c5 100644 --- a/apps/site/src/views/Resources/components/ResourceCard/ResourceCard.tsx +++ b/apps/site/src/views/Resources/components/ResourceCard/ResourceCard.tsx @@ -86,7 +86,7 @@ export default function ResourceCard({ ) : ( title )}{" "} - {links.map(({ text, link }) => ( + {links.map(({ link }) => (