1- 'use client' ;
2- import React from 'react' ;
3- import { CodeBlock } from '../../components/CodeBlock' ;
1+
2+ "use client" ;
3+
4+ import React from "react" ;
5+ import { CodeBlock } from "@/components/CodeBlock" ;
6+ import { ComponentSnippetCard } from "@/components/ComponentSnippetCard" ;
7+ import { componentsData } from "@/data/components" ;
48
59const DocsPage = ( ) => {
610 return (
7- < div >
11+ < div className = "container mx-auto py-8" >
12+ { /* Installation Section */ }
813 < section id = "installation" >
914 < h1 className = "text-4xl font-bold border-b pb-2" > Installation</ h1 >
1015 < p className = "mt-4 text-lg text-gray-700 dark:text-gray-300" >
@@ -13,24 +18,27 @@ const DocsPage = () => {
1318
1419 < h2 className = "text-2xl font-semibold mt-8" > 1. Fork the Repository</ h2 >
1520 < p className = "mt-2 text-gray-600 dark:text-gray-400" >
16- First, navigate to the main repository page on GitHub and click the ' Fork' button in the top-right corner. This will create a copy of the project under your own GitHub account.
21+ First, navigate to the main repository page on GitHub and click the ' Fork' button in the top-right corner. This will create a copy of the project under your own GitHub account.
1722 </ p >
23+ < CodeBlock code = "git clone https://github.com/[your-username]/DevUI.git" language = "bash" />
1824
1925 < h2 className = "text-2xl font-semibold mt-8" > 2. Clone Your Fork</ h2 >
2026 < p className = "mt-2 text-gray-600 dark:text-gray-400" >
2127 Now, clone the forked repository to your local machine. Replace `[your-username]` with your actual GitHub username.
2228 </ p >
23- < CodeBlock code = "git clone https://github.com/[your-username]/DevUI.git" />
29+ < CodeBlock code = "git clone https://github.com/[your-username]/DevUI.git" language = "bash" />
2430
2531 < h2 className = "text-2xl font-semibold mt-8" > 3. Navigate to the Directory</ h2 >
26- < CodeBlock code = "cd DevUI" />
27-
32+ < CodeBlock code = "cd DevUI" language = "bash" />
33+
2834 < h2 className = "text-2xl font-semibold mt-8" > 4. Install Dependencies</ h2 >
2935 < p className = "mt-2 text-gray-600 dark:text-gray-400" >
3036 Install all the necessary packages using your preferred package manager.
3137 </ p >
32- < CodeBlock code = "npm install" />
38+ < CodeBlock code = "npm install" language = "bash" />
3339 </ section >
40+
41+ { /* Project Setup Section */ }
3442 < section id = "project-setup" className = "mt-12" >
3543 < h1 className = "text-4xl font-bold border-b pb-2" > Project Setup</ h1 >
3644 < p className = "mt-4 text-lg text-gray-700 dark:text-gray-300" >
@@ -41,10 +49,30 @@ const DocsPage = () => {
4149 < p className = "mt-2 text-gray-600 dark:text-gray-400" >
4250 To start the local development server, run the following command:
4351 </ p >
44- < CodeBlock code = "npm run dev" />
52+ < CodeBlock code = "npm run dev" language = "bash" />
4553 < p className = "mt-2 text-gray-600 dark:text-gray-400" >
46- This will start the application, usually on `http://localhost:3000`. You can now view the project in your browser.
54+ This will start the application, usually on < code className = "text-primary" > http://localhost:3000</ code > . You can now view the project in your browser.
55+ </ p >
56+ </ section >
57+
58+ { /* Component Gallery Section */ }
59+ < section id = "AI-snippets" className = "mt-12" >
60+ < h1 className = "text-4xl font-bold border-b pb-2" > Components</ h1 >
61+ < p className = "mt-4 text-lg text-gray-700 dark:text-gray-300" >
62+ Explore the collection of reusable UI components built with React and Tailwind CSS, featuring copyable code snippets and AI-generated variations.
4763 </ p >
64+ < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mt-8" >
65+ { componentsData . map ( ( component ) => (
66+ < ComponentSnippetCard
67+ key = { component . id }
68+ title = { component . title }
69+ description = { component . description }
70+ preview = { component . preview }
71+ code = { component . code }
72+ category = { component . category }
73+ />
74+ ) ) }
75+ </ div >
4876 </ section >
4977 </ div >
5078 ) ;
0 commit comments