commit 8a6d19f0bb40ca67ae75891fa6c5caaf91b6e1f8
Author: root <root@hub.scroll.pub>
Date: 2024-12-31 14:27:26 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..4028b3c
--- /dev/null
+++ b/body.html
@@ -0,0 +1,21 @@
+<main class="card">
+ <div class="lanterns">
+ <div class="lantern"></div>
+ <div class="lantern"></div>
+ <div class="lantern"></div>
+ </div>
+
+ <section class="greeting">
+ <h1 class="chinese">新年快乐</h1>
+ <h2 class="spanish">Feliz Año Nuevo</h2>
+
+ <div class="message">
+ <p class="chinese">亲爱的,愿新的一年带给你无限的快乐和幸福</p>
+ <p class="spanish">Mi amor, que este año nuevo te traiga infinita alegría y felicidad</p>
+ </div>
+
+ <button id="heartBtn" class="heart-btn" aria-label="Show love">❤️</button>
+ </section>
+
+ <div class="floating-hearts"></div>
+</main>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..fad3189
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://amornuevo.scroll.pub
+metaTags
+editButton /edit.html
+title Feliz Año Nuevo, Mi Amor | 新年快乐,亲爱的
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..067e060
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_01Mn8dYBHNhEccqhzyfpzcE7",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "Here's a romantic New Year greeting card website:\n\n---domain---\namornuevo.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://amornuevo.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Feliz Año Nuevo, Mi Amor | 新年快乐,亲爱的\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<main class=\"card\">\n <div class=\"lanterns\">\n <div class=\"lantern\"></div>\n <div class=\"lantern\"></div>\n <div class=\"lantern\"></div>\n </div>\n \n <section class=\"greeting\">\n <h1 class=\"chinese\">新年快乐</h1>\n <h2 class=\"spanish\">Feliz Año Nuevo</h2>\n \n <div class=\"message\">\n <p class=\"chinese\">亲爱的,愿新的一年带给你无限的快乐和幸福</p>\n <p class=\"spanish\">Mi amor, que este año nuevo te traiga infinita alegría y felicidad</p>\n </div>\n\n <button id=\"heartBtn\" class=\"heart-btn\" aria-label=\"Show love\">❤️</button>\n </section>\n\n <div class=\"floating-hearts\"></div>\n</main>\n\n---style.css---\n:root {\n --purple-light: #e0b0ff;\n --purple-dark: #800080;\n --purple-glow: rgba(128, 0, 128, 0.3);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n min-height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n background: linear-gradient(135deg, var(--purple-dark), #2a0934);\n font-family: system-ui, sans-serif;\n}\n\n.card {\n position: relative;\n width: 90%;\n max-width: 600px;\n min-height: 400px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n border-radius: 20px;\n padding: 2rem;\n box-shadow: 0 0 30px var(--purple-glow);\n overflow: hidden;\n}\n\n.greeting {\n text-align: center;\n color: white;\n}\n\nh1, h2 {\n margin: 1rem 0;\n text-shadow: 0 0 10px var(--purple-light);\n}\n\n.chinese {\n font-size: 2.5rem;\n font-weight: 300;\n}\n\n.spanish {\n font-size: 2rem;\n}\n\n.message {\n margin: 2rem 0;\n line-height: 1.6;\n}\n\n.message p {\n margin: 1rem 0;\n}\n\n.heart-btn {\n font-size: 2rem;\n background: none;\n border: none;\n cursor: pointer;\n transition: transform 0.3s;\n padding: 1rem;\n}\n\n.heart-btn:hover {\n transform: scale(1.2);\n}\n\n.lantern {\n position: absolute;\n width: 30px;\n height: 40px;\n background: var(--purple-light);\n border-radius: 50%;\n box-shadow: 0 0 20px var(--purple-light);\n animation: float 3s infinite ease-in-out;\n}\n\n.lantern:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }\n.lantern:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; }\n.lantern:nth-child(3) { top: 15%; left: 50%; animation-delay: 1s; }\n\n@keyframes float {\n 0%, 100% { transform: translateY(0); }\n 50% { transform: translateY(-20px); }\n}\n\n.floating-hearts {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n@media (max-width: 600px) {\n .card {\n padding: 1rem;\n min-height: 300px;\n }\n \n .chinese { font-size: 2rem; }\n .spanish { font-size: 1.5rem; }\n .message { font-size: 0.9rem; }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n const heartBtn = document.getElementById('heartBtn');\n const floatingHearts = document.querySelector('.floating-hearts');\n\n function 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.left = Math.random() * 100 + '%';\n heart.style.opacity = '1';\n heart.style.transition = 'all 3s ease-out';\n heart.style.animation = 'float 3s ease-in-out infinite';\n \n floatingHearts.appendChild(heart);\n\n setTimeout(() => {\n heart.style.transform = `translateY(-${Math.random() * 200 + 100}px)`;\n heart.style.opacity = '0';\n }, 50);\n\n setTimeout(() => {\n floatingHearts.removeChild(heart);\n }, 3000);\n }\n\n heartBtn.addEventListener('click', () => {\n for(let i = 0; i < 10; i++) {\n setTimeout(createHeart, i * 100);\n }\n });\n});\n\n---end---\n\nThis creates a beautiful, interactive greeting card with:\n- Purple gradient background\n- Floating lanterns animation\n- Bilingual greetings in Chinese and Spanish\n- Glass-morphism effect on the main card\n- Interactive heart button that creates floating hearts animation\n- Fully responsive design\n- Smooth animations and transitions\n- Accessible button and semantic HTML\n- Clean, modern styling with CSS variables\n- Optimized for mobile devices\n\nThe domain name \"amornuevo\" combines Spanish \"amor\" (love) and \"nuevo\" (new), making it relevant and memorable for a New Year greeting to a Spanish boyfriend."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 303,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 1659
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..09d9a87
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# amornuevo.scroll.pub
+Website generated by Claude from prompt: A new year greeting card to my Spanish boyfriend, showing written words in Chinese and Spanish. It should have images in colour purple, and interactivity. Be creative.
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..7cabe76
--- /dev/null
+++ b/script.js
@@ -0,0 +1,32 @@
+document.addEventListener('DOMContentLoaded', () => {
+ const heartBtn = document.getElementById('heartBtn');
+ const floatingHearts = document.querySelector('.floating-hearts');
+
+ function createHeart() {
+ const heart = document.createElement('div');
+ heart.innerHTML = '❤️';
+ heart.style.position = 'absolute';
+ heart.style.fontSize = Math.random() * 20 + 10 + 'px';
+ heart.style.left = Math.random() * 100 + '%';
+ heart.style.opacity = '1';
+ heart.style.transition = 'all 3s ease-out';
+ heart.style.animation = 'float 3s ease-in-out infinite';
+
+ floatingHearts.appendChild(heart);
+
+ setTimeout(() => {
+ heart.style.transform = `translateY(-${Math.random() * 200 + 100}px)`;
+ heart.style.opacity = '0';
+ }, 50);
+
+ setTimeout(() => {
+ floatingHearts.removeChild(heart);
+ }, 3000);
+ }
+
+ heartBtn.addEventListener('click', () => {
+ for(let i = 0; i < 10; i++) {
+ setTimeout(createHeart, i * 100);
+ }
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..e8c1ff8
--- /dev/null
+++ b/style.css
@@ -0,0 +1,113 @@
+:root {
+ --purple-light: #e0b0ff;
+ --purple-dark: #800080;
+ --purple-glow: rgba(128, 0, 128, 0.3);
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ min-height: 100vh;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ background: linear-gradient(135deg, var(--purple-dark), #2a0934);
+ font-family: system-ui, sans-serif;
+}
+
+.card {
+ position: relative;
+ width: 90%;
+ max-width: 600px;
+ min-height: 400px;
+ background: rgba(255, 255, 255, 0.1);
+ backdrop-filter: blur(10px);
+ border-radius: 20px;
+ padding: 2rem;
+ box-shadow: 0 0 30px var(--purple-glow);
+ overflow: hidden;
+}
+
+.greeting {
+ text-align: center;
+ color: white;
+}
+
+h1, h2 {
+ margin: 1rem 0;
+ text-shadow: 0 0 10px var(--purple-light);
+}
+
+.chinese {
+ font-size: 2.5rem;
+ font-weight: 300;
+}
+
+.spanish {
+ font-size: 2rem;
+}
+
+.message {
+ margin: 2rem 0;
+ line-height: 1.6;
+}
+
+.message p {
+ margin: 1rem 0;
+}
+
+.heart-btn {
+ font-size: 2rem;
+ background: none;
+ border: none;
+ cursor: pointer;
+ transition: transform 0.3s;
+ padding: 1rem;
+}
+
+.heart-btn:hover {
+ transform: scale(1.2);
+}
+
+.lantern {
+ position: absolute;
+ width: 30px;
+ height: 40px;
+ background: var(--purple-light);
+ border-radius: 50%;
+ box-shadow: 0 0 20px var(--purple-light);
+ animation: float 3s infinite ease-in-out;
+}
+
+.lantern:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
+.lantern:nth-child(2) { top: 20%; right: 10%; animation-delay: 0.5s; }
+.lantern:nth-child(3) { top: 15%; left: 50%; animation-delay: 1s; }
+
+@keyframes float {
+ 0%, 100% { transform: translateY(0); }
+ 50% { transform: translateY(-20px); }
+}
+
+.floating-hearts {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 100%;
+ height: 100%;
+ pointer-events: none;
+}
+
+@media (max-width: 600px) {
+ .card {
+ padding: 1rem;
+ min-height: 300px;
+ }
+
+ .chinese { font-size: 2rem; }
+ .spanish { font-size: 1.5rem; }
+ .message { font-size: 0.9rem; }
+}