commit 7e86df4228891972c59af14868a0a1e21115e2e3
Author: root <root@hub.scroll.pub> Date: 2024-12-31 14:19:07 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..fdc89bf --- /dev/null +++ b/body.html @@ -0,0 +1,24 @@ +<main> + <div class="card-container"> + <div class="card"> + <div class="card-front"> + <h1>¡Feliz Año Nuevo, Mi Amor!</h1> + <h2>新年快乐,我的爱人!</h2> + <div class="fireworks"> + <div class="firework"></div> + <div class="firework"></div> + <div class="firework"></div> + </div> + </div> + <div class="card-back"> + <p class="message"> + Que este nuevo año nos traiga más amor, aventuras y momentos inolvidables juntos. Te amo con todo mi corazón. ❤️ + </p> + <p class="message"> + 愿新的一年带给我们更多的爱、冒险和难忘的时刻。我全心全意地爱着你。❤️ + </p> + <button class="flip-btn">Volver / 返回</button> + </div> + </div> + </div> +</main> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..ea88b24 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://amor2024.scroll.pub +metaTags +editButton /edit.html +title Feliz Año Nuevo 2024 - 新年快乐 +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..202679c --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "59bf062f-60d0-4a5c-9850-307c7e43abd1", + "object": "chat.completion", + "created": 1735654727, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "\n\n---domain---\namor2024.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://amor2024.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Feliz Año Nuevo 2024 - 新年快乐\nstyle.css\nbody.html\nscript.js\n---body.html---\n<main>\n <div class=\"card-container\">\n <div class=\"card\">\n <div class=\"card-front\">\n <h1>¡Feliz Año Nuevo, Mi Amor!</h1>\n <h2>新年快乐,我的爱人!</h2>\n <div class=\"fireworks\">\n <div class=\"firework\"></div>\n <div class=\"firework\"></div>\n <div class=\"firework\"></div>\n </div>\n </div>\n <div class=\"card-back\">\n <p class=\"message\">\n Que este nuevo año nos traiga más amor, aventuras y momentos inolvidables juntos. Te amo con todo mi corazón. ❤️\n </p>\n <p class=\"message\">\n 愿新的一年带给我们更多的爱、冒险和难忘的时刻。我全心全意地爱着你。❤️\n </p>\n <button class=\"flip-btn\">Volver / 返回</button>\n </div>\n </div>\n </div>\n</main>\n---style.css---\n:root {\n --primary-color: #d32f2f;\n --secondary-color: #ffcdd2;\n --accent-color: #ffeb3b;\n --text-color: #333;\n --bg-color: #f5f5f5;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Georgia', serif;\n background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);\n color: var(--text-color);\n min-height: 100vh;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\nmain {\n width: 100%;\n max-width: 800px;\n padding: 2rem;\n}\n\n.card-container {\n perspective: 1000px;\n}\n\n.card {\n position: relative;\n width: 100%;\n height: 500px;\n transform-style: preserve-3d;\n transition: transform 1s;\n cursor: pointer;\n}\n\n.card.flipped {\n transform: rotateY(180deg);\n}\n\n.card-front, .card-back {\n position: absolute;\n width: 100%;\n height: 100%;\n backface-visibility: hidden;\n border-radius: 20px;\n padding: 2rem;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n box-shadow: 0 10px 30px rgba(0,0,0,0.2);\n}\n\n.card-front {\n background: var(--primary-color);\n color: white;\n}\n\n.card-back {\n background: var(--secondary-color);\n transform: rotateY(180deg);\n}\n\nh1, h2 {\n margin: 1rem 0;\n font-size: 2.5rem;\n text-shadow: 2px 2px 4px rgba(0,0,0,0.3);\n}\n\nh2 {\n font-size: 2rem;\n}\n\n.message {\n font-size: 1.2rem;\n line-height: 1.6;\n margin: 1rem 0;\n}\n\n.flip-btn {\n background: var(--primary-color);\n color: white;\n border: none;\n padding: 0.8rem 2rem;\n border-radius: 25px;\n font-size: 1rem;\n cursor: pointer;\n margin-top: 2rem;\n transition: background 0.3s;\n}\n\n.flip-btn:hover {\n background: #b71c1c;\n}\n\n.fireworks {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n\n.firework {\n position: absolute;\n width: 10px;\n height: 10px;\n background: var(--accent-color);\n border-radius: 50%;\n animation: explode 1.5s infinite ease-out;\n}\n\n.firework:nth-child(1) {\n top: 20%;\n left: 30%;\n animation-delay: 0s;\n}\n\n.firework:nth-child(2) {\n top: 40%;\n left: 70%;\n animation-delay: 0.5s;\n}\n\n.firework:nth-child(3) {\n top: 60%;\n left: 50%;\n animation-delay: 1s;\n}\n\n@keyframes explode {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 100% {\n transform: scale(20);\n opacity: 0;\n }\n}\n\n@media (max-width: 768px) {\n h1 {\n font-size: 2rem;\n }\n \n h2 {\n font-size: 1.5rem;\n }\n \n .message {\n font-size: 1rem;\n }\n \n .card {\n height: 400px;\n }\n}\n---script.js---\nconst card = document.querySelector('.card');\nconst flipBtn = document.querySelector('.flip-btn');\n\ncard.addEventListener('click', () => {\n card.classList.toggle('flipped');\n});\n\nflipBtn.addEventListener('click', (e) => {\n e.stopPropagation();\n card.classList.remove('flipped');\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 263, + "completion_tokens": 1242, + "total_tokens": 1505, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 263 + }, + "system_fingerprint": "fp_f1afce2943" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..56cad40 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# amor2024.scroll.pub +Website generated by DeepSeek from prompt: A website shows a New Year greeting card with written wishing in Spanish and Chinese to my Spanish lover. It should have images and interactivity. Be creative. \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..581070f --- /dev/null +++ b/script.js @@ -0,0 +1,11 @@ +const card = document.querySelector('.card'); +const flipBtn = document.querySelector('.flip-btn'); + +card.addEventListener('click', () => { + card.classList.toggle('flipped'); +}); + +flipBtn.addEventListener('click', (e) => { + e.stopPropagation(); + card.classList.remove('flipped'); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..036a6cb --- /dev/null +++ b/style.css @@ -0,0 +1,168 @@ +:root { + --primary-color: #d32f2f; + --secondary-color: #ffcdd2; + --accent-color: #ffeb3b; + --text-color: #333; + --bg-color: #f5f5f5; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Georgia', serif; + background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%); + color: var(--text-color); + min-height: 100vh; + display: flex; + justify-content: center; + align-items: center; +} + +main { + width: 100%; + max-width: 800px; + padding: 2rem; +} + +.card-container { + perspective: 1000px; +} + +.card { + position: relative; + width: 100%; + height: 500px; + transform-style: preserve-3d; + transition: transform 1s; + cursor: pointer; +} + +.card.flipped { + transform: rotateY(180deg); +} + +.card-front, .card-back { + position: absolute; + width: 100%; + height: 100%; + backface-visibility: hidden; + border-radius: 20px; + padding: 2rem; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + box-shadow: 0 10px 30px rgba(0,0,0,0.2); +} + +.card-front { + background: var(--primary-color); + color: white; +} + +.card-back { + background: var(--secondary-color); + transform: rotateY(180deg); +} + +h1, h2 { + margin: 1rem 0; + font-size: 2.5rem; + text-shadow: 2px 2px 4px rgba(0,0,0,0.3); +} + +h2 { + font-size: 2rem; +} + +.message { + font-size: 1.2rem; + line-height: 1.6; + margin: 1rem 0; +} + +.flip-btn { + background: var(--primary-color); + color: white; + border: none; + padding: 0.8rem 2rem; + border-radius: 25px; + font-size: 1rem; + cursor: pointer; + margin-top: 2rem; + transition: background 0.3s; +} + +.flip-btn:hover { + background: #b71c1c; +} + +.fireworks { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + overflow: hidden; +} + +.firework { + position: absolute; + width: 10px; + height: 10px; + background: var(--accent-color); + border-radius: 50%; + animation: explode 1.5s infinite ease-out; +} + +.firework:nth-child(1) { + top: 20%; + left: 30%; + animation-delay: 0s; +} + +.firework:nth-child(2) { + top: 40%; + left: 70%; + animation-delay: 0.5s; +} + +.firework:nth-child(3) { + top: 60%; + left: 50%; + animation-delay: 1s; +} + +@keyframes explode { + 0% { + transform: scale(1); + opacity: 1; + } + 100% { + transform: scale(20); + opacity: 0; + } +} + +@media (max-width: 768px) { + h1 { + font-size: 2rem; + } + + h2 { + font-size: 1.5rem; + } + + .message { + font-size: 1rem; + } + + .card { + height: 400px; + } +} \ No newline at end of file