Submit Order - 1. Create a new Supabase database table named with the following schema: - id (uuid, primary key, authenticated/public...
Generated Prompt
## APPLICATION OVERVIEW This project involves creating a web application that manages customer orders using Supabase as the backend. The application will allow users to submit orders, which will be recorded in a database, while also providing features to ensure a smooth and efficient checkout process. ## CORE FEATURES 1. **Order Creation**: Users can submit their orders through a checkout form, which will insert new entries into the `orders` table in the Supabase database. 2. **Email Notification**: Upon successful order insertion, the system will trigger an email notification to the owner using the Resend service. 3. **Cooldown Mechanism**: To prevent duplicate submissions, the "Submit Order" button will be disabled, and a loading spinner will be displayed immediately after the user clicks the button. 4. **Product Catalog Integration**: The application will replace placeholder products with the official product catalog, ensuring accurate dosages, pricing, and taglines. 5. **Responsive Design**: The application will be fully responsive, providing a seamless experience across devices. ## DESIGN SPECIFICATIONS - **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 - **Layout**: The main layout will include a header with navigation, a hero section for the checkout form, and sections for order confirmation and product catalog display. ## TECHNICAL REQUIREMENTS - **Framework**: React with TypeScript - **Styling**: Tailwind CSS - **UI Components**: shadcn/ui - **State Management**: React Context API for managing application state (if needed) ## IMPLEMENTATION STEPS 1. **Database Setup**: - Create a new table named `orders` in Supabase with the specified schema. 2. **Backend Integration**: - Update the `checkout-notify.ts` route to handle form submissions, inserting a new order into the `orders` table and triggering the email notification. 3. **Frontend Development**: - Build the checkout form with input fields for customer name, email, phone, shipping address, and order items. - Implement the cooldown mechanism by disabling the submit button and showing a loading spinner. 4. **Product Catalog Integration**: - Update `src/lib/data.ts` to pull product data from the "MyCure Adaptogen Data & Copy" document, ensuring accurate display in the application. 5. **Styling**: - Use Tailwind CSS to style the application according to the design specifications, ensuring a minimalist aesthetic. 6. **Testing**: - Test the entire order submission process to ensure that it works as intended and that the email notification is sent correctly. ## USER EXPERIENCE Users will interact with a straightforward checkout form where they can input their order details. The submit button will be disabled upon clicking to prevent duplicate orders, and a loading spinner will indicate that the submission is in progress. Once the order is successfully placed, users will receive confirmation, and the order details will be stored securely in the backend. The minimalist design will ensure that users can navigate easily and focus on completing their orders without distractions.
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!
