Generate a video: Act as a senior full-stack developer. Your task is to generate a complete, copy-paste ready code for a single-page UPI QR Code Generator web application using Next.js 14 and Tailwind CSS. This is for an Indian audience, so the use case is highly relevant. **Project Goal:** Create a simple UI where a user can enter their UPI ID (e.g., `user@okhdfcbank`) and an amount, and the app instantly generates a scannable UPI QR code. **Tech Stack:** – Framework: Next.js 14 (App Router) – Styling: Tailwind CSS – QR Code Library: `qrcode.react` **Instructions for the AI:** 1. **File Structure:** Provide the code for a single file: `app/page.tsx`. 2. **Component Logic:** – Use React hooks (`useState`) to manage the state for the UPI ID and the amount. – Construct the UPI payment string dynamically in the format: `upi://pay?pa={UPI_ID}&pn=MerchantName&am={AMOUNT}&cu=INR`. – Conditionally render the QR code component only when both UPI ID and amount are entered. 3. **UI/UX Details:** – Create a clean, centered card layout. – Use modern input fields with clear labels (“Enter Your UPI ID”, “Enter Amount”). – Style the “Generate QR” button with a primary brand color. – Add a subtle heading like “Generate UPI QR Code Instantly”. – Ensure the component is fully responsive. 4. **Code Output Format:** – Start with the necessary terminal commands to install the dependency: `npm install qrcode.react`. – Provide the complete code for `app/page.tsx` inside a single, clean code block. – Include detailed comments within the code explaining the state management, UPI string generation, and conditional rendering. This is crucial for creating an educational Instagram Reel. **Example Prompt for the user:** “Enter your UPI ID and amount to create a payment QR code for your small business or friends!”