commit fc46cf8cdb45daa8d406ba4c03f729db60813487
Author: root <root@hub.scroll.pub>
Date: 2024-12-27 15:01:08 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..5bedb2e
--- /dev/null
+++ b/body.html
@@ -0,0 +1,84 @@
+<header>
+ <nav>
+ <div class="logo">HomeIncome</div>
+ <div class="nav-links">
+ <a href="#calculator">Calculator</a>
+ <a href="#strategies">Strategies</a>
+ <a href="#contact">Contact</a>
+ </div>
+ </nav>
+</header>
+
+<main>
+ <section class="hero">
+ <h1>Maximize Your Home's Income Potential</h1>
+ <p>Turn your 3-bedroom house with finished basement into a profitable investment</p>
+ </section>
+
+ <section id="calculator" class="calculator-section">
+ <h2>Income Calculator</h2>
+ <div class="calculator-grid">
+ <div class="calculator-form">
+ <div class="input-group">
+ <label for="mainRent">Main Floor Monthly Rent ($)</label>
+ <input type="number" id="mainRent" placeholder="2500">
+ </div>
+ <div class="input-group">
+ <label for="basementRent">Basement Suite Monthly Rent ($)</label>
+ <input type="number" id="basementRent" placeholder="1500">
+ </div>
+ <div class="input-group">
+ <label for="expenses">Monthly Expenses ($)</label>
+ <input type="number" id="expenses" placeholder="1000">
+ </div>
+ <button onclick="calculateIncome()" class="calculate-btn">Calculate Income</button>
+ </div>
+ <div class="results" id="results">
+ <h3>Potential Monthly Income</h3>
+ <div class="result-amount">$0</div>
+ <div class="result-breakdown"></div>
+ </div>
+ </div>
+ </section>
+
+ <section id="strategies" class="strategies-section">
+ <h2>Income Strategies</h2>
+ <div class="strategy-cards">
+ <div class="strategy-card">
+ <h3>Main Floor Rental</h3>
+ <p>Rent out the main floor as a family unit with 3 bedrooms and 1 bathroom</p>
+ </div>
+ <div class="strategy-card">
+ <h3>Basement Suite</h3>
+ <p>Convert basement into a separate rental unit with private entrance</p>
+ </div>
+ <div class="strategy-card">
+ <h3>Room-by-Room</h3>
+ <p>Rent individual rooms for maximum income potential</p>
+ </div>
+ </div>
+ </section>
+
+ <section id="contact" class="contact-section">
+ <h2>Get Professional Advice</h2>
+ <form id="contactForm" class="contact-form">
+ <input type="text" placeholder="Your Name" required>
+ <input type="email" placeholder="Email Address" required>
+ <textarea placeholder="Your Message" required></textarea>
+ <button type="submit">Send Message</button>
+ </form>
+ </section>
+</main>
+
+<footer>
+ <div class="footer-content">
+ <div class="footer-section">
+ <h4>HomeIncome</h4>
+ <p>Smart solutions for property income</p>
+ </div>
+ <div class="footer-section">
+ <h4>Contact</h4>
+ <p>info@homeincome.scroll.pub</p>
+ </div>
+ </div>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..08562e9
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://homeincome.scroll.pub
+metaTags
+editButton /edit.html
+title Home Income Calculator - Maximize Your Property's Rental Potential
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..04663c3
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_01Bk6EYkSUHMr1PWzqp7wihM",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "Here's a complete website for generating rental income from a single-family home:\n\n---domain---\nhomeincome.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://homeincome.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Home Income Calculator - Maximize Your Property's Rental Potential\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">HomeIncome</div>\n <div class=\"nav-links\">\n <a href=\"#calculator\">Calculator</a>\n <a href=\"#strategies\">Strategies</a>\n <a href=\"#contact\">Contact</a>\n </div>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Maximize Your Home's Income Potential</h1>\n <p>Turn your 3-bedroom house with finished basement into a profitable investment</p>\n </section>\n\n <section id=\"calculator\" class=\"calculator-section\">\n <h2>Income Calculator</h2>\n <div class=\"calculator-grid\">\n <div class=\"calculator-form\">\n <div class=\"input-group\">\n <label for=\"mainRent\">Main Floor Monthly Rent ($)</label>\n <input type=\"number\" id=\"mainRent\" placeholder=\"2500\">\n </div>\n <div class=\"input-group\">\n <label for=\"basementRent\">Basement Suite Monthly Rent ($)</label>\n <input type=\"number\" id=\"basementRent\" placeholder=\"1500\">\n </div>\n <div class=\"input-group\">\n <label for=\"expenses\">Monthly Expenses ($)</label>\n <input type=\"number\" id=\"expenses\" placeholder=\"1000\">\n </div>\n <button onclick=\"calculateIncome()\" class=\"calculate-btn\">Calculate Income</button>\n </div>\n <div class=\"results\" id=\"results\">\n <h3>Potential Monthly Income</h3>\n <div class=\"result-amount\">$0</div>\n <div class=\"result-breakdown\"></div>\n </div>\n </div>\n </section>\n\n <section id=\"strategies\" class=\"strategies-section\">\n <h2>Income Strategies</h2>\n <div class=\"strategy-cards\">\n <div class=\"strategy-card\">\n <h3>Main Floor Rental</h3>\n <p>Rent out the main floor as a family unit with 3 bedrooms and 1 bathroom</p>\n </div>\n <div class=\"strategy-card\">\n <h3>Basement Suite</h3>\n <p>Convert basement into a separate rental unit with private entrance</p>\n </div>\n <div class=\"strategy-card\">\n <h3>Room-by-Room</h3>\n <p>Rent individual rooms for maximum income potential</p>\n </div>\n </div>\n </section>\n\n <section id=\"contact\" class=\"contact-section\">\n <h2>Get Professional Advice</h2>\n <form id=\"contactForm\" class=\"contact-form\">\n <input type=\"text\" placeholder=\"Your Name\" required>\n <input type=\"email\" placeholder=\"Email Address\" required>\n <textarea placeholder=\"Your Message\" required></textarea>\n <button type=\"submit\">Send Message</button>\n </form>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>HomeIncome</h4>\n <p>Smart solutions for property income</p>\n </div>\n <div class=\"footer-section\">\n <h4>Contact</h4>\n <p>info@homeincome.scroll.pub</p>\n </div>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --accent-color: #e74c3c;\n --light-gray: #f5f6fa;\n --dark-gray: #2d3436;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--dark-gray);\n}\n\nheader {\n background: var(--primary-color);\n padding: 1rem;\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 1000;\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.logo {\n color: white;\n font-size: 1.5rem;\n font-weight: bold;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n margin-left: 2rem;\n transition: color 0.3s;\n}\n\n.nav-links a:hover {\n color: var(--secondary-color);\n}\n\nmain {\n margin-top: 4rem;\n}\n\n.hero {\n background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)),\n url('data:image/svg+xml,<svg width=\"100\" height=\"100\" viewBox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\"><rect width=\"100\" height=\"100\" fill=\"%23ffffff10\"/></svg>');\n color: white;\n text-align: center;\n padding: 4rem 1rem;\n}\n\n.hero h1 {\n font-size: 2.5rem;\n margin-bottom: 1rem;\n}\n\nsection {\n padding: 4rem 1rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.calculator-grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 2rem;\n margin-top: 2rem;\n}\n\n.input-group {\n margin-bottom: 1.5rem;\n}\n\n.input-group label {\n display: block;\n margin-bottom: 0.5rem;\n}\n\ninput, textarea {\n width: 100%;\n padding: 0.8rem;\n border: 1px solid #ddd;\n border-radius: 4px;\n font-size: 1rem;\n}\n\n.calculate-btn {\n background: var(--secondary-color);\n color: white;\n border: none;\n padding: 1rem 2rem;\n border-radius: 4px;\n cursor: pointer;\n transition: background 0.3s;\n}\n\n.calculate-btn:hover {\n background: #2980b9;\n}\n\n.results {\n background: var(--light-gray);\n padding: 2rem;\n border-radius: 8px;\n}\n\n.result-amount {\n font-size: 2.5rem;\n color: var(--secondary-color);\n margin: 1rem 0;\n}\n\n.strategy-cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin-top: 2rem;\n}\n\n.strategy-card {\n background: white;\n padding: 2rem;\n border-radius: 8px;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n transition: transform 0.3s;\n}\n\n.strategy-card:hover {\n transform: translateY(-5px);\n}\n\n.contact-form {\n max-width: 600px;\n margin: 0 auto;\n}\n\n.contact-form input,\n.contact-form textarea {\n margin-bottom: 1rem;\n}\n\n.contact-form textarea {\n height: 150px;\n}\n\n.contact-form button {\n background: var(--accent-color);\n color: white;\n border: none;\n padding: 1rem 2rem;\n border-radius: 4px;\n cursor: pointer;\n width: 100%;\n transition: background 0.3s;\n}\n\n.contact-form button:hover {\n background: #c0392b;\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n padding: 2rem 1rem;\n margin-top: 4rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 2rem;\n}\n\n@media (max-width: 768px) {\n .calculator-grid {\n grid-template-columns: 1fr;\n }\n \n .nav-links {\n display: none;\n }\n \n .hero h1 {\n font-size: 2rem;\n }\n}\n\n---script.js---\nfunction calculateIncome() {\n const mainRent = parseFloat(document.getElementById('mainRent').value) || 0;\n const basementRent = parseFloat(document.getElementById('basementRent').value) || 0;\n const expenses = parseFloat(document.getElementById('expenses').value) || 0;\n \n const totalIncome = mainRent + basementRent - expenses;\n \n const resultAmount = document.querySelector('.result-amount');\n const resultBreakdown = document.querySelector('.result-breakdown');\n \n resultAmount.textContent = `$${totalIncome.toFixed(2)}`;\n resultBreakdown.innerHTML = `\n <p>Main Floor Rent: $${mainRent.toFixed(2)}</p>\n <p>Basement Rent: $${basementRent.toFixed(2)}</p>\n <p>Expenses: -$${expenses.toFixed(2)}</p>\n `;\n \n // Animate the result\n resultAmount.style.animation = 'none';\n resultAmount.offsetHeight; // Trigger reflow\n resultAmount.style.animation = 'fadeIn 0.5s ease-in-out';\n}\n\ndocument.getElementById('contactForm').addEventListener('submit', function(e) {\n e.preventDefault();\n alert('Thank you for your message! We will get back to you soon.');\n this.reset();\n});\n\n// Add smooth scrolling for navigation links\ndocument.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n document.querySelector(this.getAttribute('href')).scrollIntoView({\n behavior: 'smooth'\n });\n });\n});\n\n// Add scroll animation for strategy cards\nconst observerOptions = {\n threshold: 0.1,\n rootMargin: '0px 0px -50px 0px'\n};\n\nconst observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.style.opacity = '1';\n entry.target.style.transform = 'translateY(0)';\n }\n });\n}, observerOptions);\n\ndocument.querySelectorAll('.strategy-card').forEach(card => {\n card.style.opacity = '0';\n card.style.transform = 'translateY(20px)';\n card.style.transition = 'opacity 0.5s ease-in-out, transform 0.5s ease-in-out';\n observer.observe(card);\n});\n\n---end---"
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 292,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2998
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..861157d
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# homeincome.scroll.pub
+Website generated by Claude from prompt: create we website that help generate income in single family home with three bed room and two bathroom with fully finish basement
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..eb0620c
--- /dev/null
+++ b/script.js
@@ -0,0 +1,60 @@
+function calculateIncome() {
+ const mainRent = parseFloat(document.getElementById('mainRent').value) || 0;
+ const basementRent = parseFloat(document.getElementById('basementRent').value) || 0;
+ const expenses = parseFloat(document.getElementById('expenses').value) || 0;
+
+ const totalIncome = mainRent + basementRent - expenses;
+
+ const resultAmount = document.querySelector('.result-amount');
+ const resultBreakdown = document.querySelector('.result-breakdown');
+
+ resultAmount.textContent = `$${totalIncome.toFixed(2)}`;
+ resultBreakdown.innerHTML = `
+ <p>Main Floor Rent: $${mainRent.toFixed(2)}</p>
+ <p>Basement Rent: $${basementRent.toFixed(2)}</p>
+ <p>Expenses: -$${expenses.toFixed(2)}</p>
+ `;
+
+ // Animate the result
+ resultAmount.style.animation = 'none';
+ resultAmount.offsetHeight; // Trigger reflow
+ resultAmount.style.animation = 'fadeIn 0.5s ease-in-out';
+}
+
+document.getElementById('contactForm').addEventListener('submit', function(e) {
+ e.preventDefault();
+ alert('Thank you for your message! We will get back to you soon.');
+ this.reset();
+});
+
+// Add smooth scrolling for navigation links
+document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ });
+});
+
+// Add scroll animation for strategy cards
+const observerOptions = {
+ threshold: 0.1,
+ rootMargin: '0px 0px -50px 0px'
+};
+
+const observer = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.style.opacity = '1';
+ entry.target.style.transform = 'translateY(0)';
+ }
+ });
+}, observerOptions);
+
+document.querySelectorAll('.strategy-card').forEach(card => {
+ card.style.opacity = '0';
+ card.style.transform = 'translateY(20px)';
+ card.style.transition = 'opacity 0.5s ease-in-out, transform 0.5s ease-in-out';
+ observer.observe(card);
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..3fc2fe7
--- /dev/null
+++ b/style.css
@@ -0,0 +1,203 @@
+:root {
+ --primary-color: #2c3e50;
+ --secondary-color: #3498db;
+ --accent-color: #e74c3c;
+ --light-gray: #f5f6fa;
+ --dark-gray: #2d3436;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--dark-gray);
+}
+
+header {
+ background: var(--primary-color);
+ padding: 1rem;
+ position: fixed;
+ width: 100%;
+ top: 0;
+ z-index: 1000;
+}
+
+nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.logo {
+ color: white;
+ font-size: 1.5rem;
+ font-weight: bold;
+}
+
+.nav-links a {
+ color: white;
+ text-decoration: none;
+ margin-left: 2rem;
+ transition: color 0.3s;
+}
+
+.nav-links a:hover {
+ color: var(--secondary-color);
+}
+
+main {
+ margin-top: 4rem;
+}
+
+.hero {
+ background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)),
+ url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%23ffffff10"/></svg>');
+ color: white;
+ text-align: center;
+ padding: 4rem 1rem;
+}
+
+.hero h1 {
+ font-size: 2.5rem;
+ margin-bottom: 1rem;
+}
+
+section {
+ padding: 4rem 1rem;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.calculator-grid {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 2rem;
+ margin-top: 2rem;
+}
+
+.input-group {
+ margin-bottom: 1.5rem;
+}
+
+.input-group label {
+ display: block;
+ margin-bottom: 0.5rem;
+}
+
+input, textarea {
+ width: 100%;
+ padding: 0.8rem;
+ border: 1px solid #ddd;
+ border-radius: 4px;
+ font-size: 1rem;
+}
+
+.calculate-btn {
+ background: var(--secondary-color);
+ color: white;
+ border: none;
+ padding: 1rem 2rem;
+ border-radius: 4px;
+ cursor: pointer;
+ transition: background 0.3s;
+}
+
+.calculate-btn:hover {
+ background: #2980b9;
+}
+
+.results {
+ background: var(--light-gray);
+ padding: 2rem;
+ border-radius: 8px;
+}
+
+.result-amount {
+ font-size: 2.5rem;
+ color: var(--secondary-color);
+ margin: 1rem 0;
+}
+
+.strategy-cards {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ margin-top: 2rem;
+}
+
+.strategy-card {
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+ transition: transform 0.3s;
+}
+
+.strategy-card:hover {
+ transform: translateY(-5px);
+}
+
+.contact-form {
+ max-width: 600px;
+ margin: 0 auto;
+}
+
+.contact-form input,
+.contact-form textarea {
+ margin-bottom: 1rem;
+}
+
+.contact-form textarea {
+ height: 150px;
+}
+
+.contact-form button {
+ background: var(--accent-color);
+ color: white;
+ border: none;
+ padding: 1rem 2rem;
+ border-radius: 4px;
+ cursor: pointer;
+ width: 100%;
+ transition: background 0.3s;
+}
+
+.contact-form button:hover {
+ background: #c0392b;
+}
+
+footer {
+ background: var(--primary-color);
+ color: white;
+ padding: 2rem 1rem;
+ margin-top: 4rem;
+}
+
+.footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
+ gap: 2rem;
+}
+
+@media (max-width: 768px) {
+ .calculator-grid {
+ grid-template-columns: 1fr;
+ }
+
+ .nav-links {
+ display: none;
+ }
+
+ .hero h1 {
+ font-size: 2rem;
+ }
+}