diff --git a/app/blocks/page.tsx b/app/blocks/authentication/authentication.tsx similarity index 80% rename from app/blocks/page.tsx rename to app/blocks/authentication/authentication.tsx index f5e01d55..994f3255 100644 --- a/app/blocks/page.tsx +++ b/app/blocks/authentication/authentication.tsx @@ -1,30 +1,14 @@ -import { Metadata } from "next"; - import { LoginForm } from "@/components/ui/8bit/blocks/login-form"; import { LoginForm as LoginForm2 } from "@/components/ui/8bit/blocks/login-form-2"; import { LoginForm as LoginFormWithImage } from "@/components/ui/8bit/blocks/login-form-with-image"; -import CopyCommandButton from "../docs/components/copy-command-button"; -import { OpenInV0Button } from "../docs/components/open-in-v0-button"; -import LoginPage from "../login/page"; - -export const metadata: Metadata = { - title: "Building Retro Blocks for the Web - 8bitcn/ui", - description: - "Clean, retro building blocks. Copy and paste into your apps. Works with all React frameworks. Open Source. Free forever.", -}; +import CopyCommandButton from "../../docs/components/copy-command-button"; +import { OpenInV0Button } from "../../docs/components/open-in-v0-button"; +import LoginPage from "../../login/page"; -export default function BlocksPage() { +export default function AuthenticationBlocks() { return ( -
-

- Building Retro Blocks for the Web -

-

- Clean, retro building blocks. Copy and paste into your apps. Works with - all React frameworks. Open Source. Free forever. -

- + <>

@@ -103,6 +87,6 @@ export default function BlocksPage() {

-
+ ); } diff --git a/app/blocks/authentication/page.tsx b/app/blocks/authentication/page.tsx new file mode 100644 index 00000000..2bcb0389 --- /dev/null +++ b/app/blocks/authentication/page.tsx @@ -0,0 +1,37 @@ +import { Metadata } from "next"; +import Link from "next/link"; + +import { Button } from "@/components/ui/8bit/button"; + +import AuthenticationBlocks from "./authentication"; + +export const metadata: Metadata = { + title: "Building Retro Blocks for the Web - 8bitcn/ui", + description: + "Clean, retro building blocks. Copy and paste into your apps. Works with all React frameworks. Open Source. Free forever.", +}; + +export default function BlocksPage() { + return ( +
+

+ Building Retro Blocks for the Web +

+

+ Clean, retro building blocks. Copy and paste into your apps. Works with + all React frameworks. Open Source. Free forever. +

+ +
+ + + + + + +
+ + +
+ ); +} diff --git a/app/blocks/charts/charts.tsx b/app/blocks/charts/charts.tsx new file mode 100644 index 00000000..b0237dd5 --- /dev/null +++ b/app/blocks/charts/charts.tsx @@ -0,0 +1,75 @@ +import { Users } from "lucide-react"; + +import { ChartExample } from "@/components/ui/8bit/blocks/chart"; +import ChartBarMultiple from "@/components/ui/8bit/blocks/chart-bar"; +import { + Card, + CardContent, + CardHeader, + CardTitle, +} from "@/components/ui/8bit/card"; + +import CopyCommandButton from "../../docs/components/copy-command-button"; +import { OpenInV0Button } from "../../docs/components/open-in-v0-button"; + +export default function ChartsBlocks() { + return ( +
+
+
+

+ A simple bar chart +

+ +
+ + +
+
+ + + + + Total visitors in the last 6 months + + + + + + + +
+ +
+
+

+ A multiple bar chart +

+ +
+ + +
+
+ + + + + Total visitors in the last 6 months + + + + + + + +
+
+ ); +} diff --git a/app/blocks/charts/page.tsx b/app/blocks/charts/page.tsx new file mode 100644 index 00000000..40b2a131 --- /dev/null +++ b/app/blocks/charts/page.tsx @@ -0,0 +1,37 @@ +import { Metadata } from "next"; +import Link from "next/link"; + +import { Button } from "@/components/ui/8bit/button"; + +import ChartsBlocks from "./charts"; + +export const metadata: Metadata = { + title: "Building Retro Blocks for the Web - 8bitcn/ui", + description: + "Clean, retro building blocks. Copy and paste into your apps. Works with all React frameworks. Open Source. Free forever.", +}; + +export default function BlocksPage() { + return ( +
+

+ Building Retro Blocks for the Web +

+

+ Clean, retro building blocks. Copy and paste into your apps. Works with + all React frameworks. Open Source. Free forever. +

+ +
+ + + + + + +
+ + +
+ ); +} diff --git a/app/docs/components/copy-command-button.tsx b/app/docs/components/copy-command-button.tsx index 978b3978..75a3cb4f 100644 --- a/app/docs/components/copy-command-button.tsx +++ b/app/docs/components/copy-command-button.tsx @@ -20,7 +20,11 @@ export default function CopyCommandButton({ }; return ( - ); diff --git a/components/examples/navigation-menu.tsx b/components/examples/navigation-menu.tsx index fe318ec1..5e18afed 100644 --- a/components/examples/navigation-menu.tsx +++ b/components/examples/navigation-menu.tsx @@ -83,7 +83,7 @@ export default function NavigationMenuDemo() { Re-usable components built using Radix UI and Tailwind CSS. - + Building Retro Blocks for the Web diff --git a/config/nav-items.ts b/config/nav-items.ts index 53bc6847..46bfbcea 100644 --- a/config/nav-items.ts +++ b/config/nav-items.ts @@ -197,7 +197,7 @@ export const navItems = { }, { label: "Blocks", - href: "/blocks", + href: "/blocks/authentication", }, { label: "Themes",