commit 257610ec95dfcfe03ee7427736476a27ca4ede6e
Author: root <root@hub.scroll.pub> Date: 2024-12-31 01:25:01 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..6fd70b3 --- /dev/null +++ b/body.html @@ -0,0 +1,9 @@ +<main class="love-container"> + <h1 class="love-message"> + <span>B</span><span>r</span><span>e</span><span>c</span><span>k</span> + <span class="heart">♥</span> + <span>S</span><span>t</span><span>e</span><span>p</span><span>h</span><span>a</span><span>n</span><span>i</span><span>e</span> + </h1> + <p class="forever">4eva</p> + <div class="floating-hearts"></div> +</main> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..fbd10e6 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://hearts4eva.scroll.pub +metaTags +editButton /edit.html +title Breck Loves Stephanie Forever +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..33118ea --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01PMS7LeMHNyScoai2qL7a1W", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll create a romantic animated website with that message. For the domain, I suggest:\n\n---domain---\nhearts4eva.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://hearts4eva.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Breck Loves Stephanie Forever\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<main class=\"love-container\">\n <h1 class=\"love-message\">\n <span>B</span><span>r</span><span>e</span><span>c</span><span>k</span>\n <span class=\"heart\">♥</span>\n <span>S</span><span>t</span><span>e</span><span>p</span><span>h</span><span>a</span><span>n</span><span>i</span><span>e</span>\n </h1>\n <p class=\"forever\">4eva</p>\n <div class=\"floating-hearts\"></div>\n</main>\n\n---style.css---\n:root {\n --primary: #ff4d6d;\n --secondary: #ff758f;\n --background: #fff0f3;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n min-height: 100vh;\n background: var(--background);\n display: flex;\n justify-content: center;\n align-items: center;\n font-family: 'Arial', sans-serif;\n overflow: hidden;\n}\n\n.love-container {\n text-align: center;\n padding: 2rem;\n}\n\n.love-message {\n font-size: clamp(2rem, 8vw, 5rem);\n margin-bottom: 1rem;\n color: var(--primary);\n}\n\n.love-message span {\n display: inline-block;\n animation: float 2s ease-in-out infinite;\n}\n\n.love-message span:nth-child(2n) {\n animation-delay: 0.5s;\n}\n\n.heart {\n color: var(--primary);\n display: inline-block;\n transform-origin: center;\n animation: heartbeat 1.5s ease-in-out infinite;\n margin: 0 0.5rem;\n}\n\n.forever {\n font-size: clamp(1.5rem, 6vw, 3rem);\n color: var(--secondary);\n animation: glow 2s ease-in-out infinite;\n}\n\n@keyframes float {\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-10px); }\n}\n\n@keyframes heartbeat {\n 0%, 100% { transform: scale(1); }\n 50% { transform: scale(1.3); }\n}\n\n@keyframes glow {\n 0%, 100% { text-shadow: 0 0 5px rgba(255,77,109,0.5); }\n 50% { text-shadow: 0 0 20px rgba(255,77,109,0.8); }\n}\n\n.floating-hearts {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: -1;\n}\n\n---script.js---\nfunction createHeart() {\n const heart = document.createElement('div');\n heart.innerHTML = '♥';\n heart.style.position = 'absolute';\n heart.style.fontSize = Math.random() * 20 + 10 + 'px';\n heart.style.color = `rgba(255, ${Math.random() * 77 + 77}, ${Math.random() * 109 + 109}, ${Math.random() * 0.5 + 0.5})`;\n heart.style.left = Math.random() * 100 + 'vw';\n heart.style.animationDuration = Math.random() * 3 + 2 + 's';\n heart.style.animation = 'float-up linear forwards';\n \n document.querySelector('.floating-hearts').appendChild(heart);\n \n setTimeout(() => {\n heart.remove();\n }, 5000);\n}\n\ndocument.addEventListener('DOMContentLoaded', () => {\n setInterval(createHeart, 300);\n});\n\nconst style = document.createElement('style');\nstyle.textContent = `\n @keyframes float-up {\n 0% {\n transform: translateY(100vh) rotate(0deg);\n opacity: 1;\n }\n 100% {\n transform: translateY(-100vh) rotate(360deg);\n opacity: 0;\n }\n }\n`;\ndocument.head.appendChild(style);\n\n---end---\n\nThis creates a beautiful, romantic webpage with:\n- Floating animated letter effects\n- A pulsing heart symbol\n- A glowing \"4eva\" message\n- Randomly generated floating hearts in the background\n- Fully responsive design\n- Soft, romantic color scheme\n- Smooth animations\n- Clean, semantic HTML\n- No external dependencies\n- Mobile-friendly layout\n\nThe animations are performant and the code is well-structured. The floating hearts are generated dynamically using JavaScript and will float up the screen with random sizes, colors, and speeds." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 289, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 1329 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..9a2bf8e --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# hearts4eva.scroll.pub +Website generated by Claude from prompt: make a website with animated hearts and other beautiful css that says breck loves stephanie 4eva \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..439f17c --- /dev/null +++ b/script.js @@ -0,0 +1,35 @@ +function createHeart() { + const heart = document.createElement('div'); + heart.innerHTML = '♥'; + heart.style.position = 'absolute'; + heart.style.fontSize = Math.random() * 20 + 10 + 'px'; + heart.style.color = `rgba(255, ${Math.random() * 77 + 77}, ${Math.random() * 109 + 109}, ${Math.random() * 0.5 + 0.5})`; + heart.style.left = Math.random() * 100 + 'vw'; + heart.style.animationDuration = Math.random() * 3 + 2 + 's'; + heart.style.animation = 'float-up linear forwards'; + + document.querySelector('.floating-hearts').appendChild(heart); + + setTimeout(() => { + heart.remove(); + }, 5000); +} + +document.addEventListener('DOMContentLoaded', () => { + setInterval(createHeart, 300); +}); + +const style = document.createElement('style'); +style.textContent = ` + @keyframes float-up { + 0% { + transform: translateY(100vh) rotate(0deg); + opacity: 1; + } + 100% { + transform: translateY(-100vh) rotate(360deg); + opacity: 0; + } + } +`; +document.head.appendChild(style); diff --git a/style.css b/style.css new file mode 100644 index 0000000..9fc8f7d --- /dev/null +++ b/style.css @@ -0,0 +1,80 @@ +:root { + --primary: #ff4d6d; + --secondary: #ff758f; + --background: #fff0f3; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + min-height: 100vh; + background: var(--background); + display: flex; + justify-content: center; + align-items: center; + font-family: 'Arial', sans-serif; + overflow: hidden; +} + +.love-container { + text-align: center; + padding: 2rem; +} + +.love-message { + font-size: clamp(2rem, 8vw, 5rem); + margin-bottom: 1rem; + color: var(--primary); +} + +.love-message span { + display: inline-block; + animation: float 2s ease-in-out infinite; +} + +.love-message span:nth-child(2n) { + animation-delay: 0.5s; +} + +.heart { + color: var(--primary); + display: inline-block; + transform-origin: center; + animation: heartbeat 1.5s ease-in-out infinite; + margin: 0 0.5rem; +} + +.forever { + font-size: clamp(1.5rem, 6vw, 3rem); + color: var(--secondary); + animation: glow 2s ease-in-out infinite; +} + +@keyframes float { + 0%, 100% { transform: translateY(0); } + 50% { transform: translateY(-10px); } +} + +@keyframes heartbeat { + 0%, 100% { transform: scale(1); } + 50% { transform: scale(1.3); } +} + +@keyframes glow { + 0%, 100% { text-shadow: 0 0 5px rgba(255,77,109,0.5); } + 50% { text-shadow: 0 0 20px rgba(255,77,109,0.8); } +} + +.floating-hearts { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + z-index: -1; +}