Changes to budgetwise.scroll.pub

root
root
25 days ago
Initial commit
body.html
Changed around line 1
+
+

BudgetWise

+

Your simple, smart budgeting companion

+
+
+
+
+

Create Your Budget

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

Your Budget Summary

+
+
+

Remaining Balance

+

$0.00

+
+
+

Savings Potential

+

$0.00

+
+
+
+
+
+
+

Take control of your finances with BudgetWise

+
index.scroll
Changed around line 1
+ buildHtml
+ baseUrl https://budgetwise.scroll.pub
+ metaTags
+ editButton /edit.html
+ title BudgetWise - Simple & Smart Budgeting
+ style.css
+ body.html
+ script.js
readme.scroll
Changed around line 1
+ # budgetwise.scroll.pub
+ Website generated by DeepSeek from prompt: Build a budgeting app
script.js
Changed around line 1
+ document.getElementById('budgetForm').addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ const income = parseFloat(document.getElementById('income').value);
+ const expenses = parseFloat(document.getElementById('expenses').value);
+
+ if (isNaN(income) || isNaN(expenses)) {
+ alert('Please enter valid numbers for both fields');
+ return;
+ }
+
+ const balance = income - expenses;
+ const savings = balance * 0.2; // Assuming 20% savings
+
+ document.getElementById('balance').textContent = `$${balance.toFixed(2)}`;
+ document.getElementById('savings').textContent = `$${savings.toFixed(2)}`;
+ });
style.css
Changed around line 1
+ :root {
+ --primary-color: #4a90e2;
+ --secondary-color: #50e3c2;
+ --background-color: #f5f7fa;
+ --text-color: #333;
+ --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ }
+
+ body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ margin: 0;
+ padding: 0;
+ background-color: var(--background-color);
+ color: var(--text-color);
+ }
+
+ .header {
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+ padding: 2rem;
+ text-align: center;
+ }
+
+ .header h1 {
+ margin: 0;
+ font-size: 2.5rem;
+ }
+
+ .container {
+ max-width: 800px;
+ margin: 2rem auto;
+ padding: 0 1rem;
+ }
+
+ .budget-form {
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+ margin-bottom: 2rem;
+ }
+
+ .form-group {
+ margin-bottom: 1.5rem;
+ }
+
+ label {
+ display: block;
+ margin-bottom: 0.5rem;
+ font-weight: 600;
+ }
+
+ input {
+ width: 100%;
+ padding: 0.8rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ font-size: 1rem;
+ }
+
+ button {
+ background-color: var(--primary-color);
+ color: white;
+ padding: 0.8rem 1.5rem;
+ border: none;
+ border-radius: 4px;
+ cursor: pointer;
+ font-size: 1rem;
+ transition: background-color 0.3s ease;
+ }
+
+ button:hover {
+ background-color: darken(var(--primary-color), 10%);
+ }
+
+ .results {
+ text-align: center;
+ }
+
+ .summary-cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 1rem;
+ margin-top: 1.5rem;
+ }
+
+ .card {
+ background: white;
+ padding: 1.5rem;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+ }
+
+ .card h3 {
+ margin-top: 0;
+ color: var(--primary-color);
+ }
+
+ .card p {
+ font-size: 1.5rem;
+ font-weight: bold;
+ margin: 1rem 0;
+ }
+
+ .footer {
+ text-align: center;
+ padding: 1.5rem;
+ background: var(--primary-color);
+ color: white;
+ margin-top: 2rem;
+ }
+
+ @media (max-width: 600px) {
+ .header h1 {
+ font-size: 2rem;
+ }
+
+ .container {
+ padding: 0 0.5rem;
+ }
+
+ .budget-form {
+ padding: 1rem;
+ }
+ }