Create me website about finances
A public project built with the Lightcap AI agent by anon-fdb4 — open to read, run, fork, and export. Updated .
Prompt
Create me website about finances
Lightcap
Here is a simple static website about personal finances. It consists of three files:
1. index.html – the main page with navigation and sections for budgeting, investing, and banking. html <!DOCTYPE html>
Personal Finance Guide
Personal Finance Guide
Budgeting Investing Banking Savings Calculator
Budgeting Learn how to track income and expenses, set realistic goals, and stick to a budget.
Investing Basics of stocks, bonds, ETFs, and diversification. Tips for long‑term growth.
Banking Choosing the right accounts, understanding fees, and using digital banking tools.
Savings Calculator Enter your monthly income and expenses to see how much you can save.
Monthly Income ($):
Monthly Expenses ($):
Calculate
© 2026 Personal Finance Guide
2. style.css – basic styling and responsive layout. css [path] Reset */
- { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.6; background: #f4f4f4; color: #333; } header { background: #2c3e50; color: #fff; padding: 1rem 0; text-align: center; } nav ul { list-style: none; display: flex; justify-content: center; gap: 1rem; } nav a { color: #fff; text-decoration: none; font-weight: bold; } nav a:hover { text-decoration: underline; }
main { max-width: 800px; margin: 2rem auto; padding: 0 1rem; } section { background: #fff; margin-bottom: 1.5rem; padding: 1rem; border-radius: 5px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } section h2 { margin-bottom: 0.5rem; color: #2c3e50; }
form { display: grid; gap: 0.5rem; margin-top: 0.5rem; } label { font-weight: bold; } input { padding: 0.4rem; border: 1px solid #ccc; border-radius: 3px; } button { padding: 0.5rem 1rem; background: #27ae60; color: #fff; border: none; border-radius: 3px; cursor: pointer; } button:hover { background: #219150; }
footer { text-align: center; padding: 1rem 0; background: #2c3e50; color: #fff; margin-top: 2rem; }
[path] Responsive */ @media (max-width: 600px) { nav ul { flex-direction: column; } main { margin: 1rem; } }
3. script.js – a tiny calculator that shows monthly savings. js document.getElementById('calcForm').addEventListener('submit', function(e) { e.preventDefault(); const income = parseFloat(document.getElementById('income').value) || 0; const expenses = parseFloat(document.getElementById('expenses').value) || 0; const savings = income - expenses; const resultEl = document.getElementById('result'); if (savings >= 0) { resultEl.textContent = You can save ${savings.toFixed(2)} per month.; resultEl.style.color = '#27ae60'; } else { resultEl.textContent = You are overspending by ${Math.abs(savings).toFixed(2)} per month.; resultEl.style.color = '#c0392b'; } });
How to use
- Create a folder (e.g.,
finance-site). - Inside the folder, create the three files above with the exact names:
index.html,style.css, andscript.js. - Open
index.htmlin any web browser. You’ll see the navigation, informational sections, and a simple savings calculator that works entirely in the browser.
Feel free to expand the content, add more pages, or enhance the styling and functionality as needed. Enjoy building your personal finance website!