diff --git a/package.json b/package.json index d9bf0bc..d5f1e04 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "@tanstack/react-virtual": "^3.5.0", "clsx": "^2.1.1", "framer-motion": "^12.4.3", + "graphql-request": "^7.1.2", "gsap": "^3.12.5", "jotai": "^2.8.0", "lucide-react": "^0.474.0", @@ -99,4 +100,4 @@ "public" ] } -} +} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5ec9b98..f8e937c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,6 +41,9 @@ importers: framer-motion: specifier: ^12.4.3 version: 12.4.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0) + graphql-request: + specifier: ^7.1.2 + version: 7.1.2(graphql@16.9.0) gsap: specifier: ^3.12.5 version: 3.12.5 @@ -1086,6 +1089,11 @@ packages: '@formkit/auto-animate@0.8.2': resolution: {integrity: sha512-SwPWfeRa5veb1hOIBMdzI+73te5puUBHmqqaF1Bu7FjvxlYSz/kJcZKSa9Cg60zL0uRNeJL2SbRxV6Jp6Q1nFQ==} + '@graphql-typed-document-node/core@3.2.0': + resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==} + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + '@heroui/accordion@2.2.8': resolution: {integrity: sha512-azHolskQ1dNUT+A5h0w7n2DO7WFaafGPPPFfNDQZ3N/HigYjCF8E2MPkR40et+jffojji5/PgKjpIezlPlKsPw==} peerDependencies: @@ -5149,6 +5157,11 @@ packages: graphemer@1.4.0: resolution: {integrity: sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==} + graphql-request@7.1.2: + resolution: {integrity: sha512-+XE3iuC55C2di5ZUrB4pjgwe+nIQBuXVIK9J98wrVwojzDW3GMdSBZfxUk8l4j9TieIpjpggclxhNEU9ebGF8w==} + peerDependencies: + graphql: 14 - 16 + graphql@16.9.0: resolution: {integrity: sha512-GGTKBX4SD7Wdb8mqeDLni2oaRGYQWjWHGKPQ24ZMnUtKfcsVoiv4uX8+LJr1K6U5VW2Lu1BwJnj7uiori0YtRw==} engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0} @@ -8971,6 +8984,10 @@ snapshots: '@formkit/auto-animate@0.8.2': {} + '@graphql-typed-document-node/core@3.2.0(graphql@16.9.0)': + dependencies: + graphql: 16.9.0 + '@heroui/accordion@2.2.8(@heroui/system@2.4.7(@heroui/theme@2.4.6(tailwindcss@3.4.7))(framer-motion@12.4.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(@heroui/theme@2.4.6(tailwindcss@3.4.7))(framer-motion@12.4.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0)': dependencies: '@heroui/aria-utils': 2.2.8(@heroui/theme@2.4.6(tailwindcss@3.4.7))(framer-motion@12.4.3(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -14813,6 +14830,11 @@ snapshots: graphemer@1.4.0: {} + graphql-request@7.1.2(graphql@16.9.0): + dependencies: + '@graphql-typed-document-node/core': 3.2.0(graphql@16.9.0) + graphql: 16.9.0 + graphql@16.9.0: {} gsap@3.12.5: {} diff --git a/src/app/projects/info/[slug]/[tab]/page.tsx b/src/app/projects/info/[slug]/[tab]/page.tsx index 95b2b64..23e7c37 100644 --- a/src/app/projects/info/[slug]/[tab]/page.tsx +++ b/src/app/projects/info/[slug]/[tab]/page.tsx @@ -1,6 +1,7 @@ import { notFound } from 'next/navigation'; import { getProjectDetails } from '@/projects/data/get-project-details'; +import { GitcoinRounds } from '@/projects/components/gitcoin-rounds'; import { ProjectDetailsGrants } from '@/projects/components/project-details-grants'; import { ProjectDetailsOrg } from '@/projects/components/project-details-org'; @@ -24,6 +25,10 @@ const Page = async ({ params }: Props) => { return ; } + if (tab.toLowerCase() === 'rounds') { + return ; + } + notFound(); }; diff --git a/src/projects/components/gitcoin-rounds.tsx b/src/projects/components/gitcoin-rounds.tsx new file mode 100644 index 0000000..06d4453 --- /dev/null +++ b/src/projects/components/gitcoin-rounds.tsx @@ -0,0 +1,7 @@ +import React from 'react' + +export const GitcoinRounds = () => { + return ( +
GitcoinRounds
+ ) +}