Make everything free https://www.
Generated Prompt
PROJECT SETUP
To create a project focused on making everything free, we will structure the project into a clean and organized format. The main folder structure will look like this:
- src/
- components/
- Button/
- Button.tsx
- Button.styles.ts
- Card/
- Card.tsx
- Card.styles.ts
- pages/
- Home/
- Home.tsx
- Home.styles.ts
- NotFound/
- NotFound.tsx
- utils/
- helpers.ts
- App.tsx
- index.tsx
- public/
- index.html
- package.json
- tsconfig.json
- .gitignore
DESIGN REQUIREMENTS
- Visual Style: minimalist - Clean, simple design with plenty of white space, minimal color palette, and focus on typography
- Color Mode: Light theme with dark text on light backgrounds
- Primary Color: #1978E5 (accent for buttons, links, highlights)
- Typography: Use Inter from Google Fonts for headings, Inter for body text and UI elements
- Border Radius: 8px (moderately rounded) for buttons, cards, and inputs
CORE COMPONENTS
1. **Button**: A reusable button component with customizable text, onClick functionality, and styling.
2. **Card**: A card component to display content in a structured manner, including title, description, and action buttons.
3. **Home Page**: The main page where users can see the offerings and call-to-action buttons.
4. **NotFound Page**: A simple 404 page for handling incorrect routes.
IMPLEMENTATION APPROACH
1. **Create the Button Component**:
```typescript
// src/components/Button/Button.tsx
import React from 'react';
import './Button.styles.ts';
const Button = ({ text, onClick }) => {
return (
<button className="button" onClick={onClick}>
{text}
</button>
);
};
export default Button;
```
2. **Create the Card Component**:
```typescript
// src/components/Card/Card.tsx
import React from 'react';
import './Card.styles.ts';
const Card = ({ title, description, action }) => {
return (
<div className="card">
<h3>{title}</h3>
<p>{description}</p>
{action}
</div>
);
};
export default Card;
```
3. **Setup the Home Page**:
```typescript
// src/pages/Home/Home.tsx
import React from 'react';
import Button from '../../components/Button/Button';
import Card from '../../components/Card/Card';
const Home = () => {
return (
<div>
<h1>Welcome to Our Project</h1>
<Card
title="Make Everything Free"
description="Join us in our mission to make all services available to everyone."
action={<Button text="Get Started" onClick={() => alert("Getting Started!")} />}
/>
</div>
);
};
export default Home;
```
ARCHITECTURE CONSIDERATIONS
The application will follow a component-based architecture, allowing for reusability and separation of concerns. We will use functional components with hooks for state management and side effects.
ERROR HANDLING
We will implement error boundaries in React to catch errors in any child component tree, log those errors, and display a fallback UI. Additionally, we will ensure that each component has basic prop type validation to provide early warnings.
TESTING STRATEGY
We will utilize Jest and React Testing Library for unit testing our components. Each component will have corresponding tests to validate rendering, props handling, and interaction.
Please provide detailed, production-ready code that follows best practices for Cursor.Loved by thousands of makers from
From early prototypes to real products, they started here.







































Generate optimized prompts for your vibe coding projects
Generate prompt
Enter a brief description of the app you want to build and get an optimized prompt
Review and use your prompt
Review (and edit if necessary) the generated prompt, then copy it or open it directly in your chosen platform
Get inspired with new ideas
Get AI-generated suggestions to expand your product with features that will surprise your users
Frequently Asked Questions
Everything you need to know about creating better prompts for your Lovable projects
Still have questions?
Can't find what you're looking for? We're here to help!
