From 1c5174e48ad9105fb537fd7ab0d1f6859cd6c5ec Mon Sep 17 00:00:00 2001 From: Sambhav Gupta Date: Mon, 12 Feb 2024 04:09:52 +0530 Subject: [PATCH] refactored packages --- components/icons/Tools.js | 16 - components/illustrations/EveAndChan.js | 1009 ------------------------ components/layout/GenericWideLayout.js | 30 - components/tabs/Tabs.js | 33 - pages/workshops/preregistration.js | 31 - 5 files changed, 1119 deletions(-) delete mode 100644 components/icons/Tools.js delete mode 100644 components/illustrations/EveAndChan.js delete mode 100644 components/layout/GenericWideLayout.js delete mode 100644 components/tabs/Tabs.js delete mode 100644 pages/workshops/preregistration.js diff --git a/components/icons/Tools.js b/components/icons/Tools.js deleted file mode 100644 index 28a5752b3d7..00000000000 --- a/components/icons/Tools.js +++ /dev/null @@ -1,16 +0,0 @@ -export default function IconTools ({ className }) { - return ( - - - - - - - - - - - ) -} \ No newline at end of file diff --git a/components/illustrations/EveAndChan.js b/components/illustrations/EveAndChan.js deleted file mode 100644 index d52af0777ac..00000000000 --- a/components/illustrations/EveAndChan.js +++ /dev/null @@ -1,1009 +0,0 @@ -export default function EveAndChan ({ className }) { - return ( - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ) -} \ No newline at end of file diff --git a/components/layout/GenericWideLayout.js b/components/layout/GenericWideLayout.js deleted file mode 100644 index 7da7662c389..00000000000 --- a/components/layout/GenericWideLayout.js +++ /dev/null @@ -1,30 +0,0 @@ -import Head from '../Head' -import NavBar from '../navigation/NavBar' -import AnnouncementHero from '../campaigns/AnnoucementHero' -import Row from './Row' - -export default function GenericWideLayout({ - title, - description, - image, - children, - wide = true, -}) { - if (!title || !description || !image) - throw new Error( - 'Props `title`, `description`, and `image` are required at GenericLayout component.' - ); - - return ( - <> - -
- -
- - - {children} - - - ); -} diff --git a/components/tabs/Tabs.js b/components/tabs/Tabs.js deleted file mode 100644 index dfaff2151ac..00000000000 --- a/components/tabs/Tabs.js +++ /dev/null @@ -1,33 +0,0 @@ -import { useState } from "react"; - -export default function Tabs({ tabs = [], className = '' }) { - const filteredTabs = tabs.filter(Boolean); - const [showTab, seShowTab] = useState(filteredTabs[0].id); - - const tabItemsCommonClassNames = 'inline-block border-teal-300 pt-3 pb-1 px-2 mx-px cursor-pointer hover:text-teal-300 font-bold' - const tabItemsClassNames = `${tabItemsCommonClassNames} text-gray-300` - const tabItemsActiveClassNames = `${tabItemsCommonClassNames} text-teal-300 border-b-2` - - return ( -
- -
- {filteredTabs.map(({ content, id }) => ( -
- {content} -
- ))} -
-
- ); -} diff --git a/pages/workshops/preregistration.js b/pages/workshops/preregistration.js deleted file mode 100644 index a242e45364a..00000000000 --- a/pages/workshops/preregistration.js +++ /dev/null @@ -1,31 +0,0 @@ -import Head from 'next/head' - -export default function WorkshopPreregistrationPage() { - return ( - <> - - - Pre-register Workshop - - -