commit b7d32c7114a6856551919e2230b5ba9042c23f17
Author: root <root@hub.scroll.pub>
Date: 2024-12-30 00:07:06 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..c4a62c4
--- /dev/null
+++ b/body.html
@@ -0,0 +1,56 @@
+<header class="site-header">
+ <nav class="main-nav">
+ <div class="logo">My Blog</div>
+ <button class="menu-toggle" aria-label="Toggle menu">
+ <span></span>
+ <span></span>
+ <span></span>
+ </button>
+ <ul class="nav-links">
+ <li><a href="#home">Home</a></li>
+ <li><a href="#blog">Blog</a></li>
+ <li><a href="#about">About</a></li>
+ <li><a href="#contact">Contact</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section id="hero">
+ <h1>Welcome to My Blog</h1>
+ <p>Sharing thoughts, ideas, and experiences</p>
+ </section>
+
+ <section id="featured-posts">
+ <h2>Featured Posts</h2>
+ <div class="post-grid">
+ <article class="post-card">
+ <div class="post-image"></div>
+ <div class="post-content">
+ <h3>First Blog Post</h3>
+ <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
+ <a href="#" class="read-more">Read More</a>
+ </div>
+ </article>
+ <article class="post-card">
+ <div class="post-image"></div>
+ <div class="post-content">
+ <h3>Second Blog Post</h3>
+ <p>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
+ <a href="#" class="read-more">Read More</a>
+ </div>
+ </article>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <div class="footer-content">
+ <div class="social-links">
+ <a href="#" aria-label="Twitter">Twitter</a>
+ <a href="#" aria-label="GitHub">GitHub</a>
+ <a href="#" aria-label="LinkedIn">LinkedIn</a>
+ </div>
+ <p>Made with passion</p>
+ </div>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..711fdfb
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,11 @@
+buildHtml
+baseUrl https://myblog.scroll.pub
+metaTags
+ description "Personal blog sharing thoughts and experiences"
+ keywords "blog, personal, writing, thoughts"
+ author "Blog Author"
+editButton /edit.html
+title My Personal Blog
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..5f497e4
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_017c2rgxduFhYSp78p4Jx2n2",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a personal blog website with a clean, modern design.\n\n---domain---\nmyblog.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://myblog.scroll.pub\nmetaTags\n description \"Personal blog sharing thoughts and experiences\"\n keywords \"blog, personal, writing, thoughts\"\n author \"Blog Author\"\neditButton /edit.html\ntitle My Personal Blog\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header class=\"site-header\">\n <nav class=\"main-nav\">\n <div class=\"logo\">My Blog</div>\n <button class=\"menu-toggle\" aria-label=\"Toggle menu\">\n <span></span>\n <span></span>\n <span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"#home\">Home</a></li>\n <li><a href=\"#blog\">Blog</a></li>\n <li><a href=\"#about\">About</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"hero\">\n <h1>Welcome to My Blog</h1>\n <p>Sharing thoughts, ideas, and experiences</p>\n </section>\n\n <section id=\"featured-posts\">\n <h2>Featured Posts</h2>\n <div class=\"post-grid\">\n <article class=\"post-card\">\n <div class=\"post-image\"></div>\n <div class=\"post-content\">\n <h3>First Blog Post</h3>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>\n <a href=\"#\" class=\"read-more\">Read More</a>\n </div>\n </article>\n <article class=\"post-card\">\n <div class=\"post-image\"></div>\n <div class=\"post-content\">\n <h3>Second Blog Post</h3>\n <p>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <a href=\"#\" class=\"read-more\">Read More</a>\n </div>\n </article>\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"social-links\">\n <a href=\"#\" aria-label=\"Twitter\">Twitter</a>\n <a href=\"#\" aria-label=\"GitHub\">GitHub</a>\n <a href=\"#\" aria-label=\"LinkedIn\">LinkedIn</a>\n </div>\n <p>Made with passion</p>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2d3436;\n --secondary-color: #0984e3;\n --background-color: #ffffff;\n --text-color: #2d3436;\n --spacing: 2rem;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background-color: var(--background-color);\n}\n\n.site-header {\n position: fixed;\n width: 100%;\n background: rgba(255, 255, 255, 0.95);\n backdrop-filter: blur(10px);\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n z-index: 1000;\n}\n\n.main-nav {\n max-width: 1200px;\n margin: 0 auto;\n padding: 1rem var(--spacing);\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n color: var(--primary-color);\n}\n\n.nav-links {\n display: flex;\n list-style: none;\n gap: 2rem;\n}\n\n.nav-links a {\n text-decoration: none;\n color: var(--primary-color);\n font-weight: 500;\n transition: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--secondary-color);\n}\n\n.menu-toggle {\n display: none;\n}\n\n#hero {\n height: 100vh;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n padding: var(--spacing);\n background: linear-gradient(135deg, #74b9ff, #0984e3);\n color: white;\n}\n\n#hero h1 {\n font-size: 3.5rem;\n margin-bottom: 1rem;\n animation: fadeInUp 1s ease;\n}\n\n#hero p {\n font-size: 1.5rem;\n opacity: 0.9;\n animation: fadeInUp 1s ease 0.2s;\n}\n\n.post-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: var(--spacing);\n padding: var(--spacing);\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.post-card {\n background: white;\n border-radius: 15px;\n overflow: hidden;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);\n transition: transform 0.3s ease;\n}\n\n.post-card:hover {\n transform: translateY(-5px);\n}\n\n.post-image {\n height: 200px;\n background: linear-gradient(45deg, #74b9ff, #0984e3);\n}\n\n.post-content {\n padding: 1.5rem;\n}\n\n.read-more {\n display: inline-block;\n margin-top: 1rem;\n color: var(--secondary-color);\n text-decoration: none;\n font-weight: 500;\n}\n\nfooter {\n background: var(--primary-color);\n color: white;\n padding: var(--spacing);\n margin-top: 4rem;\n}\n\n.footer-content {\n max-width: 1200px;\n margin: 0 auto;\n text-align: center;\n}\n\n.social-links {\n margin-bottom: 1rem;\n}\n\n.social-links a {\n color: white;\n text-decoration: none;\n margin: 0 1rem;\n opacity: 0.8;\n transition: opacity 0.3s ease;\n}\n\n.social-links a:hover {\n opacity: 1;\n}\n\n@keyframes fadeInUp {\n from {\n opacity: 0;\n transform: translateY(20px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@media (max-width: 768px) {\n .menu-toggle {\n display: block;\n background: none;\n border: none;\n cursor: pointer;\n padding: 0.5rem;\n }\n\n .menu-toggle span {\n display: block;\n width: 25px;\n height: 3px;\n background: var(--primary-color);\n margin: 5px 0;\n transition: 0.3s;\n }\n\n .nav-links {\n display: none;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: white;\n flex-direction: column;\n padding: 1rem;\n text-align: center;\n }\n\n .nav-links.active {\n display: flex;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Mobile menu toggle\n const menuToggle = document.querySelector('.menu-toggle');\n const navLinks = document.querySelector('.nav-links');\n\n menuToggle.addEventListener('click', () => {\n navLinks.classList.toggle('active');\n \n // Animate hamburger to X\n const spans = menuToggle.querySelectorAll('span');\n spans.forEach(span => span.classList.toggle('active'));\n });\n\n // Smooth scroll for navigation links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n const target = document.querySelector(this.getAttribute('href'));\n if (target) {\n target.scrollIntoView({\n behavior: 'smooth',\n block: 'start'\n });\n // Close mobile menu if open\n navLinks.classList.remove('active');\n }\n });\n });\n\n // Intersection Observer for fade-in animations\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.classList.add('visible');\n }\n });\n }, {\n threshold: 0.1\n });\n\n document.querySelectorAll('.post-card').forEach(card => {\n observer.observe(card);\n });\n});\n\n---end---"
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 275,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2408
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..3e86041
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# myblog.scroll.pub
+Website generated by Claude from prompt: 做个个人blog
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..dd33785
--- /dev/null
+++ b/script.js
@@ -0,0 +1,44 @@
+document.addEventListener('DOMContentLoaded', () => {
+ // Mobile menu toggle
+ const menuToggle = document.querySelector('.menu-toggle');
+ const navLinks = document.querySelector('.nav-links');
+
+ menuToggle.addEventListener('click', () => {
+ navLinks.classList.toggle('active');
+
+ // Animate hamburger to X
+ const spans = menuToggle.querySelectorAll('span');
+ spans.forEach(span => span.classList.toggle('active'));
+ });
+
+ // Smooth scroll for navigation links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ const target = document.querySelector(this.getAttribute('href'));
+ if (target) {
+ target.scrollIntoView({
+ behavior: 'smooth',
+ block: 'start'
+ });
+ // Close mobile menu if open
+ navLinks.classList.remove('active');
+ }
+ });
+ });
+
+ // Intersection Observer for fade-in animations
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.classList.add('visible');
+ }
+ });
+ }, {
+ threshold: 0.1
+ });
+
+ document.querySelectorAll('.post-card').forEach(card => {
+ observer.observe(card);
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..62aa663
--- /dev/null
+++ b/style.css
@@ -0,0 +1,202 @@
+:root {
+ --primary-color: #2d3436;
+ --secondary-color: #0984e3;
+ --background-color: #ffffff;
+ --text-color: #2d3436;
+ --spacing: 2rem;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background-color: var(--background-color);
+}
+
+.site-header {
+ position: fixed;
+ width: 100%;
+ background: rgba(255, 255, 255, 0.95);
+ backdrop-filter: blur(10px);
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
+ z-index: 1000;
+}
+
+.main-nav {
+ max-width: 1200px;
+ margin: 0 auto;
+ padding: 1rem var(--spacing);
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
+.logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: var(--primary-color);
+}
+
+.nav-links {
+ display: flex;
+ list-style: none;
+ gap: 2rem;
+}
+
+.nav-links a {
+ text-decoration: none;
+ color: var(--primary-color);
+ font-weight: 500;
+ transition: color 0.3s ease;
+}
+
+.nav-links a:hover {
+ color: var(--secondary-color);
+}
+
+.menu-toggle {
+ display: none;
+}
+
+#hero {
+ height: 100vh;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ padding: var(--spacing);
+ background: linear-gradient(135deg, #74b9ff, #0984e3);
+ color: white;
+}
+
+#hero h1 {
+ font-size: 3.5rem;
+ margin-bottom: 1rem;
+ animation: fadeInUp 1s ease;
+}
+
+#hero p {
+ font-size: 1.5rem;
+ opacity: 0.9;
+ animation: fadeInUp 1s ease 0.2s;
+}
+
+.post-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: var(--spacing);
+ padding: var(--spacing);
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.post-card {
+ background: white;
+ border-radius: 15px;
+ overflow: hidden;
+ box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
+ transition: transform 0.3s ease;
+}
+
+.post-card:hover {
+ transform: translateY(-5px);
+}
+
+.post-image {
+ height: 200px;
+ background: linear-gradient(45deg, #74b9ff, #0984e3);
+}
+
+.post-content {
+ padding: 1.5rem;
+}
+
+.read-more {
+ display: inline-block;
+ margin-top: 1rem;
+ color: var(--secondary-color);
+ text-decoration: none;
+ font-weight: 500;
+}
+
+footer {
+ background: var(--primary-color);
+ color: white;
+ padding: var(--spacing);
+ margin-top: 4rem;
+}
+
+.footer-content {
+ max-width: 1200px;
+ margin: 0 auto;
+ text-align: center;
+}
+
+.social-links {
+ margin-bottom: 1rem;
+}
+
+.social-links a {
+ color: white;
+ text-decoration: none;
+ margin: 0 1rem;
+ opacity: 0.8;
+ transition: opacity 0.3s ease;
+}
+
+.social-links a:hover {
+ opacity: 1;
+}
+
+@keyframes fadeInUp {
+ from {
+ opacity: 0;
+ transform: translateY(20px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+@media (max-width: 768px) {
+ .menu-toggle {
+ display: block;
+ background: none;
+ border: none;
+ cursor: pointer;
+ padding: 0.5rem;
+ }
+
+ .menu-toggle span {
+ display: block;
+ width: 25px;
+ height: 3px;
+ background: var(--primary-color);
+ margin: 5px 0;
+ transition: 0.3s;
+ }
+
+ .nav-links {
+ display: none;
+ position: absolute;
+ top: 100%;
+ left: 0;
+ right: 0;
+ background: white;
+ flex-direction: column;
+ padding: 1rem;
+ text-align: center;
+ }
+
+ .nav-links.active {
+ display: flex;
+ }
+}