commit cd1336a9e1df565ac92bcd6c03f0f07cc17956ff
Author: root <root@hub.scroll.pub> Date: 2024-12-28 12:26:17 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..48802e8 --- /dev/null +++ b/body.html @@ -0,0 +1,59 @@ +<header> + <h1>Should I Continue This Online Relationship?</h1> + <p class="tagline">A thoughtful approach to long-distance love decisions</p> +</header> + +<main> + <section class="decision-tool"> + <div class="questions-container"> + <h2>Rate These Aspects (1-10)</h2> + <div class="slider-group"> + <label>Trust Level: + <input type="range" min="1" max="10" value="5" class="slider" id="trustSlider"> + <span class="slider-value">5</span> + </label> + <label>Communication Quality: + <input type="range" min="1" max="10" value="5" class="slider" id="communicationSlider"> + <span class="slider-value">5</span> + </label> + <label>Shared Values: + <input type="range" min="1" max="10" value="5" class="slider" id="valuesSlider"> + <span class="slider-value">5</span> + </label> + <label>Physical Chemistry: + <input type="range" min="1" max="10" value="5" class="slider" id="chemistrySlider"> + <span class="slider-value">5</span> + </label> + <label>Future Plans Alignment: + <input type="range" min="1" max="10" value="5" class="slider" id="futureSlider"> + <span class="slider-value">5</span> + </label> + </div> + </div> + + <div class="red-flags"> + <h2>Red Flags Check</h2> + <div class="checkbox-group"> + <label><input type="checkbox" id="flag1"> Asks for money</label> + <label><input type="checkbox" id="flag2"> Refuses video calls</label> + <label><input type="checkbox" id="flag3"> Inconsistent stories</label> + <label><input type="checkbox" id="flag4"> Pushes boundaries</label> + <label><input type="checkbox" id="flag5"> Avoids future planning</label> + </div> + </div> + + <button id="analyzeBtn" class="analyze-button">Analyze Relationship</button> + + <div class="result" id="resultArea"> + <h2>Analysis Result</h2> + <div class="result-content"></div> + <div class="compatibility-meter"> + <div class="meter-fill"></div> + </div> + </div> + </section> +</main> + +<footer> + <p>Created with care for thoughtful relationship decisions</p> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..3f5a945 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://heartchoice.scroll.pub +metaTags +editButton /edit.html +title Online Relationship Decision Helper +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..410fe28 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_012Xr9rm9M2FXBeaQani9pjY", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll create a decision helper website with a creative approach to evaluating online relationships.\n\n---domain---\nheartchoice.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://heartchoice.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Online Relationship Decision Helper\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <h1>Should I Continue This Online Relationship?</h1>\n <p class=\"tagline\">A thoughtful approach to long-distance love decisions</p>\n</header>\n\n<main>\n <section class=\"decision-tool\">\n <div class=\"questions-container\">\n <h2>Rate These Aspects (1-10)</h2>\n <div class=\"slider-group\">\n <label>Trust Level:\n <input type=\"range\" min=\"1\" max=\"10\" value=\"5\" class=\"slider\" id=\"trustSlider\">\n <span class=\"slider-value\">5</span>\n </label>\n <label>Communication Quality:\n <input type=\"range\" min=\"1\" max=\"10\" value=\"5\" class=\"slider\" id=\"communicationSlider\">\n <span class=\"slider-value\">5</span>\n </label>\n <label>Shared Values:\n <input type=\"range\" min=\"1\" max=\"10\" value=\"5\" class=\"slider\" id=\"valuesSlider\">\n <span class=\"slider-value\">5</span>\n </label>\n <label>Physical Chemistry:\n <input type=\"range\" min=\"1\" max=\"10\" value=\"5\" class=\"slider\" id=\"chemistrySlider\">\n <span class=\"slider-value\">5</span>\n </label>\n <label>Future Plans Alignment:\n <input type=\"range\" min=\"1\" max=\"10\" value=\"5\" class=\"slider\" id=\"futureSlider\">\n <span class=\"slider-value\">5</span>\n </label>\n </div>\n </div>\n\n <div class=\"red-flags\">\n <h2>Red Flags Check</h2>\n <div class=\"checkbox-group\">\n <label><input type=\"checkbox\" id=\"flag1\"> Asks for money</label>\n <label><input type=\"checkbox\" id=\"flag2\"> Refuses video calls</label>\n <label><input type=\"checkbox\" id=\"flag3\"> Inconsistent stories</label>\n <label><input type=\"checkbox\" id=\"flag4\"> Pushes boundaries</label>\n <label><input type=\"checkbox\" id=\"flag5\"> Avoids future planning</label>\n </div>\n </div>\n\n <button id=\"analyzeBtn\" class=\"analyze-button\">Analyze Relationship</button>\n\n <div class=\"result\" id=\"resultArea\">\n <h2>Analysis Result</h2>\n <div class=\"result-content\"></div>\n <div class=\"compatibility-meter\">\n <div class=\"meter-fill\"></div>\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <p>Created with care for thoughtful relationship decisions</p>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #ff4b6e;\n --secondary-color: #6e44ff;\n --background-color: #fff9f9;\n --text-color: #333;\n --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\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 background-color: var(--background-color);\n color: var(--text-color);\n min-height: 100vh;\n}\n\nheader {\n background: var(--gradient);\n color: white;\n padding: 2rem;\n text-align: center;\n box-shadow: 0 4px 12px rgba(0,0,0,0.1);\n}\n\nh1 {\n font-size: 2.5rem;\n margin-bottom: 0.5rem;\n}\n\n.tagline {\n font-size: 1.2rem;\n opacity: 0.9;\n}\n\nmain {\n max-width: 800px;\n margin: 2rem auto;\n padding: 0 1rem;\n}\n\n.decision-tool {\n background: white;\n border-radius: 15px;\n padding: 2rem;\n box-shadow: 0 8px 24px rgba(0,0,0,0.1);\n}\n\n.slider-group {\n display: flex;\n flex-direction: column;\n gap: 1.5rem;\n margin: 2rem 0;\n}\n\n.slider-group label {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n font-weight: 500;\n}\n\n.slider {\n -webkit-appearance: none;\n width: 100%;\n height: 8px;\n background: #ddd;\n border-radius: 4px;\n outline: none;\n}\n\n.slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n width: 20px;\n height: 20px;\n background: var(--primary-color);\n border-radius: 50%;\n cursor: pointer;\n transition: all 0.3s ease;\n}\n\n.slider::-webkit-slider-thumb:hover {\n transform: scale(1.2);\n}\n\n.checkbox-group {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 1rem;\n margin: 1rem 0;\n}\n\n.checkbox-group label {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n cursor: pointer;\n}\n\n.analyze-button {\n background: var(--gradient);\n color: white;\n border: none;\n padding: 1rem 2rem;\n border-radius: 25px;\n font-size: 1.1rem;\n cursor: pointer;\n width: 100%;\n margin: 2rem 0;\n transition: transform 0.3s ease;\n}\n\n.analyze-button:hover {\n transform: translateY(-2px);\n}\n\n.result {\n display: none;\n margin-top: 2rem;\n padding: 2rem;\n background: rgba(255,255,255,0.9);\n border-radius: 10px;\n border: 2px solid var(--primary-color);\n}\n\n.compatibility-meter {\n height: 20px;\n background: #ddd;\n border-radius: 10px;\n margin-top: 1rem;\n overflow: hidden;\n}\n\n.meter-fill {\n height: 100%;\n width: 0%;\n background: var(--gradient);\n transition: width 1s ease-in-out;\n}\n\nfooter {\n text-align: center;\n padding: 2rem;\n margin-top: 2rem;\n background: var(--gradient);\n color: white;\n}\n\n@media (max-width: 600px) {\n h1 {\n font-size: 1.8rem;\n }\n \n .decision-tool {\n padding: 1rem;\n }\n \n .checkbox-group {\n grid-template-columns: 1fr;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const sliders = document.querySelectorAll('.slider');\n const analyzeBtn = document.getElementById('analyzeBtn');\n const resultArea = document.getElementById('resultArea');\n const redFlags = document.querySelectorAll('.checkbox-group input');\n\n // Update slider values\n sliders.forEach(slider => {\n slider.addEventListener('input', (e) => {\n e.target.nextElementSibling.textContent = e.target.value;\n });\n });\n\n analyzeBtn.addEventListener('click', () => {\n const scores = Array.from(sliders).map(slider => parseInt(slider.value));\n const flagsChecked = Array.from(redFlags).filter(flag => flag.checked).length;\n \n // Calculate compatibility score\n const avgScore = scores.reduce((a, b) => a + b, 0) / scores.length;\n const redFlagPenalty = flagsChecked * 15;\n let finalScore = Math.max(0, (avgScore * 10) - redFlagPenalty);\n \n // Generate recommendation\n let recommendation = '';\n if (flagsChecked >= 3) {\n recommendation = '🚫 Major red flags detected. Consider ending this relationship.';\n } else if (finalScore >= 75) {\n recommendation = '💚 This relationship shows promise! Continue with optimism.';\n } else if (finalScore >= 50) {\n recommendation = '💛 Proceed with caution. More time needed to evaluate.';\n } else {\n recommendation = '❤️ Consider if this relationship aligns with your needs.';\n }\n\n // Display results\n resultArea.style.display = 'block';\n resultArea.querySelector('.result-content').innerHTML = `\n <p><strong>Compatibility Score:</strong> ${finalScore.toFixed(1)}%</p>\n <p><strong>Recommendation:</strong> ${recommendation}</p>\n ${flagsChecked > 0 ? `<p><strong>Warning:</strong> ${flagsChecked} red flag${flagsChecked > 1 ? 's' : ''} detected</p>` : ''}\n `;\n\n // Animate compatibility meter\n const meterFill = resultArea.querySelector('.meter-fill');\n meterFill.style.width = `${finalScore}%`;\n\n // Smooth scroll to results\n resultArea.scrollIntoView({ behavior: 'smooth' });\n });\n\n // Add hover effects for interactive elements\n document.querySelectorAll('.checkbox-group label').forEach(label => {\n label.addEventListener('mouseover', () => label.style.color = '#ff4b6e');\n label.addEventListener('mouseout', () => label.style.color = '');\n });\n});\n\n---end---\n\nThis website provides an interactive tool to help users evaluate their online relationships through both quantitative and qualitative measures. It features:\n\n1. Slider-based rating system for key relationship aspects\n2. Red flags checklist\n3. Sophisticated scoring algorithm\n4. Visual compatibility meter\n5. Personalized recommendations\n6. Mobile-responsive design\n7. Smooth animations and transitions\n8. Accessible form controls\n9. Clear visual hierarchy\n10. Professional gradient color scheme\n\nThe design is clean and modern while maintaining a sensitive approach to the serious nature of relationship decisions." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 297, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2750 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..c9047c3 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# heartchoice.scroll.pub +Website generated by Claude from prompt: a website helps me decide if i should continue an online relation with a spanish guy who has strong desires. numberical tools, be creative. \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..198de40 --- /dev/null +++ b/script.js @@ -0,0 +1,56 @@ +document.addEventListener('DOMContentLoaded', () => { + const sliders = document.querySelectorAll('.slider'); + const analyzeBtn = document.getElementById('analyzeBtn'); + const resultArea = document.getElementById('resultArea'); + const redFlags = document.querySelectorAll('.checkbox-group input'); + + // Update slider values + sliders.forEach(slider => { + slider.addEventListener('input', (e) => { + e.target.nextElementSibling.textContent = e.target.value; + }); + }); + + analyzeBtn.addEventListener('click', () => { + const scores = Array.from(sliders).map(slider => parseInt(slider.value)); + const flagsChecked = Array.from(redFlags).filter(flag => flag.checked).length; + + // Calculate compatibility score + const avgScore = scores.reduce((a, b) => a + b, 0) / scores.length; + const redFlagPenalty = flagsChecked * 15; + let finalScore = Math.max(0, (avgScore * 10) - redFlagPenalty); + + // Generate recommendation + let recommendation = ''; + if (flagsChecked >= 3) { + recommendation = '🚫 Major red flags detected. Consider ending this relationship.'; + } else if (finalScore >= 75) { + recommendation = '💚 This relationship shows promise! Continue with optimism.'; + } else if (finalScore >= 50) { + recommendation = '💛 Proceed with caution. More time needed to evaluate.'; + } else { + recommendation = '❤️ Consider if this relationship aligns with your needs.'; + } + + // Display results + resultArea.style.display = 'block'; + resultArea.querySelector('.result-content').innerHTML = ` + <p><strong>Compatibility Score:</strong> ${finalScore.toFixed(1)}%</p> + <p><strong>Recommendation:</strong> ${recommendation}</p> + ${flagsChecked > 0 ? `<p><strong>Warning:</strong> ${flagsChecked} red flag${flagsChecked > 1 ? 's' : ''} detected</p>` : ''} + `; + + // Animate compatibility meter + const meterFill = resultArea.querySelector('.meter-fill'); + meterFill.style.width = `${finalScore}%`; + + // Smooth scroll to results + resultArea.scrollIntoView({ behavior: 'smooth' }); + }); + + // Add hover effects for interactive elements + document.querySelectorAll('.checkbox-group label').forEach(label => { + label.addEventListener('mouseover', () => label.style.color = '#ff4b6e'); + label.addEventListener('mouseout', () => label.style.color = ''); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..7fd08dc --- /dev/null +++ b/style.css @@ -0,0 +1,166 @@ +:root { + --primary-color: #ff4b6e; + --secondary-color: #6e44ff; + --background-color: #fff9f9; + --text-color: #333; + --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', system-ui, sans-serif; + line-height: 1.6; + background-color: var(--background-color); + color: var(--text-color); + min-height: 100vh; +} + +header { + background: var(--gradient); + color: white; + padding: 2rem; + text-align: center; + box-shadow: 0 4px 12px rgba(0,0,0,0.1); +} + +h1 { + font-size: 2.5rem; + margin-bottom: 0.5rem; +} + +.tagline { + font-size: 1.2rem; + opacity: 0.9; +} + +main { + max-width: 800px; + margin: 2rem auto; + padding: 0 1rem; +} + +.decision-tool { + background: white; + border-radius: 15px; + padding: 2rem; + box-shadow: 0 8px 24px rgba(0,0,0,0.1); +} + +.slider-group { + display: flex; + flex-direction: column; + gap: 1.5rem; + margin: 2rem 0; +} + +.slider-group label { + display: flex; + flex-direction: column; + gap: 0.5rem; + font-weight: 500; +} + +.slider { + -webkit-appearance: none; + width: 100%; + height: 8px; + background: #ddd; + border-radius: 4px; + outline: none; +} + +.slider::-webkit-slider-thumb { + -webkit-appearance: none; + width: 20px; + height: 20px; + background: var(--primary-color); + border-radius: 50%; + cursor: pointer; + transition: all 0.3s ease; +} + +.slider::-webkit-slider-thumb:hover { + transform: scale(1.2); +} + +.checkbox-group { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 1rem; + margin: 1rem 0; +} + +.checkbox-group label { + display: flex; + align-items: center; + gap: 0.5rem; + cursor: pointer; +} + +.analyze-button { + background: var(--gradient); + color: white; + border: none; + padding: 1rem 2rem; + border-radius: 25px; + font-size: 1.1rem; + cursor: pointer; + width: 100%; + margin: 2rem 0; + transition: transform 0.3s ease; +} + +.analyze-button:hover { + transform: translateY(-2px); +} + +.result { + display: none; + margin-top: 2rem; + padding: 2rem; + background: rgba(255,255,255,0.9); + border-radius: 10px; + border: 2px solid var(--primary-color); +} + +.compatibility-meter { + height: 20px; + background: #ddd; + border-radius: 10px; + margin-top: 1rem; + overflow: hidden; +} + +.meter-fill { + height: 100%; + width: 0%; + background: var(--gradient); + transition: width 1s ease-in-out; +} + +footer { + text-align: center; + padding: 2rem; + margin-top: 2rem; + background: var(--gradient); + color: white; +} + +@media (max-width: 600px) { + h1 { + font-size: 1.8rem; + } + + .decision-tool { + padding: 1rem; + } + + .checkbox-group { + grid-template-columns: 1fr; + } +}