From 995902eb5210e91d938ae5783c90b487e59bb235 Mon Sep 17 00:00:00 2001 From: Aiden <30964272+0xaaiden@users.noreply.github.com> Date: Sun, 3 Nov 2024 14:01:05 -0500 Subject: [PATCH] Add datasets page to dashboard Add a new page to offer curated datasets with cards of different datasets available. * **New Page**: Add `app/(dashboard)/dashboard/datasets/page.tsx` to display curated datasets using `BentoGrid` and `BentoGridItem` components. * **Sidebar Navigation**: Update `app/(dashboard)/dashboard/layout.tsx` to include a link to the new datasets page in the sidebar navigation under the "Resources" section. * **Dataset Card Component**: Create `components/app/dashboard-dataset-card.tsx` to display individual dataset cards with title, description, and image. * **Dashboard Menu Configuration**: Update `config/menu-dashboard.ts` to include the new datasets page in the dashboard menu configuration. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/function03-labs/WalletLabels?shareId=XXXX-XXXX-XXXX-XXXX). --- app/(dashboard)/dashboard/datasets/page.tsx | 20 ++++++++++++++++++++ app/(dashboard)/dashboard/layout.tsx | 3 +++ components/app/dashboard-dataset-card.tsx | 21 +++++++++++++++++++++ config/menu-dashboard.ts | 7 ++++--- 4 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 app/(dashboard)/dashboard/datasets/page.tsx create mode 100644 components/app/dashboard-dataset-card.tsx diff --git a/app/(dashboard)/dashboard/datasets/page.tsx b/app/(dashboard)/dashboard/datasets/page.tsx new file mode 100644 index 00000000..af01ef60 --- /dev/null +++ b/app/(dashboard)/dashboard/datasets/page.tsx @@ -0,0 +1,20 @@ +import { BentoGrid, BentoGridItem } from "@/components/ui/bento-grid" +import { datasets } from "@/data/datasets" + +export default function DatasetsPage() { + return ( +
+

Curated Datasets

+ + {datasets.map((dataset) => ( + } + /> + ))} + +
+ ) +} diff --git a/app/(dashboard)/dashboard/layout.tsx b/app/(dashboard)/dashboard/layout.tsx index e77614dd..4933bd4c 100644 --- a/app/(dashboard)/dashboard/layout.tsx +++ b/app/(dashboard)/dashboard/layout.tsx @@ -46,6 +46,9 @@ export default async function DashboardLayout({ Resources + + Datasets +