commit 1e04925b2ef611137763bb5de8f84f291a3ce9d4
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 03:46:01 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..e646d97
--- /dev/null
+++ b/body.html
@@ -0,0 +1,95 @@
+<header>
+ <nav>
+ <ul>
+ <li><a href="#calculator">Decision Calculator</a></li>
+ <li><a href="#comparison">City Comparison</a></li>
+ <li><a href="#resources">Resources</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section class="hero">
+ <h1>SF to Hyderabad</h1>
+ <p>Make an informed decision about your engineering career move</p>
+ </section>
+
+ <section id="calculator" class="calculator-section">
+ <h2>Decision Calculator</h2>
+ <div class="calculator">
+ <div class="factors">
+ <h3>Rate These Factors (1-10)</h3>
+ <div class="factor-input">
+ <label for="salary">Salary Importance:</label>
+ <input type="range" id="salary" min="1" max="10" value="5">
+ <span class="value">5</span>
+ </div>
+ <div class="factor-input">
+ <label for="family">Family Proximity:</label>
+ <input type="range" id="family" min="1" max="10" value="5">
+ <span class="value">5</span>
+ </div>
+ <div class="factor-input">
+ <label for="career">Career Growth:</label>
+ <input type="range" id="career" min="1" max="10" value="5">
+ <span class="value">5</span>
+ </div>
+ <div class="factor-input">
+ <label for="lifestyle">Lifestyle Quality:</label>
+ <input type="range" id="lifestyle" min="1" max="10" value="5">
+ <span class="value">5</span>
+ </div>
+ <button id="calculate">Calculate Decision</button>
+ </div>
+ <div id="result" class="result"></div>
+ </div>
+ </section>
+
+ <section id="comparison" class="comparison-section">
+ <h2>City Comparison</h2>
+ <div class="comparison-grid">
+ <div class="city sf">
+ <h3>San Francisco</h3>
+ <ul>
+ <li>Higher salaries</li>
+ <li>Tech hub opportunities</li>
+ <li>Cultural diversity</li>
+ <li>High cost of living</li>
+ <li>Distance from family</li>
+ </ul>
+ </div>
+ <div class="city hyd">
+ <h3>Hyderabad</h3>
+ <ul>
+ <li>Growing tech scene</li>
+ <li>Lower cost of living</li>
+ <li>Family proximity</li>
+ <li>Cultural familiarity</li>
+ <li>Work-life balance</li>
+ </ul>
+ </div>
+ </div>
+ </section>
+
+ <section id="resources" class="resources-section">
+ <h2>Additional Resources</h2>
+ <div class="resources-grid">
+ <article class="resource-card">
+ <h3>Visa Information</h3>
+ <p>Understanding your visa status and implications</p>
+ </article>
+ <article class="resource-card">
+ <h3>Job Market</h3>
+ <p>Current tech job market analysis in both cities</p>
+ </article>
+ <article class="resource-card">
+ <h3>Living Costs</h3>
+ <p>Detailed cost of living comparison</p>
+ </article>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <p>Built to help engineers make informed decisions about their future</p>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..2bd2c6a
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://sf2hyd.scroll.pub
+metaTags
+editButton /edit.html
+title SF to Hyderabad - Engineering Career Decision Helper
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..47d2005
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_01BEKemfoeWyMsmUa13NgwER",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a website to help make this important life decision. Here's a suitable domain name and complete implementation:\n\n---domain---\nsf2hyd.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://sf2hyd.scroll.pub\nmetaTags\neditButton /edit.html\ntitle SF to Hyderabad - Engineering Career Decision Helper\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <ul>\n <li><a href=\"#calculator\">Decision Calculator</a></li>\n <li><a href=\"#comparison\">City Comparison</a></li>\n <li><a href=\"#resources\">Resources</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>SF to Hyderabad</h1>\n <p>Make an informed decision about your engineering career move</p>\n </section>\n\n <section id=\"calculator\" class=\"calculator-section\">\n <h2>Decision Calculator</h2>\n <div class=\"calculator\">\n <div class=\"factors\">\n <h3>Rate These Factors (1-10)</h3>\n <div class=\"factor-input\">\n <label for=\"salary\">Salary Importance:</label>\n <input type=\"range\" id=\"salary\" min=\"1\" max=\"10\" value=\"5\">\n <span class=\"value\">5</span>\n </div>\n <div class=\"factor-input\">\n <label for=\"family\">Family Proximity:</label>\n <input type=\"range\" id=\"family\" min=\"1\" max=\"10\" value=\"5\">\n <span class=\"value\">5</span>\n </div>\n <div class=\"factor-input\">\n <label for=\"career\">Career Growth:</label>\n <input type=\"range\" id=\"career\" min=\"1\" max=\"10\" value=\"5\">\n <span class=\"value\">5</span>\n </div>\n <div class=\"factor-input\">\n <label for=\"lifestyle\">Lifestyle Quality:</label>\n <input type=\"range\" id=\"lifestyle\" min=\"1\" max=\"10\" value=\"5\">\n <span class=\"value\">5</span>\n </div>\n <button id=\"calculate\">Calculate Decision</button>\n </div>\n <div id=\"result\" class=\"result\"></div>\n </div>\n </section>\n\n <section id=\"comparison\" class=\"comparison-section\">\n <h2>City Comparison</h2>\n <div class=\"comparison-grid\">\n <div class=\"city sf\">\n <h3>San Francisco</h3>\n <ul>\n <li>Higher salaries</li>\n <li>Tech hub opportunities</li>\n <li>Cultural diversity</li>\n <li>High cost of living</li>\n <li>Distance from family</li>\n </ul>\n </div>\n <div class=\"city hyd\">\n <h3>Hyderabad</h3>\n <ul>\n <li>Growing tech scene</li>\n <li>Lower cost of living</li>\n <li>Family proximity</li>\n <li>Cultural familiarity</li>\n <li>Work-life balance</li>\n </ul>\n </div>\n </div>\n </section>\n\n <section id=\"resources\" class=\"resources-section\">\n <h2>Additional Resources</h2>\n <div class=\"resources-grid\">\n <article class=\"resource-card\">\n <h3>Visa Information</h3>\n <p>Understanding your visa status and implications</p>\n </article>\n <article class=\"resource-card\">\n <h3>Job Market</h3>\n <p>Current tech job market analysis in both cities</p>\n </article>\n <article class=\"resource-card\">\n <h3>Living Costs</h3>\n <p>Detailed cost of living comparison</p>\n </article>\n </div>\n </section>\n</main>\n\n<footer>\n <p>Built to help engineers make informed decisions about their future</p>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2d3436;\n --accent-color: #0984e3;\n --background-color: #f5f6fa;\n --text-color: #2d3436;\n --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background: var(--background-color);\n}\n\nheader {\n background: var(--primary-color);\n padding: 1rem;\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 100;\n}\n\nnav ul {\n display: flex;\n justify-content: center;\n gap: 2rem;\n list-style: none;\n}\n\nnav a {\n color: white;\n text-decoration: none;\n font-weight: 500;\n transition: color 0.3s;\n}\n\nnav a:hover {\n color: var(--accent-color);\n}\n\nmain {\n margin-top: 4rem;\n}\n\n.hero {\n background: linear-gradient(135deg, var(--primary-color), var(--accent-color));\n color: white;\n text-align: center;\n padding: 4rem 2rem;\n margin-bottom: 2rem;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n}\n\nsection {\n padding: 4rem 2rem;\n}\n\nh2 {\n text-align: center;\n margin-bottom: 2rem;\n color: var(--primary-color);\n}\n\n.calculator {\n max-width: 800px;\n margin: 0 auto;\n background: white;\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n}\n\n.factor-input {\n display: flex;\n align-items: center;\n margin-bottom: 1.5rem;\n gap: 1rem;\n}\n\n.factor-input label {\n flex: 1;\n font-weight: 500;\n}\n\n.factor-input input {\n flex: 2;\n}\n\nbutton {\n background: var(--accent-color);\n color: white;\n border: none;\n padding: 1rem 2rem;\n border-radius: 4px;\n cursor: pointer;\n font-weight: 500;\n transition: transform 0.2s;\n width: 100%;\n margin-top: 1rem;\n}\n\nbutton:hover {\n transform: translateY(-2px);\n}\n\n.result {\n margin-top: 2rem;\n padding: 1rem;\n border-radius: 4px;\n text-align: center;\n font-weight: 500;\n}\n\n.comparison-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.city {\n background: white;\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n}\n\n.city h3 {\n margin-bottom: 1rem;\n color: var(--accent-color);\n}\n\n.city ul {\n list-style-position: inside;\n}\n\n.resources-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.resource-card {\n background: white;\n padding: 2rem;\n border-radius: 8px;\n box-shadow: var(--card-shadow);\n transition: transform 0.3s;\n}\n\n.resource-card:hover {\n transform: translateY(-5px);\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n text-align: center;\n padding: 2rem;\n margin-top: 4rem;\n}\n\n@media (max-width: 768px) {\n nav ul {\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n }\n\n .hero h1 {\n font-size: 2rem;\n }\n\n section {\n padding: 2rem 1rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const rangeInputs = document.querySelectorAll('input[type=\"range\"]');\n const calculateBtn = document.getElementById('calculate');\n const resultDiv = document.getElementById('result');\n\n // Update range input values\n rangeInputs.forEach(input => {\n input.addEventListener('input', (e) => {\n e.target.nextElementSibling.textContent = e.target.value;\n });\n });\n\n // Calculate decision\n calculateBtn.addEventListener('click', () => {\n const salary = parseInt(document.getElementById('salary').value);\n const family = parseInt(document.getElementById('family').value);\n const career = parseInt(document.getElementById('career').value);\n const lifestyle = parseInt(document.getElementById('lifestyle').value);\n\n // Calculate weighted score\n const sfScore = (salary * 0.9 + family * 0.3 + career * 0.8 + lifestyle * 0.6) / 2.6;\n const hydScore = (salary * 0.5 + family * 0.9 + career * 0.6 + lifestyle * 0.8) / 2.8;\n\n let decision = '';\n let color = '';\n\n if (Math.abs(sfScore - hydScore) < 1) {\n decision = \"This is a close call! Consider making a pros and cons list specific to your situation.\";\n color = \"#ffa502\";\n } else if (sfScore > hydScore) {\n decision = \"Based on your priorities, staying in San Francisco might be better for you.\";\n color = \"#2ed573\";\n } else {\n decision = \"Based on your priorities, moving to Hyderabad might be better for you.\";\n color = \"#2ed573\";\n }\n\n resultDiv.style.backgroundColor = color;\n resultDiv.style.color = color === \"#ffa502\" ? \"#000\" : \"#fff\";\n resultDiv.innerHTML = `\n <p>${decision}</p>\n <small>SF Score: ${sfScore.toFixed(1)} | Hyderabad Score: ${hydScore.toFixed(1)}</small>\n `;\n });\n\n // Smooth scrolling for navigation\n document.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\n---end---\n\nThis implementation creates a beautiful, interactive website that helps users make an informed decision about moving from San Francisco to Hyderabad. It features:\n\n1. A decision calculator with weighted factors\n2. Side-by-side city comparison\n3. Additional resources section\n4. Mobile-responsive design\n5. Smooth scrolling navigation\n6. Modern gradient hero section\n7. Clean card-based layout\n8. Interactive hover effects\n9. Accessible form controls\n10. Professional color scheme\n\nThe domain name \"sf2hyd\" is short, memorable, and clearly communicates the purpose of the website (SF to Hyderabad)."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 322,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 3042
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..f5af070
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# sf2hyd.scroll.pub
+Website generated by Claude from prompt: I want a website that helps me decide if i should leave san francisco and go back to India to work as an engineer in hyderabad. I need to understand the pros and cons and a caluclated decision on whther i should leave or not
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..dccbfa6
--- /dev/null
+++ b/script.js
@@ -0,0 +1,55 @@
+document.addEventListener('DOMContentLoaded', () => {
+ const rangeInputs = document.querySelectorAll('input[type="range"]');
+ const calculateBtn = document.getElementById('calculate');
+ const resultDiv = document.getElementById('result');
+
+ // Update range input values
+ rangeInputs.forEach(input => {
+ input.addEventListener('input', (e) => {
+ e.target.nextElementSibling.textContent = e.target.value;
+ });
+ });
+
+ // Calculate decision
+ calculateBtn.addEventListener('click', () => {
+ const salary = parseInt(document.getElementById('salary').value);
+ const family = parseInt(document.getElementById('family').value);
+ const career = parseInt(document.getElementById('career').value);
+ const lifestyle = parseInt(document.getElementById('lifestyle').value);
+
+ // Calculate weighted score
+ const sfScore = (salary * 0.9 + family * 0.3 + career * 0.8 + lifestyle * 0.6) / 2.6;
+ const hydScore = (salary * 0.5 + family * 0.9 + career * 0.6 + lifestyle * 0.8) / 2.8;
+
+ let decision = '';
+ let color = '';
+
+ if (Math.abs(sfScore - hydScore) < 1) {
+ decision = "This is a close call! Consider making a pros and cons list specific to your situation.";
+ color = "#ffa502";
+ } else if (sfScore > hydScore) {
+ decision = "Based on your priorities, staying in San Francisco might be better for you.";
+ color = "#2ed573";
+ } else {
+ decision = "Based on your priorities, moving to Hyderabad might be better for you.";
+ color = "#2ed573";
+ }
+
+ resultDiv.style.backgroundColor = color;
+ resultDiv.style.color = color === "#ffa502" ? "#000" : "#fff";
+ resultDiv.innerHTML = `
+ <p>${decision}</p>
+ <small>SF Score: ${sfScore.toFixed(1)} | Hyderabad Score: ${hydScore.toFixed(1)}</small>
+ `;
+ });
+
+ // Smooth scrolling for navigation
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ });
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..3da5a9d
--- /dev/null
+++ b/style.css
@@ -0,0 +1,192 @@
+:root {
+ --primary-color: #2d3436;
+ --accent-color: #0984e3;
+ --background-color: #f5f6fa;
+ --text-color: #2d3436;
+ --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background: var(--background-color);
+}
+
+header {
+ background: var(--primary-color);
+ padding: 1rem;
+ position: fixed;
+ width: 100%;
+ top: 0;
+ z-index: 100;
+}
+
+nav ul {
+ display: flex;
+ justify-content: center;
+ gap: 2rem;
+ list-style: none;
+}
+
+nav a {
+ color: white;
+ text-decoration: none;
+ font-weight: 500;
+ transition: color 0.3s;
+}
+
+nav a:hover {
+ color: var(--accent-color);
+}
+
+main {
+ margin-top: 4rem;
+}
+
+.hero {
+ background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
+ color: white;
+ text-align: center;
+ padding: 4rem 2rem;
+ margin-bottom: 2rem;
+}
+
+.hero h1 {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+}
+
+section {
+ padding: 4rem 2rem;
+}
+
+h2 {
+ text-align: center;
+ margin-bottom: 2rem;
+ color: var(--primary-color);
+}
+
+.calculator {
+ max-width: 800px;
+ margin: 0 auto;
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+}
+
+.factor-input {
+ display: flex;
+ align-items: center;
+ margin-bottom: 1.5rem;
+ gap: 1rem;
+}
+
+.factor-input label {
+ flex: 1;
+ font-weight: 500;
+}
+
+.factor-input input {
+ flex: 2;
+}
+
+button {
+ background: var(--accent-color);
+ color: white;
+ border: none;
+ padding: 1rem 2rem;
+ border-radius: 4px;
+ cursor: pointer;
+ font-weight: 500;
+ transition: transform 0.2s;
+ width: 100%;
+ margin-top: 1rem;
+}
+
+button:hover {
+ transform: translateY(-2px);
+}
+
+.result {
+ margin-top: 2rem;
+ padding: 1rem;
+ border-radius: 4px;
+ text-align: center;
+ font-weight: 500;
+}
+
+.comparison-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.city {
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+}
+
+.city h3 {
+ margin-bottom: 1rem;
+ color: var(--accent-color);
+}
+
+.city ul {
+ list-style-position: inside;
+}
+
+.resources-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.resource-card {
+ background: white;
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: var(--card-shadow);
+ transition: transform 0.3s;
+}
+
+.resource-card:hover {
+ transform: translateY(-5px);
+}
+
+footer {
+ background: var(--primary-color);
+ color: white;
+ text-align: center;
+ padding: 2rem;
+ margin-top: 4rem;
+}
+
+@media (max-width: 768px) {
+ nav ul {
+ flex-direction: column;
+ align-items: center;
+ gap: 1rem;
+ }
+
+ .hero h1 {
+ font-size: 2rem;
+ }
+
+ section {
+ padding: 2rem 1rem;
+ }
+}