commit b6c6289e3de7eaccc9efbc5d330f1a4ddea2ea36
Author: root <root@hub.scroll.pub> Date: 2025-01-06 16:04:23 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..d53bed0 --- /dev/null +++ b/body.html @@ -0,0 +1,51 @@ +<header class="header"> + <div class="header-content"> + <h1>Creative Ink</h1> + <p>Where Ideas Flow Freely</p> + </div> + <nav class="nav"> + <ul> + <li><a href="#about">About</a></li> + <li><a href="#blog">Blog</a></li> + <li><a href="#contact">Contact</a></li> + </ul> + </nav> +</header> + +<main> + <section id="about" class="section"> + <h2>About Me</h2> + <p>Welcome to Creative Ink, a space where I share my thoughts, ideas, and creative projects. I'm passionate about writing, design, and technology, and this blog is a reflection of that passion.</p> + </section> + + <section id="blog" class="section"> + <h2>Latest Posts</h2> + <article class="post"> + <h3>The Art of Minimalism</h3> + <p>Discover how minimalism can transform your life and work. Learn practical tips to declutter your space and mind.</p> + <a href="#read-more" class="read-more">Read More</a> + </article> + <article class="post"> + <h3>Exploring CSS Grid</h3> + <p>Dive into the world of CSS Grid and learn how to create complex layouts with ease. Perfect for modern web design.</p> + <a href="#read-more" class="read-more">Read More</a> + </article> + </section> + + <section id="contact" class="section"> + <h2>Get in Touch</h2> + <form class="contact-form"> + <label for="name">Name:</label> + <input type="text" id="name" name="name" required> + <label for="email">Email:</label> + <input type="email" id="email" name="email" required> + <label for="message">Message:</label> + <textarea id="message" name="message" required></textarea> + <button type="submit">Send</button> + </form> + </section> +</main> + +<footer class="footer"> + <p>Creative Ink - A Personal Blog</p> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..8fefccb --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://creativeink.scroll.pub +metaTags +editButton /edit.html +title Creative Ink - A Personal Blog +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..6e24386 --- /dev/null +++ b/prompt.json @@ -0,0 +1,25 @@ +{ + "id": "739bf314-ea49-45b5-bee2-56fc1b1d507b", + "object": "chat.completion", + "created": 1736179440, + "model": "deepseek-chat", + "choices": [ + { + "index": 0, + "message": { + "role": "assistant", + "content": "---domain---\ncreativeink.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://creativeink.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Creative Ink - A Personal Blog\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header class=\"header\">\n <div class=\"header-content\">\n <h1>Creative Ink</h1>\n <p>Where Ideas Flow Freely</p>\n </div>\n <nav class=\"nav\">\n <ul>\n <li><a href=\"#about\">About</a></li>\n <li><a href=\"#blog\">Blog</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"about\" class=\"section\">\n <h2>About Me</h2>\n <p>Welcome to Creative Ink, a space where I share my thoughts, ideas, and creative projects. I'm passionate about writing, design, and technology, and this blog is a reflection of that passion.</p>\n </section>\n\n <section id=\"blog\" class=\"section\">\n <h2>Latest Posts</h2>\n <article class=\"post\">\n <h3>The Art of Minimalism</h3>\n <p>Discover how minimalism can transform your life and work. Learn practical tips to declutter your space and mind.</p>\n <a href=\"#read-more\" class=\"read-more\">Read More</a>\n </article>\n <article class=\"post\">\n <h3>Exploring CSS Grid</h3>\n <p>Dive into the world of CSS Grid and learn how to create complex layouts with ease. Perfect for modern web design.</p>\n <a href=\"#read-more\" class=\"read-more\">Read More</a>\n </article>\n </section>\n\n <section id=\"contact\" class=\"section\">\n <h2>Get in Touch</h2>\n <form class=\"contact-form\">\n <label for=\"name\">Name:</label>\n <input type=\"text\" id=\"name\" name=\"name\" required>\n <label for=\"email\">Email:</label>\n <input type=\"email\" id=\"email\" name=\"email\" required>\n <label for=\"message\">Message:</label>\n <textarea id=\"message\" name=\"message\" required></textarea>\n <button type=\"submit\">Send</button>\n </form>\n </section>\n</main>\n\n<footer class=\"footer\">\n <p>Creative Ink - A Personal Blog</p>\n</footer>\n---style.css---\n:root {\n --primary-color: #4a90e2;\n --secondary-color: #333;\n --background-color: #f4f4f4;\n --text-color: #333;\n --link-color: #4a90e2;\n --link-hover-color: #357abd;\n}\n\nbody {\n font-family: 'Arial', sans-serif;\n line-height: 1.6;\n margin: 0;\n padding: 0;\n background-color: var(--background-color);\n color: var(--text-color);\n}\n\n.header {\n background: var(--primary-color);\n color: white;\n padding: 2rem 1rem;\n text-align: center;\n}\n\n.header h1 {\n margin: 0;\n font-size: 2.5rem;\n}\n\n.header p {\n margin: 0.5rem 0 0;\n font-size: 1.2rem;\n}\n\n.nav {\n background: var(--secondary-color);\n padding: 1rem;\n}\n\n.nav ul {\n list-style: none;\n padding: 0;\n margin: 0;\n display: flex;\n justify-content: center;\n}\n\n.nav ul li {\n margin: 0 1rem;\n}\n\n.nav ul li a {\n color: white;\n text-decoration: none;\n font-size: 1.1rem;\n}\n\n.nav ul li a:hover {\n color: var(--link-hover-color);\n}\n\n.section {\n padding: 2rem 1rem;\n max-width: 800px;\n margin: 0 auto;\n}\n\n.section h2 {\n color: var(--primary-color);\n margin-bottom: 1rem;\n}\n\n.post {\n background: white;\n padding: 1rem;\n margin-bottom: 1rem;\n border-radius: 5px;\n box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);\n}\n\n.post h3 {\n margin-top: 0;\n}\n\n.read-more {\n display: inline-block;\n margin-top: 1rem;\n color: var(--link-color);\n text-decoration: none;\n}\n\n.read-more:hover {\n color: var(--link-hover-color);\n}\n\n.contact-form {\n display: flex;\n flex-direction: column;\n}\n\n.contact-form label {\n margin-bottom: 0.5rem;\n}\n\n.contact-form input, .contact-form textarea {\n margin-bottom: 1rem;\n padding: 0.5rem;\n border: 1px solid #ccc;\n border-radius: 5px;\n}\n\n.contact-form button {\n padding: 0.5rem 1rem;\n background: var(--primary-color);\n color: white;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n}\n\n.contact-form button:hover {\n background: var(--link-hover-color);\n}\n\n.footer {\n background: var(--secondary-color);\n color: white;\n text-align: center;\n padding: 1rem;\n margin-top: 2rem;\n}\n\n@media (max-width: 768px) {\n .nav ul {\n flex-direction: column;\n align-items: center;\n }\n\n .nav ul li {\n margin: 0.5rem 0;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const form = document.querySelector('.contact-form');\n form.addEventListener('submit', function(event) {\n event.preventDefault();\n alert('Thank you for your message!');\n form.reset();\n });\n});\n---end---" + }, + "logprobs": null, + "finish_reason": "stop" + } + ], + "usage": { + "prompt_tokens": 242, + "completion_tokens": 1348, + "total_tokens": 1590, + "prompt_cache_hit_tokens": 0, + "prompt_cache_miss_tokens": 242 + }, + "system_fingerprint": "fp_3a5770e1b4" +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..5f4561f --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# creativeink.scroll.pub +Website generated by DeepSeek from prompt: 给我生成一个个人博客,需要有创意 \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..28a968f --- /dev/null +++ b/script.js @@ -0,0 +1,8 @@ +document.addEventListener('DOMContentLoaded', function() { + const form = document.querySelector('.contact-form'); + form.addEventListener('submit', function(event) { + event.preventDefault(); + alert('Thank you for your message!'); + form.reset(); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..433632a --- /dev/null +++ b/style.css @@ -0,0 +1,143 @@ +:root { + --primary-color: #4a90e2; + --secondary-color: #333; + --background-color: #f4f4f4; + --text-color: #333; + --link-color: #4a90e2; + --link-hover-color: #357abd; +} + +body { + font-family: 'Arial', sans-serif; + line-height: 1.6; + margin: 0; + padding: 0; + background-color: var(--background-color); + color: var(--text-color); +} + +.header { + background: var(--primary-color); + color: white; + padding: 2rem 1rem; + text-align: center; +} + +.header h1 { + margin: 0; + font-size: 2.5rem; +} + +.header p { + margin: 0.5rem 0 0; + font-size: 1.2rem; +} + +.nav { + background: var(--secondary-color); + padding: 1rem; +} + +.nav ul { + list-style: none; + padding: 0; + margin: 0; + display: flex; + justify-content: center; +} + +.nav ul li { + margin: 0 1rem; +} + +.nav ul li a { + color: white; + text-decoration: none; + font-size: 1.1rem; +} + +.nav ul li a:hover { + color: var(--link-hover-color); +} + +.section { + padding: 2rem 1rem; + max-width: 800px; + margin: 0 auto; +} + +.section h2 { + color: var(--primary-color); + margin-bottom: 1rem; +} + +.post { + background: white; + padding: 1rem; + margin-bottom: 1rem; + border-radius: 5px; + box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); +} + +.post h3 { + margin-top: 0; +} + +.read-more { + display: inline-block; + margin-top: 1rem; + color: var(--link-color); + text-decoration: none; +} + +.read-more:hover { + color: var(--link-hover-color); +} + +.contact-form { + display: flex; + flex-direction: column; +} + +.contact-form label { + margin-bottom: 0.5rem; +} + +.contact-form input, .contact-form textarea { + margin-bottom: 1rem; + padding: 0.5rem; + border: 1px solid #ccc; + border-radius: 5px; +} + +.contact-form button { + padding: 0.5rem 1rem; + background: var(--primary-color); + color: white; + border: none; + border-radius: 5px; + cursor: pointer; +} + +.contact-form button:hover { + background: var(--link-hover-color); +} + +.footer { + background: var(--secondary-color); + color: white; + text-align: center; + padding: 1rem; + margin-top: 2rem; +} + +@media (max-width: 768px) { + .nav ul { + flex-direction: column; + align-items: center; + } + + .nav ul li { + margin: 0.5rem 0; + } +} \ No newline at end of file