From 380787e4d295b409efd9ea9d901643bad198d640 Mon Sep 17 00:00:00 2001 From: lucifer0x17 Date: Sun, 5 May 2024 21:05:24 +0530 Subject: [PATCH 1/4] chore: remove old code --- .eslintrc.json | 3 - .gitignore | 37 - README.md | 8 - app/components/BentoGridPreview.tsx | 88 - app/components/Contact.tsx | 0 app/components/ContactPreview.tsx | 39 - app/components/Footer.tsx | 46 - app/components/Form.tsx | 99 - app/components/Http.tsx | 65 - app/components/Navbar.tsx | 30 - app/components/ServicesCard.tsx | 50 - app/components/SparklesPreview.tsx | 39 - app/components/SpotlightPreview.tsx | 51 - app/components/Support.tsx | 27 - app/components/TeamPreview.tsx | 63 - app/components/buttons/Click.tsx | 42 - app/components/deprecated/QuestsCalltsx.txt | 73 - app/components/deprecated/QuestsCardtsx.txt | 87 - app/components/quests/QuestCard.tsx | 147 - app/components/quests/QuestTitle.tsx | 39 - app/components/quests/QuestsCall.tsx | 33 - app/components/ui/3d-card.tsx | 151 - app/components/ui/Spotlight.tsx | 56 - app/components/ui/background-gradient.tsx | 72 - app/components/ui/bento-grid.tsx | 61 - app/components/ui/floating-navbar.tsx | 55 - app/components/ui/glowing-stars.tsx | 158 - app/components/ui/sparkles.tsx | 435 -- app/globals.css | 55 - app/layout.tsx | 49 - app/page.tsx | 48 - app/quests/page.tsx | 50 - app/robots.ts | 12 - app/sitemap.ts | 30 - app/team/page.tsx | 77 - app/utils/cn.ts | 6 - app/utils/txnCount.js | 66 - app/utils/txnCount.ts | 86 - next.config.mjs | 4 - package-lock.json | 5268 ------------------- package.json | 40 - postcss.config.js | 6 - public/card-background.svg | 20 - public/data-access.svg | 17 - public/favicon.png | Bin 1005 -> 0 bytes public/favicon.svg | 19 - public/next.svg | 1 - public/price-feed.svg | 22 - public/quest/q1Arrows.svg | 4 - public/quest/questStage.svg | 16 - public/small-card-background.svg | 12 - public/star.svg | 3 - public/svg/main-unit.svg | 28 - public/svg/mid-size.svg | 34 - public/svg/unit-icon.svg | 19 - public/team/lucifer.jpeg | Bin 20167 -> 0 bytes public/team/manishi.jpg | Bin 84342 -> 0 bytes public/team/megabyte.png | Bin 349766 -> 0 bytes public/team/sarthak.jpeg | Bin 37781 -> 0 bytes public/team/taveesha.jpg | Bin 58125 -> 0 bytes public/vercel.svg | 1 - tailwind.config.ts | 45 - tsconfig.json | 40 - 63 files changed, 8132 deletions(-) delete mode 100644 .eslintrc.json delete mode 100644 .gitignore delete mode 100644 README.md delete mode 100644 app/components/BentoGridPreview.tsx delete mode 100644 app/components/Contact.tsx delete mode 100644 app/components/ContactPreview.tsx delete mode 100644 app/components/Footer.tsx delete mode 100644 app/components/Form.tsx delete mode 100644 app/components/Http.tsx delete mode 100644 app/components/Navbar.tsx delete mode 100644 app/components/ServicesCard.tsx delete mode 100644 app/components/SparklesPreview.tsx delete mode 100644 app/components/SpotlightPreview.tsx delete mode 100644 app/components/Support.tsx delete mode 100644 app/components/TeamPreview.tsx delete mode 100644 app/components/buttons/Click.tsx delete mode 100644 app/components/deprecated/QuestsCalltsx.txt delete mode 100644 app/components/deprecated/QuestsCardtsx.txt delete mode 100644 app/components/quests/QuestCard.tsx delete mode 100644 app/components/quests/QuestTitle.tsx delete mode 100644 app/components/quests/QuestsCall.tsx delete mode 100644 app/components/ui/3d-card.tsx delete mode 100644 app/components/ui/Spotlight.tsx delete mode 100644 app/components/ui/background-gradient.tsx delete mode 100644 app/components/ui/bento-grid.tsx delete mode 100644 app/components/ui/floating-navbar.tsx delete mode 100644 app/components/ui/glowing-stars.tsx delete mode 100644 app/components/ui/sparkles.tsx delete mode 100644 app/globals.css delete mode 100644 app/layout.tsx delete mode 100644 app/page.tsx delete mode 100644 app/quests/page.tsx delete mode 100644 app/robots.ts delete mode 100644 app/sitemap.ts delete mode 100644 app/team/page.tsx delete mode 100644 app/utils/cn.ts delete mode 100644 app/utils/txnCount.js delete mode 100644 app/utils/txnCount.ts delete mode 100644 next.config.mjs delete mode 100644 package-lock.json delete mode 100644 package.json delete mode 100644 postcss.config.js delete mode 100644 public/card-background.svg delete mode 100644 public/data-access.svg delete mode 100644 public/favicon.png delete mode 100644 public/favicon.svg delete mode 100644 public/next.svg delete mode 100644 public/price-feed.svg delete mode 100644 public/quest/q1Arrows.svg delete mode 100644 public/quest/questStage.svg delete mode 100644 public/small-card-background.svg delete mode 100644 public/star.svg delete mode 100644 public/svg/main-unit.svg delete mode 100644 public/svg/mid-size.svg delete mode 100644 public/svg/unit-icon.svg delete mode 100644 public/team/lucifer.jpeg delete mode 100644 public/team/manishi.jpg delete mode 100644 public/team/megabyte.png delete mode 100644 public/team/sarthak.jpeg delete mode 100644 public/team/taveesha.jpg delete mode 100644 public/vercel.svg delete mode 100644 tailwind.config.ts delete mode 100644 tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index bffb357..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 00bba9b..0000000 --- a/.gitignore +++ /dev/null @@ -1,37 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js -.yarn/install-state.gz - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local -.env - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/README.md b/README.md deleted file mode 100644 index 2607228..0000000 --- a/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# 0rbit - -[![protocol.land](https://arweave.net/eZp8gOeR8Yl_cyH9jJToaCrt2He1PHr0pR4o-mHbEcY)](https://protocol.land/#/repository/c4172351-6e21-409d-8deb-5a5483617c32) - -**0rbit is the first decentralized oracle network built using `ao` on Arweave.** - - -Learn more about 0rbit [here.](https://0rbit.co) \ No newline at end of file diff --git a/app/components/BentoGridPreview.tsx b/app/components/BentoGridPreview.tsx deleted file mode 100644 index 301bbbb..0000000 --- a/app/components/BentoGridPreview.tsx +++ /dev/null @@ -1,88 +0,0 @@ -import { cn } from "@/app/utils/cn"; -import React from "react"; -import { BentoGrid, BentoGridItem } from "@/app/components/ui/bento-grid"; -import { TbDatabaseSearch } from "react-icons/tb"; -import { IoLockOpenOutline } from "react-icons/io5"; -import { GoShieldCheck } from "react-icons/go"; -import { GiMeshBall } from "react-icons/gi"; -import { - GlowingStarsBackgroundCard, - GlowingStarsDescription, - GlowingStarsTitle, -} from "../components/ui/glowing-stars"; - - -function BentoGridPreview() { - return ( - - {items.map((item, i) => ( - - ))} - - ); -} - -export function GlowingStarsBackgroundCardPreview() { - return ( -
- - -
- ); -} - -const Skeleton = () => ( -
- -
-); - -const SkeletonBig = () => ( -
-
-); -const items = [ - { - title: "Data Access", - description: "Get any data on Arweave including both on-chain and off-chain.", - header: , - className: "md:col-span-2 bg-[#09090b]", - icon: , - bgImage: "/card-background.svg" - }, - { - title: "Permissionless", - description: "Anyone can utilise 0rbit without asking permission from the team.", - header: , - className: "md:col-span-1 bg-[#09090b]", - icon: , - // bgImage: "/card-background.svg" - }, - { - title: "Secure", - description: "0rbit provides secure path to get the data in any AO process.", - header: , - className: "md:col-span-1", - icon: , - // bgImage: "/card-background.svg" - }, - { - title: "Decentralised", - description: - "The 0rbit nodes secures and provides accurate data by following the consensus.", - header: , - className: "md:col-span-2 bg-[#09090b]", - icon: , - bgImage: "/card-background.svg" - }, -]; - -export default BentoGridPreview; diff --git a/app/components/Contact.tsx b/app/components/Contact.tsx deleted file mode 100644 index e69de29..0000000 diff --git a/app/components/ContactPreview.tsx b/app/components/ContactPreview.tsx deleted file mode 100644 index e811055..0000000 --- a/app/components/ContactPreview.tsx +++ /dev/null @@ -1,39 +0,0 @@ -"use client"; -import React from "react"; -import { SparklesCore } from "@/app/components/ui/sparkles"; - -interface ContactPreviewProps { - title: string; -} - -function ContactPreview({ title }: ContactPreviewProps) { - return ( -
-

- {title} -

-
- {/* Gradients */} -
-
-
-
- - {/* Core component */} - - - {/* Radial Gradient to prevent sharp edges */} -
-
-
- ); -} - -export default ContactPreview; diff --git a/app/components/Footer.tsx b/app/components/Footer.tsx deleted file mode 100644 index b47621a..0000000 --- a/app/components/Footer.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import React from "react"; -import mainLogo from "@/public/svg/main-unit.svg"; -import midSize from "@/public/svg/mid-size.svg"; -import unitIcon from "@/public/svg/unit-icon.svg"; -import Image from "next/image"; -import { RxDiscordLogo } from "react-icons/rx"; -import { RiTwitterXLine } from "react-icons/ri"; -import { FaGithub } from "react-icons/fa"; - -const Footer = () => { - return ( - - ); -}; - -export default Footer; diff --git a/app/components/Form.tsx b/app/components/Form.tsx deleted file mode 100644 index 7761094..0000000 --- a/app/components/Form.tsx +++ /dev/null @@ -1,99 +0,0 @@ -"use client"; -import React, { FormEvent } from "react"; -import { toast, ToastContainer } from "react-toastify"; -import "react-toastify/dist/ReactToastify.css"; -import { useForm, ValidationError } from "@formspree/react"; - -interface FormState { - succeeded: boolean; - errors: string[] | null; -} - -function Form() { - const [state, handleSubmit] = useForm("xpzvjaee"); - - const handleSuccess = () => { - toast.success("Thank you for reaching out! We will get back to you soon."); - }; - - const handleError = (errorMessage: string) => { - toast.error(errorMessage); - }; - - const onSubmit = async (e: any) => { - e.preventDefault(); - - const emailField = e.target.elements.email; - const emailValue = emailField.value.trim(); - - if (!emailValue) { - handleError("Please enter your details"); - return; - } - - try { - await handleSubmit(e); - - if (state.succeeded) { - handleSuccess(); - } else if (state.errors) { - handleError("Please fill in all the required fields."); - } - } catch (error) { - console.error("Error submitting form:", error); - handleError( - "An error occurred while submitting the form. Please try again." - ); - } - }; - - return ( -
- -
- - - - - -