Inteliq init commit

This commit is contained in:
Cesar Mendivil 2025-07-31 18:42:35 -07:00
commit bfb2de8298
27 changed files with 10177 additions and 0 deletions

45
.github/copilot-instructions.md vendored Normal file
View File

@ -0,0 +1,45 @@
<!-- Use this file to provide workspace-specific custom instructions to Copilot. For more details, visit https://code.visualstudio.com/docs/copilot/copilot-customization#_use-a-githubcopilotinstructionsmd-file -->
# Copilot Instructions for React.js UI Kit Project
This is a React.js project built with Vite and TypeScript, designed to implement a modern UI kit based on Figma designs.
## Project Guidelines
### Architecture
- Use React functional components with TypeScript
- Implement responsive design with Tailwind CSS
- Follow component-based architecture with reusable UI components
- Use modern React hooks (useState, useEffect, etc.)
### Styling
- Use Tailwind CSS for styling with custom design tokens
- Follow mobile-first responsive design principles
- Implement consistent spacing, typography, and color schemes
- Use CSS Grid and Flexbox for layouts
### Code Style
- Use TypeScript for type safety
- Follow React best practices and hooks patterns
- Implement proper prop types and interfaces
- Use meaningful component and variable names
- Add JSDoc comments for complex functions
### Component Structure
- Create reusable UI components (buttons, cards, forms, etc.)
- Separate business logic from presentation components
- Use proper file and folder organization
- Export components with clear interfaces
### Performance
- Optimize components for performance
- Use React.memo when appropriate
- Implement code splitting where beneficial
- Optimize images and assets
When generating code, prioritize:
1. Type safety with TypeScript
2. Accessibility (semantic HTML, ARIA attributes)
3. Mobile-responsive design
4. Clean, maintainable code structure
5. Modern React patterns and best practices

24
.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

91
README.md Normal file
View File

@ -0,0 +1,91 @@
# Inteliq UI Kit - React.js Project
A modern React.js project built with Vite and TypeScript, implementing a comprehensive UI kit based on Figma designs.
## 🚀 Features
- ⚡ **Lightning Fast** - Built with Vite for optimal performance
- 🛡️ **Type Safe** - Full TypeScript support
- 📱 **Responsive** - Mobile-first design approach
- 🎨 **Modern UI** - Clean and modern component library
- 🔧 **Customizable** - Easy theming with Tailwind CSS
- ♿ **Accessible** - Built with accessibility in mind
## 🛠️ Tech Stack
- **React 18** - Modern React with hooks
- **TypeScript** - Type safety and better DX
- **Vite** - Fast build tool and dev server
- **Tailwind CSS** - Utility-first CSS framework
- **Lucide React** - Beautiful and consistent icons
## 📦 Installation
1. Install dependencies:
```bash
npm install
```
2. Start the development server:
```bash
npm run dev
```
3. Build for production:
```bash
npm run build
```
## 🏗️ Project Structure
```
src/
├── components/ # React components
│ ├── ui/ # Reusable UI components
│ ├── Header.tsx # Navigation header
│ ├── Hero.tsx # Hero section
│ ├── Features.tsx # Features showcase
│ └── Footer.tsx # Footer component
├── lib/ # Utility functions
├── assets/ # Static assets
└── App.tsx # Main application component
```
## 🎨 Components
### Header
- Responsive navigation
- Mobile menu toggle
- CTA button
### Hero Section
- Compelling headline
- Call-to-action buttons
- Statistics display
- Animated placeholder design
### Features
- Grid layout
- Icon-based feature cards
- Hover effects
- Responsive design
### Footer
- Multi-column layout
- Social media links
- Company information
- Legal links
## 🚀 Getting Started
The project is ready to run! Simply use:
```bash
npm run dev
```
Then open [http://localhost:5173](http://localhost:5173) to view it in your browser.
## 📄 License
This project is open source and available under the [MIT License](LICENSE).

23
eslint.config.js Normal file
View File

@ -0,0 +1,23 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { globalIgnores } from 'eslint/config'
export default tseslint.config([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs['recommended-latest'],
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
])

13
index.html Normal file
View File

@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

9261
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

36
package.json Normal file
View File

@ -0,0 +1,36 @@
{
"name": "chatbot-ai",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview"
},
"dependencies": {
"autoprefixer": "^10.4.21",
"clsx": "^2.1.1",
"lucide-react": "^0.535.0",
"npx": "^10.2.2",
"postcss": "^8.5.6",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"tailwind-merge": "^3.3.1"
},
"devDependencies": {
"@eslint/js": "^9.30.1",
"@types/react": "^19.1.9",
"@types/react-dom": "^19.1.7",
"@vitejs/plugin-react": "^4.6.0",
"eslint": "^9.30.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.3.0",
"tailwindcss": "^3.4.17",
"typescript": "~5.8.3",
"typescript-eslint": "^8.35.1",
"vite": "^7.0.4"
}
}

6
postcss.config.js Normal file
View File

@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}

1
public/vite.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

42
src/App.css Normal file
View File

@ -0,0 +1,42 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
}

17
src/App.tsx Normal file
View File

@ -0,0 +1,17 @@
import Header from './components/Header'
import Hero from './components/Hero'
import Features from './components/Features'
import Footer from './components/Footer'
function App() {
return (
<div className="min-h-screen bg-gray-50">
<Header />
<Hero />
<Features />
<Footer />
</div>
)
}
export default App

1
src/assets/react.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="35.93" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 228"><path fill="#00D8FF" d="M210.483 73.824a171.49 171.49 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621c6.238-30.281 2.16-54.676-11.769-62.708c-13.355-7.7-35.196.329-57.254 19.526a171.23 171.23 0 0 0-6.375 5.848a155.866 155.866 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233C50.33 10.957 46.379 33.89 51.995 62.588a170.974 170.974 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a145.52 145.52 0 0 0 6.921 2.165a167.467 167.467 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266c13.744 7.926 36.812-.22 59.273-19.855a145.567 145.567 0 0 0 5.342-4.923a168.064 168.064 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586c13.731-7.949 18.194-32.003 12.4-61.268a145.016 145.016 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488c29.348-9.723 48.443-25.443 48.443-41.52c0-15.417-17.868-30.326-45.517-39.844Zm-6.365 70.984c-1.4.463-2.836.91-4.3 1.345c-3.24-10.257-7.612-21.163-12.963-32.432c5.106-11 9.31-21.767 12.459-31.957c2.619.758 5.16 1.557 7.61 2.4c23.69 8.156 38.14 20.213 38.14 29.504c0 9.896-15.606 22.743-40.946 31.14Zm-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787c-1.524 8.219-4.59 13.698-8.382 15.893c-8.067 4.67-25.32-1.4-43.927-17.412a156.726 156.726 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246c12.376-1.098 24.068-2.894 34.671-5.345a134.17 134.17 0 0 1 1.386 6.193ZM87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675c-8.075-4.657-11.432-22.636-6.853-46.752a156.923 156.923 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994c7.084 9.967 14.501 19.128 21.976 27.15a134.668 134.668 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94ZM50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863c-6.35-5.437-9.555-10.836-9.555-15.216c0-9.322 13.897-21.212 37.076-29.293c2.813-.98 5.757-1.905 8.812-2.773c3.204 10.42 7.406 21.315 12.477 32.332c-5.137 11.18-9.399 22.249-12.634 32.792a134.718 134.718 0 0 1-6.318-1.979Zm12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789c8.564-4.958 27.502 2.111 47.463 19.835a144.318 144.318 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988c-12.04 1.116-23.565 2.908-34.161 5.309a160.342 160.342 0 0 1-1.76-7.887Zm110.427 27.268a347.8 347.8 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08c-2.206 7.072-4.956 14.465-8.193 22.045a381.151 381.151 0 0 0-7.365-13.322Zm-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322.04 322.04 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18ZM82.802 87.83a323.167 323.167 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152c7.304-1.634 15.093-2.97 23.209-3.984a321.524 321.524 0 0 0-7.848 12.897Zm8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793c2.26-7.3 5.045-14.885 8.298-22.6a321.187 321.187 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147Zm37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433c4.902.192 9.899.29 14.978.29c5.218 0 10.376-.117 15.453-.343c-4.985 6.774-10.018 12.97-15.028 18.486Zm52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52c-7.422 1.694-15.436 3.058-23.88 4.071a382.417 382.417 0 0 0 7.859-13.026a347.403 347.403 0 0 0 7.425-13.565Zm-16.898 8.101a358.557 358.557 0 0 1-12.281 19.815a329.4 329.4 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310.202 310.202 0 0 1-12.513-19.846h.001a307.41 307.41 0 0 1-10.923-20.627a310.278 310.278 0 0 1 10.89-20.637l-.001.001a307.318 307.318 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329.357 329.357 0 0 1 12.335 19.695a358.489 358.489 0 0 1 11.036 20.54a329.472 329.472 0 0 1-11 20.722Zm22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026c-.344 1.668-.73 3.367-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408c-7.034-10.017-14.323-19.124-21.64-27.008a160.789 160.789 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3ZM128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86s-22.86-10.235-22.86-22.86s10.235-22.86 22.86-22.86Z"></path></svg>

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -0,0 +1,97 @@
import React from 'react'
import { Zap, Shield, Smartphone, Code, Palette, Users } from 'lucide-react'
interface FeatureCardProps {
icon: React.ReactNode
title: string
description: string
}
const FeatureCard: React.FC<FeatureCardProps> = ({ icon, title, description }) => {
return (
<div className="bg-white p-8 rounded-2xl shadow-sm border border-gray-100 hover:shadow-lg transition-shadow group">
<div className="w-12 h-12 bg-primary-100 rounded-xl flex items-center justify-center mb-6 group-hover:bg-primary-200 transition-colors">
{icon}
</div>
<h3 className="text-xl font-semibold text-gray-900 mb-3">{title}</h3>
<p className="text-gray-600 leading-relaxed">{description}</p>
</div>
)
}
const Features: React.FC = () => {
const features = [
{
icon: <Zap className="w-6 h-6 text-primary-600" />,
title: "Lightning Fast",
description: "Optimized for performance with minimal bundle size and fast loading times."
},
{
icon: <Shield className="w-6 h-6 text-primary-600" />,
title: "Type Safe",
description: "Built with TypeScript for better development experience and fewer bugs."
},
{
icon: <Smartphone className="w-6 h-6 text-primary-600" />,
title: "Responsive Design",
description: "Mobile-first approach ensuring perfect experience across all devices."
},
{
icon: <Code className="w-6 h-6 text-primary-600" />,
title: "Developer Friendly",
description: "Clean APIs and comprehensive documentation for easy integration."
},
{
icon: <Palette className="w-6 h-6 text-primary-600" />,
title: "Customizable",
description: "Easily themeable with CSS variables and extensive customization options."
},
{
icon: <Users className="w-6 h-6 text-primary-600" />,
title: "Community Driven",
description: "Open source project with active community and regular updates."
}
]
return (
<section className="py-20 lg:py-32 bg-gray-50">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
{/* Section Header */}
<div className="text-center space-y-4 mb-16">
<div className="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-primary-100 text-primary-800">
Features
</div>
<h2 className="text-3xl lg:text-5xl font-bold text-gray-900">
Everything you need to
<span className="text-primary-600"> build amazing UIs</span>
</h2>
<p className="text-xl text-gray-600 max-w-3xl mx-auto leading-relaxed">
Our comprehensive UI kit provides all the components and tools you need
to create beautiful, accessible, and performant user interfaces.
</p>
</div>
{/* Features Grid */}
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-8">
{features.map((feature, index) => (
<FeatureCard
key={index}
icon={feature.icon}
title={feature.title}
description={feature.description}
/>
))}
</div>
{/* Bottom CTA */}
<div className="text-center mt-16">
<button className="bg-primary-600 text-white px-8 py-4 rounded-xl font-semibold hover:bg-primary-700 transition-colors">
Explore All Components
</button>
</div>
</div>
</section>
)
}
export default Features

96
src/components/Footer.tsx Normal file
View File

@ -0,0 +1,96 @@
import React from 'react'
import { Github, Twitter, Linkedin, Mail } from 'lucide-react'
const Footer: React.FC = () => {
return (
<footer className="bg-gray-900 text-white">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
{/* Main Footer Content */}
<div className="py-16">
<div className="grid lg:grid-cols-4 gap-8">
{/* Brand Section */}
<div className="lg:col-span-1">
<h3 className="text-2xl font-bold mb-4">Inteliq</h3>
<p className="text-gray-400 mb-6 leading-relaxed">
Modern UI components for React applications.
Build beautiful interfaces faster with our comprehensive kit.
</p>
<div className="flex space-x-4">
<a href="#" className="text-gray-400 hover:text-white transition-colors">
<Github size={20} />
</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">
<Twitter size={20} />
</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">
<Linkedin size={20} />
</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">
<Mail size={20} />
</a>
</div>
</div>
{/* Product Links */}
<div>
<h4 className="font-semibold mb-4">Product</h4>
<ul className="space-y-3">
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Components</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Templates</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Icons</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Playground</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Figma Kit</a></li>
</ul>
</div>
{/* Resources Links */}
<div>
<h4 className="font-semibold mb-4">Resources</h4>
<ul className="space-y-3">
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Documentation</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Getting Started</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Examples</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Blog</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Community</a></li>
</ul>
</div>
{/* Company Links */}
<div>
<h4 className="font-semibold mb-4">Company</h4>
<ul className="space-y-3">
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">About</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Careers</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Contact</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Privacy</a></li>
<li><a href="#" className="text-gray-400 hover:text-white transition-colors">Terms</a></li>
</ul>
</div>
</div>
</div>
{/* Bottom Bar */}
<div className="border-t border-gray-800 py-8">
<div className="flex flex-col md:flex-row justify-between items-center">
<p className="text-gray-400 text-sm">
© 2025 Inteliq UI Kit. All rights reserved.
</p>
<div className="flex space-x-6 mt-4 md:mt-0">
<a href="#" className="text-gray-400 hover:text-white text-sm transition-colors">
Privacy Policy
</a>
<a href="#" className="text-gray-400 hover:text-white text-sm transition-colors">
Terms of Service
</a>
<a href="#" className="text-gray-400 hover:text-white text-sm transition-colors">
Cookie Policy
</a>
</div>
</div>
</div>
</div>
</footer>
)
}
export default Footer

77
src/components/Header.tsx Normal file
View File

@ -0,0 +1,77 @@
import React from 'react'
import { Menu, X } from 'lucide-react'
const Header: React.FC = () => {
const [isMenuOpen, setIsMenuOpen] = React.useState(false)
return (
<header className="bg-white shadow-sm border-b border-gray-200">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex justify-between items-center h-16">
{/* Logo */}
<div className="flex-shrink-0">
<h1 className="text-2xl font-bold text-gray-900">Inteliq</h1>
</div>
{/* Desktop Navigation */}
<nav className="hidden md:flex space-x-8">
<a href="#" className="text-gray-700 hover:text-primary-600 px-3 py-2 text-sm font-medium">
Home
</a>
<a href="#" className="text-gray-700 hover:text-primary-600 px-3 py-2 text-sm font-medium">
Features
</a>
<a href="#" className="text-gray-700 hover:text-primary-600 px-3 py-2 text-sm font-medium">
About
</a>
<a href="#" className="text-gray-700 hover:text-primary-600 px-3 py-2 text-sm font-medium">
Contact
</a>
</nav>
{/* CTA Button */}
<div className="hidden md:flex items-center space-x-4">
<button className="bg-primary-600 text-white px-6 py-2 rounded-lg font-medium hover:bg-primary-700 transition-colors">
Get Started
</button>
</div>
{/* Mobile menu button */}
<div className="md:hidden">
<button
onClick={() => setIsMenuOpen(!isMenuOpen)}
className="text-gray-700 hover:text-gray-900"
>
{isMenuOpen ? <X size={24} /> : <Menu size={24} />}
</button>
</div>
</div>
{/* Mobile Navigation */}
{isMenuOpen && (
<div className="md:hidden">
<div className="px-2 pt-2 pb-3 space-y-1 sm:px-3 bg-white border-t border-gray-200">
<a href="#" className="block px-3 py-2 text-base font-medium text-gray-700 hover:text-primary-600">
Home
</a>
<a href="#" className="block px-3 py-2 text-base font-medium text-gray-700 hover:text-primary-600">
Features
</a>
<a href="#" className="block px-3 py-2 text-base font-medium text-gray-700 hover:text-primary-600">
About
</a>
<a href="#" className="block px-3 py-2 text-base font-medium text-gray-700 hover:text-primary-600">
Contact
</a>
<button className="w-full mt-4 bg-primary-600 text-white px-6 py-2 rounded-lg font-medium hover:bg-primary-700 transition-colors">
Get Started
</button>
</div>
</div>
)}
</div>
</header>
)
}
export default Header

83
src/components/Hero.tsx Normal file
View File

@ -0,0 +1,83 @@
import React from 'react'
import { ArrowRight, Play } from 'lucide-react'
const Hero: React.FC = () => {
return (
<section className="bg-gradient-to-br from-primary-50 to-white">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-20 lg:py-32">
<div className="grid lg:grid-cols-2 gap-12 items-center">
{/* Left Content */}
<div className="space-y-8">
<div className="space-y-4">
<div className="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-primary-100 text-primary-800">
🚀 New Update Available
</div>
<h1 className="text-4xl lg:text-6xl font-bold text-gray-900 leading-tight">
Build Amazing
<span className="text-primary-600"> UI Components</span>
</h1>
<p className="text-xl text-gray-600 leading-relaxed">
Create stunning user interfaces with our comprehensive UI kit.
Designed for modern web applications with React and TypeScript.
</p>
</div>
{/* CTA Buttons */}
<div className="flex flex-col sm:flex-row gap-4">
<button className="bg-primary-600 text-white px-8 py-4 rounded-xl font-semibold hover:bg-primary-700 transition-colors flex items-center justify-center group">
Get Started
<ArrowRight size={20} className="ml-2 group-hover:translate-x-1 transition-transform" />
</button>
<button className="border border-gray-300 text-gray-700 px-8 py-4 rounded-xl font-semibold hover:bg-gray-50 transition-colors flex items-center justify-center">
<Play size={20} className="mr-2" />
Watch Demo
</button>
</div>
{/* Stats */}
<div className="flex flex-wrap gap-8 pt-8">
<div>
<div className="text-3xl font-bold text-gray-900">50+</div>
<div className="text-gray-600">Components</div>
</div>
<div>
<div className="text-3xl font-bold text-gray-900">10k+</div>
<div className="text-gray-600">Downloads</div>
</div>
<div>
<div className="text-3xl font-bold text-gray-900">99%</div>
<div className="text-gray-600">Satisfaction</div>
</div>
</div>
</div>
{/* Right Content - Placeholder for design */}
<div className="relative">
<div className="bg-white rounded-2xl shadow-2xl p-8 space-y-6">
<div className="h-4 bg-gray-200 rounded animate-pulse"></div>
<div className="space-y-3">
<div className="h-3 bg-gray-200 rounded animate-pulse"></div>
<div className="h-3 bg-gray-200 rounded w-5/6 animate-pulse"></div>
<div className="h-3 bg-gray-200 rounded w-4/6 animate-pulse"></div>
</div>
<div className="flex space-x-4">
<div className="w-20 h-10 bg-primary-200 rounded animate-pulse"></div>
<div className="w-20 h-10 bg-gray-200 rounded animate-pulse"></div>
</div>
<div className="space-y-2">
<div className="h-2 bg-gray-200 rounded animate-pulse"></div>
<div className="h-2 bg-gray-200 rounded w-3/4 animate-pulse"></div>
</div>
</div>
{/* Floating elements */}
<div className="absolute -top-4 -right-4 w-8 h-8 bg-primary-500 rounded-full opacity-20"></div>
<div className="absolute -bottom-4 -left-4 w-6 h-6 bg-primary-300 rounded-full opacity-30"></div>
</div>
</div>
</div>
</section>
)
}
export default Hero

View File

@ -0,0 +1,46 @@
import React from 'react'
import { clsx } from 'clsx'
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
variant?: 'primary' | 'secondary' | 'outline' | 'ghost'
size?: 'sm' | 'md' | 'lg'
children: React.ReactNode
}
const Button: React.FC<ButtonProps> = ({
variant = 'primary',
size = 'md',
className,
children,
...props
}) => {
const baseClasses = 'inline-flex items-center justify-center font-medium rounded-lg transition-colors focus:outline-none focus:ring-2 focus:ring-offset-2'
const variants = {
primary: 'bg-primary-600 text-white hover:bg-primary-700 focus:ring-primary-500',
secondary: 'bg-gray-600 text-white hover:bg-gray-700 focus:ring-gray-500',
outline: 'border border-gray-300 text-gray-700 hover:bg-gray-50 focus:ring-primary-500',
ghost: 'text-gray-700 hover:bg-gray-100 focus:ring-primary-500'
}
const sizes = {
sm: 'px-3 py-2 text-sm',
md: 'px-4 py-2 text-base',
lg: 'px-6 py-3 text-lg'
}
const classes = clsx(
baseClasses,
variants[variant],
sizes[size],
className
)
return (
<button className={classes} {...props}>
{children}
</button>
)
}
export default Button

View File

@ -0,0 +1,44 @@
import React from 'react'
import { clsx } from 'clsx'
interface CardProps {
children: React.ReactNode
className?: string
padding?: 'sm' | 'md' | 'lg'
shadow?: 'sm' | 'md' | 'lg' | 'xl'
}
const Card: React.FC<CardProps> = ({
children,
className,
padding = 'md',
shadow = 'md'
}) => {
const paddingClasses = {
sm: 'p-4',
md: 'p-6',
lg: 'p-8'
}
const shadowClasses = {
sm: 'shadow-sm',
md: 'shadow-md',
lg: 'shadow-lg',
xl: 'shadow-xl'
}
const classes = clsx(
'bg-white rounded-lg border border-gray-200',
paddingClasses[padding],
shadowClasses[shadow],
className
)
return (
<div className={classes}>
{children}
</div>
)
}
export default Card

15
src/index.css Normal file
View File

@ -0,0 +1,15 @@
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
font-family: 'Inter', system-ui, sans-serif;
}
body {
margin: 0;
min-height: 100vh;
background-color: #ffffff;
}

33
src/lib/utils.ts Normal file
View File

@ -0,0 +1,33 @@
import { clsx, type ClassValue } from 'clsx'
import { twMerge } from 'tailwind-merge'
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export const colors = {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
gray: {
50: '#f9fafb',
100: '#f3f4f6',
200: '#e5e7eb',
300: '#d1d5db',
400: '#9ca3af',
500: '#6b7280',
600: '#4b5563',
700: '#374151',
800: '#1f2937',
900: '#111827',
}
}

10
src/main.tsx Normal file
View File

@ -0,0 +1,10 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />
</StrictMode>,
)

1
src/vite-env.d.ts vendored Normal file
View File

@ -0,0 +1 @@
/// <reference types="vite/client" />

49
tailwind.config.js Normal file
View File

@ -0,0 +1,49 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
primary: {
50: '#f0f9ff',
100: '#e0f2fe',
200: '#bae6fd',
300: '#7dd3fc',
400: '#38bdf8',
500: '#0ea5e9',
600: '#0284c7',
700: '#0369a1',
800: '#075985',
900: '#0c4a6e',
},
gray: {
50: '#f9fafb',
100: '#f3f4f6',
200: '#e5e7eb',
300: '#d1d5db',
400: '#9ca3af',
500: '#6b7280',
600: '#4b5563',
700: '#374151',
800: '#1f2937',
900: '#111827',
}
},
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
},
spacing: {
'18': '4.5rem',
'88': '22rem',
},
borderRadius: {
'2xl': '1rem',
'3xl': '1.5rem',
}
},
},
plugins: [],
}

27
tsconfig.app.json Normal file
View File

@ -0,0 +1,27 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
"target": "ES2022",
"useDefineForClassFields": true,
"lib": ["ES2022", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
"jsx": "react-jsx",
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["src"]
}

7
tsconfig.json Normal file
View File

@ -0,0 +1,7 @@
{
"files": [],
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
]
}

25
tsconfig.node.json Normal file
View File

@ -0,0 +1,25 @@
{
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
"target": "ES2023",
"lib": ["ES2023"],
"module": "ESNext",
"skipLibCheck": true,
/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,
/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["vite.config.ts"]
}

7
vite.config.ts Normal file
View File

@ -0,0 +1,7 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
})