Act as an expert front-end developer. Build a modern, responsive, mobile-optimized…
- User
Act as an expert front-end developer. Build a modern, responsive, mobile-optimized Mortgage Calculator web application using HTML, Tailwind CSS, and Vanilla JavaScript.
- Layout & Styling:
- Use a modern, ultra-clean UI with a slate blue and dark gray color scheme (#1E293B primary, #2563EB accent).
- Header: Logo brand "SmartMortgage Calc", navigation links (Home, Extra Payments, Refinance, Articles), and a dark/light mode toggle.
- Clean container-based layout with a hero section: "Calculate Your Monthly Mortgage Payment accurately."
- Calculator Inputs (Form on Left / Top on Mobile):
- Home Price ($)
- Down Payment ($ and %)
- Interest Rate (%)
- Loan Term (10, 15, 20, 30 Years - Dropdown or Toggle buttons)
- Property Tax ($/yr)
- Home Insurance ($/yr)
- HOA Fees ($/mo)
- Private Mortgage Insurance / PMI (%)
- Interactive Results Engine (Right Side / Bottom on Mobile):
- Display dynamic total estimated monthly payment prominently in large font.
- Breakdown cards: Principal & Interest, Taxes, Insurance, HOA, and PMI.
- Dynamic SVG or Chart visual pie chart breakdown of monthly costs.
- Amortization Schedule Table showing month-by-month breakdown of principal, interest, and remaining balance with an expandable view.
Ensure all calculations update dynamically in real-time as inputs change or when clicking a primary "Calculate Payment" button.
Assistant
I'll build a comprehensive Mortgage Calculator application for you. Let me start by exploring the project structure and then create all the necessary files.
Now I'll create the complete Mortgage Calculator application. Let me update the files:
I've created the main application files. Now let me build the project to ensure everything compiles correctly:
The Mortgage Calculator application has been successfully built! Here's what I created:
SmartMortgage Calc - Complete Features:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.