Eres un asistente experto en producción porcina y análisis financiero.
Generated Prompt
## APPLICATION OVERVIEW This web application serves as an interactive cash flow calculator tailored for pork producers managing complete cycles and selling piglets. The tool will help users plan expected income based on individual productivity and production phases: Breeding, Pre-fattening, and Fattening, thereby enhancing financial planning and operational efficiency. ## CORE FEATURES 1. **Farm Size Input**: Users can enter the number of active sows to determine the size of the farm and related calculations. 2. **Feed Consumption Calculation**: Automatically calculates the monthly feed consumption based on the number of active sows and configurable factors. 3. **Phase Parameters Collection**: Collects detailed input parameters for each production phase (Breeding, Pre-fattening, Fattening) to facilitate accurate calculations. 4. **Cash Flow Projections**: Provides options for calculating cash flow either through the sale of weaned piglets or transferring them to the next phase, with detailed financial breakdowns. 5. **Animal Performance Tracking**: Tracks key performance metrics such as weight gain, mortality rates, and feed conversion ratios, offering insights for each production phase. 6. **Detailed Technical Analysis**: Generates a formal report analyzing the user’s situation, highlighting strengths, and suggesting tools or products for improvement. ## DESIGN SPECIFICATIONS - **Visual Style**: Minimalist - Clean, simple design with plenty of white space, minimal color palette, and a strong focus on typography. - **Color Mode**: Light theme with dark text on light backgrounds to enhance readability. - **Layout**: A single-page layout featuring a vertical flow that guides users through data input, calculations, results, and analysis sections with clear navigation. - **Typography**: Use a sans-serif font like "Roboto" for body text and "Montserrat" for headings to create a modern and readable hierarchy. ## TECHNICAL REQUIREMENTS - **Framework**: React with TypeScript - **Styling**: Tailwind CSS for responsive and utility-first design approach - **UI Components**: Utilize shadcn/ui components for a consistent and modern UI. - **State Management**: React Context API for managing application state across components. ## IMPLEMENTATION STEPS 1. **Set Up Project**: - Initialize a new React project with TypeScript. - Integrate Tailwind CSS for styling. - Install shadcn/ui for UI components. 2. **Create Component Structure**: - Build components for each major section: Input Form, Calculation Results, Technical Analysis, and Recommendations. - Implement responsive design using Tailwind CSS. 3. **Develop Logic for Calculations**: - Create utility functions to handle input data and calculations for each production phase. - Ensure data flow between components is seamless and supports real-time updates. 4. **Implement User Input Handling**: - Set up controlled components for user inputs to capture data accurately. - Validate input data to ensure correctness before calculations. 5. **Display Results**: - Create a results section that dynamically displays cash flow projections and analysis based on user inputs. - Implement charts or graphs using a library like Recharts or Chart.js for visual representation of data. 6. **Testing and Optimization**: - Conduct thorough testing to ensure all calculations are accurate and the user experience is smooth. - Optimize performance, especially for data-intensive calculations. ## USER EXPERIENCE Users will interact with the application in a straightforward manner, beginning by entering their farm size and other parameters. The application will guide them through each phase of production, providing real-time feedback and calculations. The results will be displayed in a clear and organized format, allowing users to visualize their cash flow and performance metrics easily. Additionally, users will receive tailored recommendations for tools or products to enhance their production efficiency based on the analysis generated by the application. This comprehensive approach ensures that pork producers can effectively manage their operations and make informed financial decisions.
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!
