okay Analyse this make sure import { Button } from '@/components/ui/button';
import { Card, CardContent } from '@/components/ui/card';
import { ScrollArea } from '@/components/ui/scroll-area';
import { Badge } from '@/components/ui/badge'; add all this in the exting single file because i dont have this components add all css and everything in one file
Certainly! To consolidate all components (Button, Card, CardContent, ScrollArea, Badge) into a single file, we'll define each of them within the same file as functional components. This approach assumes you're using Tailwind CSS in your project, as the original code utilizes Tailwind's utility classes extensively.
Here's the complete InnovativePortfolio component with all necessary sub-components and styles included in one file:
Button: A versatile button component that supports different variants (default, outline, ghost) and sizes (sm, md, lg, icon). It uses Tailwind CSS classes to style accordingly.
Card and CardContent: These components encapsulate the card structure, allowing for consistent styling across different card usages.
ScrollArea: A simple wrapper that applies the overflow-auto class to enable scrolling within its container.
Badge: A badge component that can display different styles based on the variant prop.
Custom Cursor:
The custom cursor uses framer-motion to animate between different cursor states (default, project, text).
Depending on interactions (like hovering over buttons or project cards), the cursor changes its appearance and displays appropriate text.
Sections:
Hero Section: Introduces the portfolio with a prominent headline, description, and call-to-action buttons.
Projects Grid: Displays featured projects. Hovering over a project card changes the cursor and allows clicking to open a modal with more details.
Skills Section: Showcases areas of expertise with interactive cards that scale slightly on hover and reveal gradient backgrounds.
Contact Section: Encourages users to get in touch or view the resume.
Project Modal:
When a project is selected, a modal appears displaying detailed information about the project, including a live demo link and placeholder for a video or image.
The modal can be closed by clicking the close (X) button.
Prerequisites
Tailwind CSS: Ensure that Tailwind CSS is properly configured in your project since the component relies heavily on Tailwind utility classes for styling. If Tailwind isn't set up, you'll need to install and configure it or replace the class names with your preferred styling method.
Framer Motion: The custom cursor and modal animations are handled by framer-motion. Install it via npm if you haven't already:
bash
npm install framer-motion
Lucide React: Ensure that lucide-react is installed to use the icons:
bash
npm install lucide-react
Final Notes
This single-file approach simplifies the component structure by embedding all necessary sub-components within the same file. It leverages Tailwind CSS for styling, making the UI consistent and responsive without the need for separate CSS files. If you prefer a different styling approach or need to customize the components further, you can adjust the class names or styles within each sub-component accordingly.
Feel free to expand upon the placeholder sections (like the video/image in the project modal) to better fit your portfolio's content and functionality.