From 34c1b2581d648ae805023f20b8cf52d61f6705f1 Mon Sep 17 00:00:00 2001 From: sandulat Date: Mon, 12 May 2025 10:49:04 +0300 Subject: [PATCH] chore: added a banner to the docs website --- docs/src/app/layout.tsx | 4 +-- docs/src/app/page.md | 8 ++--- docs/src/components/hero.tsx | 2 +- docs/src/components/layout.tsx | 63 ++++++++++++++++++++++++++++------ docs/src/components/logo.tsx | 2 ++ 5 files changed, 61 insertions(+), 18 deletions(-) diff --git a/docs/src/app/layout.tsx b/docs/src/app/layout.tsx index 8348df1..f99b5c2 100644 --- a/docs/src/app/layout.tsx +++ b/docs/src/app/layout.tsx @@ -27,10 +27,10 @@ export const metadata: Metadata = { metadataBase: new URL("https://builder.coltorapps.com"), title: { template: "React Form Builder | %s - Docs", - default: "React Form Builder | Dynamic JSON-based UI with Drag and Drop.", + default: "React Form Builder | Drag and drop form builder with JSON schema form.", }, description: - "React Form Builder. React Native Form Builder. Develop your own dynamic forms builder, websites builder, dashboards builder, UIs builder. Drag-and-drop functionality, generate JSON schema, and seamless integration with React and Next.js", + "React Form Builder. React Native Form Builder. Develop your own Drag and Drop form builder, websites builder, dashboards builder and more. Generate JSON schema form, and seamless integration with React and Next.js", }; export default function RootLayout({ diff --git a/docs/src/app/page.md b/docs/src/app/page.md index cc95d26..1f6c02d 100644 --- a/docs/src/app/page.md +++ b/docs/src/app/page.md @@ -1,6 +1,6 @@ ## Overview -**Builder** is a versatile React and React Native library designed for crafting dynamic form builders and much more. You can also generate dynamic UI from JSON schema, drag and drop React UI builders, and any other builders you envision. +**Builder** is a versatile React and React Native library designed for crafting drag and drop form builders and JSON schema forms. You can also generate dynamic UI from JSON schema and any other builders you envision. Some key characteristics: @@ -37,11 +37,11 @@ Learn how to get started with Builder through our guides. {% .lead %} --- -## Demo of a React Form Builder with Drag and Drop +## Demo of a React Drag and Drop Form Builder -Here is a live demo of a simple **React Form Builder Drag and Drop** interface created using `shadcn` components for UI and `dnd-kit`. +Here is a live demo of a simple **React Drag and Drop Form Builder** interface created using `shadcn` components for UI and `dnd-kit`. -In the **Preview Form** -> **Schema** section you can get an idea of how to generate React forms dynamically from JSON, making it easy to create and customize forms for your applications. +In the **Preview Form** -> **Schema** section you can get an idea of how to generate React forms dynamically from a JSON schema, making it easy to create and customize forms for your applications. {% basic-form-builder /%} diff --git a/docs/src/components/hero.tsx b/docs/src/components/hero.tsx index 262f4f3..8b4bf0e 100644 --- a/docs/src/components/hero.tsx +++ b/docs/src/components/hero.tsx @@ -32,7 +32,7 @@ function TrafficLightsIcon(props: React.ComponentPropsWithoutRef<"svg">) { export function Hero() { return ( -
+
diff --git a/docs/src/components/layout.tsx b/docs/src/components/layout.tsx index e5a24dd..d2f2a19 100644 --- a/docs/src/components/layout.tsx +++ b/docs/src/components/layout.tsx @@ -10,8 +10,6 @@ import { Navigation } from "@/components/navigation"; import { Search } from "@/components/search"; import clsx from "clsx"; -import { Button } from "./ui/button"; - function GitHubIcon(props: React.ComponentPropsWithoutRef<"svg">) { return (
); @@ -113,6 +102,58 @@ export function Layout({ children }: { children: React.ReactNode }) { return (
+
+