From 3573879b885773bae0fc80147f12d89e6c3a3a0d Mon Sep 17 00:00:00 2001
From: Ben Orloff <99829882+benorloff@users.noreply.github.com>
Date: Fri, 19 Apr 2024 19:16:22 -0700
Subject: [PATCH] hover grid
---
README.md | 37 +----
app/blocks/hover-grid/page.tsx | 196 ++++++++++++++++++++++++
app/layout.tsx | 20 ++-
components/grid.tsx | 58 +++++++
components/hover-grid.tsx | 136 ++++++++++++++++
components/providers/theme-provider.tsx | 9 ++
components/site-header.tsx | 12 ++
components/theme-toggle.tsx | 23 +++
package-lock.json | 29 ++++
package.json | 1 +
styles/globals.css | 105 ++++++-------
tailwind.config.cjs | 4 +-
12 files changed, 533 insertions(+), 97 deletions(-)
create mode 100644 app/blocks/hover-grid/page.tsx
create mode 100644 components/grid.tsx
create mode 100644 components/hover-grid.tsx
create mode 100644 components/providers/theme-provider.tsx
create mode 100644 components/site-header.tsx
create mode 100644 components/theme-toggle.tsx
diff --git a/README.md b/README.md
index c403366..dfb2532 100644
--- a/README.md
+++ b/README.md
@@ -1,36 +1,7 @@
-This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
+## UI Component Library
-## Getting Started
+This is a component library built on top of shadcn/ui, which utilizes radix ui primitives and TailwindCSS. It includes all of the available components from shadcn/ui, as well as several ready-made "block" components that are extensible and composable.
-First, run the development server:
+This repository is intended to serve as a centralized source for components that I use across my projects and I will be adding new "blocks" over time as they are developed.
-```bash
-npm run dev
-# or
-yarn dev
-# or
-pnpm dev
-# or
-bun dev
-```
-
-Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
-
-You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
-
-This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
-
-## Learn More
-
-To learn more about Next.js, take a look at the following resources:
-
-- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
-- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
-
-You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
-
-## Deploy on Vercel
-
-The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
-
-Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
+Storybook is used for component testing and documentation.
diff --git a/app/blocks/hover-grid/page.tsx b/app/blocks/hover-grid/page.tsx
new file mode 100644
index 0000000..c204a9a
--- /dev/null
+++ b/app/blocks/hover-grid/page.tsx
@@ -0,0 +1,196 @@
+import { Grid, GridCell } from "@/components/grid";
+import { HoverGrid, HoverGridCell, HoverGridContent, HoverGridDescription, HoverGridFooter, HoverGridHeader, HoverGridLeader, HoverGridTitle } from "@/components/hover-grid";
+import { ArrowUpRight } from "lucide-react";
+import { Code } from "bright";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbSeparator } from "@/components/ui/breadcrumb";
+
+const HoverGridCode =
+`import {
+ HoverGrid,
+ HoverGridCell,
+ HoverGridContent,
+ HoverGridDescription,
+ HoverGridFooter,
+ HoverGridHeader,
+ HoverGridLeader,
+ HoverGridTitle
+} from "@/components/hover-grid";
+
+export const HoverGridDemo = () => {
+ return (
+
+
+
+
+ Leader1
+
+
+
+
+ Lorem ipsum.
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ Ut enim ad minim veniam.
+
+
+ Footer 1
+
+
+
+
+ Leader1
+
+
+
+
+ Lorem ipsum.
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ Ut enim ad minim veniam.
+
+
+ Footer 1
+
+
+
+
+ Leader1
+
+
+
+
+ Lorem ipsum.
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ Ut enim ad minim veniam.
+
+
+ Footer 1
+
+
+ )
+}`
+
+const HoverGridPage = () => {
+ return (
+
+
+
+
+
+ Docs
+
+
+
+ Components
+
+
+
+
HoverGrid
+
+
+
+
+ Preview
+ Code
+
+
+
+
+
+
+ Leader1
+
+
+
+
+ Lorem ipsum.
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ Ut enim ad minim veniam.
+
+
+ Footer 1
+
+
+
+
+ Leader1
+
+
+
+
+ Lorem ipsum.
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ Ut enim ad minim veniam.
+
+
+ Footer 1
+
+
+
+
+ Leader1
+
+
+
+
+ Lorem ipsum.
+
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit,
+ sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
+ Ut enim ad minim veniam.
+
+
+ Footer 1
+
+
+
+
+
+ {HoverGridCode}
+
+
+
+
+