Создать туристический сайт с бронированием туров, собственной CRM.
Generated Prompt
PROJECT SETUP
Create a new project folder named "TourismWebsite". Inside this folder, structure your project as follows:
- src/
- components/
- Header/
- Header.tsx
- Header.css
- Footer/
- Footer.tsx
- Footer.css
- TourCard/
- TourCard.tsx
- TourCard.css
- BookingForm/
- BookingForm.tsx
- BookingForm.css
- pages/
- Home/
- Home.tsx
- Home.css
- About/
- About.tsx
- About.css
- Tours/
- Tours.tsx
- Tours.css
- utils/
- api.ts
- constants.ts
- App.tsx
- index.tsx
- styles.css
- public/
- index.html
- package.json
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. Header: Contains navigation links and branding.
2. Footer: Displays contact information and links to social media.
3. TourCard: Represents individual tour options with images, descriptions, and booking buttons.
4. BookingForm: Allows users to enter their details and book a tour.
5. Home: Landing page that showcases featured tours and company information.
6. About: Page that details the company’s mission and values.
7. Tours: Page listing all available tours with filtering options.
IMPLEMENTATION APPROACH
1. Begin by setting up the React environment and installing necessary packages (e.g., React Router for navigation).
2. Create the Header component to include links to Home, About, and Tours pages.
3. Develop the TourCard component to display tour details and integrate a booking button.
4. Create the BookingForm component with inputs for user information and a submit button.
5. Implement the Home page to feature a few highlighted tours using the TourCard component.
6. Style all components using the specified design requirements, ensuring responsiveness.
7. Integrate the API utility to handle booking requests and fetch tour data.
ARCHITECTURE CONSIDERATIONS
Utilize a component-based architecture with a clear separation of concerns. Each component should be responsible for a specific part of the UI. Use React Router for navigation between pages. State management can be handled with React's Context API or a state management library like Redux if necessary.
ERROR HANDLING
Implement error handling in the BookingForm component to manage form validation and API request errors. Use try-catch blocks for asynchronous requests and provide user feedback for any issues that arise during the booking process.
TESTING STRATEGY
Use Jest and React Testing Library for unit and integration testing. Write tests for each component, checking that they render correctly and handle props as expected. Create end-to-end tests for the booking flow to ensure that users can successfully complete the booking process.
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!
