commit 22c7f977d3d7f282c31b1975dbb133f0da9b3a93
Author: root <root@hub.scroll.pub>
Date: 2025-01-02 03:02:38 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..ae20a8c
--- /dev/null
+++ b/body.html
@@ -0,0 +1,93 @@
+<header class="main-header">
+ <nav>
+ <div class="logo">The Last Page</div>
+ <div class="nav-toggle" id="navToggle">
+ <span></span><span></span><span></span>
+ </div>
+ <ul class="nav-links">
+ <li><a href="#book">The Book</a></li>
+ <li><a href="#author">Author</a></li>
+ <li><a href="#reviews">Reviews</a></li>
+ <li><a href="#purchase" class="cta-button">Buy Now</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section id="hero" class="hero">
+ <div class="hero-content">
+ <h1>The Last Page</h1>
+ <p class="tagline">A journey that begins where others end</p>
+ <a href="#purchase" class="cta-button pulse">Get Your Copy</a>
+ </div>
+ </section>
+
+ <section id="book" class="book-section">
+ <div class="book-container">
+ <div class="book-image">
+ <div class="book-cover"></div>
+ </div>
+ <div class="book-details">
+ <h2>About the Book</h2>
+ <p>In this captivating novel, reality and fiction intertwine as readers follow the story of a mysterious book that changes the life of everyone who reads its final page.</p>
+ <ul class="book-specs">
+ <li>Hardcover: 324 pages</li>
+ <li>Publisher: Scroll Publishing</li>
+ <li>Language: English</li>
+ <li>ISBN: 978-0-9876543-2-1</li>
+ </ul>
+ <div class="price">$24.99</div>
+ </div>
+ </div>
+ </section>
+
+ <section id="author" class="author-section">
+ <h2>Meet the Author</h2>
+ <div class="author-content">
+ <div class="author-image"></div>
+ <div class="author-bio">
+ <h3>Sarah Mitchell</h3>
+ <p>Award-winning author Sarah Mitchell brings her masterful storytelling to this groundbreaking novel that explores the boundaries between reality and fiction.</p>
+ </div>
+ </div>
+ </section>
+
+ <section id="reviews" class="reviews-section">
+ <h2>Reader Reviews</h2>
+ <div class="reviews-container">
+ <div class="review-card">
+ <div class="stars">★★★★★</div>
+ <p>"A masterpiece that kept me awake all night."</p>
+ <cite>- The Literary Times</cite>
+ </div>
+ <div class="review-card">
+ <div class="stars">★★★★★</div>
+ <p>"Absolutely mind-bending. A must-read."</p>
+ <cite>- Book Lovers Weekly</cite>
+ </div>
+ </div>
+ </section>
+
+ <section id="purchase" class="purchase-section">
+ <h2>Get Your Copy Today</h2>
+ <form id="purchaseForm" class="purchase-form">
+ <div class="form-group">
+ <input type="text" id="name" required placeholder="Full Name">
+ </div>
+ <div class="form-group">
+ <input type="email" id="email" required placeholder="Email Address">
+ </div>
+ <div class="form-group">
+ <input type="text" id="address" required placeholder="Shipping Address">
+ </div>
+ <button type="submit" class="purchase-button">Purchase Now</button>
+ </form>
+ </section>
+</main>
+
+<footer>
+ <div class="footer-content">
+ <p>The Last Page - A Novel by Sarah Mitchell</p>
+ <p>Published by Scroll Publishing</p>
+ </div>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..5cc3b75
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://lastpage.scroll.pub
+metaTags
+editButton /edit.html
+title The Last Page - A Novel That Will Change Your Life
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..69d9cb0
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_019Smf7NFeCEX6VHBb1r3yx7",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a website for selling a single book. Let's make it for a fictional novel called \"The Last Page\".\n\n---domain---\nlastpage.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://lastpage.scroll.pub\nmetaTags\neditButton /edit.html\ntitle The Last Page - A Novel That Will Change Your Life\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header class=\"main-header\">\n <nav>\n <div class=\"logo\">The Last Page</div>\n <div class=\"nav-toggle\" id=\"navToggle\">\n <span></span><span></span><span></span>\n </div>\n <ul class=\"nav-links\">\n <li><a href=\"#book\">The Book</a></li>\n <li><a href=\"#author\">Author</a></li>\n <li><a href=\"#reviews\">Reviews</a></li>\n <li><a href=\"#purchase\" class=\"cta-button\">Buy Now</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"hero\" class=\"hero\">\n <div class=\"hero-content\">\n <h1>The Last Page</h1>\n <p class=\"tagline\">A journey that begins where others end</p>\n <a href=\"#purchase\" class=\"cta-button pulse\">Get Your Copy</a>\n </div>\n </section>\n\n <section id=\"book\" class=\"book-section\">\n <div class=\"book-container\">\n <div class=\"book-image\">\n <div class=\"book-cover\"></div>\n </div>\n <div class=\"book-details\">\n <h2>About the Book</h2>\n <p>In this captivating novel, reality and fiction intertwine as readers follow the story of a mysterious book that changes the life of everyone who reads its final page.</p>\n <ul class=\"book-specs\">\n <li>Hardcover: 324 pages</li>\n <li>Publisher: Scroll Publishing</li>\n <li>Language: English</li>\n <li>ISBN: 978-0-9876543-2-1</li>\n </ul>\n <div class=\"price\">$24.99</div>\n </div>\n </div>\n </section>\n\n <section id=\"author\" class=\"author-section\">\n <h2>Meet the Author</h2>\n <div class=\"author-content\">\n <div class=\"author-image\"></div>\n <div class=\"author-bio\">\n <h3>Sarah Mitchell</h3>\n <p>Award-winning author Sarah Mitchell brings her masterful storytelling to this groundbreaking novel that explores the boundaries between reality and fiction.</p>\n </div>\n </div>\n </section>\n\n <section id=\"reviews\" class=\"reviews-section\">\n <h2>Reader Reviews</h2>\n <div class=\"reviews-container\">\n <div class=\"review-card\">\n <div class=\"stars\">★★★★★</div>\n <p>\"A masterpiece that kept me awake all night.\"</p>\n <cite>- The Literary Times</cite>\n </div>\n <div class=\"review-card\">\n <div class=\"stars\">★★★★★</div>\n <p>\"Absolutely mind-bending. A must-read.\"</p>\n <cite>- Book Lovers Weekly</cite>\n </div>\n </div>\n </section>\n\n <section id=\"purchase\" class=\"purchase-section\">\n <h2>Get Your Copy Today</h2>\n <form id=\"purchaseForm\" class=\"purchase-form\">\n <div class=\"form-group\">\n <input type=\"text\" id=\"name\" required placeholder=\"Full Name\">\n </div>\n <div class=\"form-group\">\n <input type=\"email\" id=\"email\" required placeholder=\"Email Address\">\n </div>\n <div class=\"form-group\">\n <input type=\"text\" id=\"address\" required placeholder=\"Shipping Address\">\n </div>\n <button type=\"submit\" class=\"purchase-button\">Purchase Now</button>\n </form>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <p>The Last Page - A Novel by Sarah Mitchell</p>\n <p>Published by Scroll Publishing</p>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --accent-color: #e74c3c;\n --text-color: #333;\n --light-bg: #f5f6fa;\n --transition: all 0.3s ease;\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n}\n\n/* Header Styles */\n.main-header {\n position: fixed;\n width: 100%;\n background: rgba(255, 255, 255, 0.95);\n padding: 1rem;\n box-shadow: 0 2px 5px rgba(0,0,0,0.1);\n z-index: 1000;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n color: var(--primary-color);\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n max-width: 1200px;\n margin: 0 auto;\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: var(--transition);\n}\n\n.nav-links a:hover {\n color: var(--accent-color);\n}\n\n/* Hero Section */\n.hero {\n height: 100vh;\n background: linear-gradient(135deg, var(--primary-color), #34495e);\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n color: white;\n}\n\n.hero-content h1 {\n font-size: 4rem;\n margin-bottom: 1rem;\n animation: fadeIn 1s ease-out;\n}\n\n.tagline {\n font-size: 1.5rem;\n margin-bottom: 2rem;\n animation: slideUp 1s ease-out;\n}\n\n/* Book Section */\n.book-section {\n padding: 5rem 2rem;\n background: var(--light-bg);\n}\n\n.book-container {\n max-width: 1200px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 4rem;\n align-items: center;\n}\n\n.book-cover {\n aspect-ratio: 2/3;\n background: var(--primary-color);\n border-radius: 10px;\n box-shadow: 20px 20px 60px rgba(0,0,0,0.1),\n -20px -20px 60px rgba(255,255,255,0.8);\n transition: var(--transition);\n}\n\n.book-cover:hover {\n transform: rotate3d(1, 1, 1, 15deg);\n}\n\n/* Author Section */\n.author-section {\n padding: 5rem 2rem;\n text-align: center;\n}\n\n.author-content {\n max-width: 800px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: 1fr 2fr;\n gap: 2rem;\n align-items: center;\n}\n\n.author-image {\n width: 200px;\n height: 200px;\n border-radius: 50%;\n background: #ddd;\n margin: 0 auto;\n}\n\n/* Reviews Section */\n.reviews-section {\n padding: 5rem 2rem;\n background: var(--light-bg);\n}\n\n.reviews-container {\n max-width: 1200px;\n margin: 0 auto;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n}\n\n.review-card {\n background: white;\n padding: 2rem;\n border-radius: 10px;\n box-shadow: 0 5px 15px rgba(0,0,0,0.1);\n transition: var(--transition);\n}\n\n.review-card:hover {\n transform: translateY(-5px);\n}\n\n/* Purchase Section */\n.purchase-section {\n padding: 5rem 2rem;\n}\n\n.purchase-form {\n max-width: 600px;\n margin: 0 auto;\n}\n\n.form-group {\n margin-bottom: 1.5rem;\n}\n\ninput {\n width: 100%;\n padding: 1rem;\n border: 2px solid var(--primary-color);\n border-radius: 5px;\n font-size: 1rem;\n}\n\n/* Buttons */\n.cta-button, .purchase-button {\n display: inline-block;\n padding: 1rem 2rem;\n background: var(--accent-color);\n color: white;\n text-decoration: none;\n border-radius: 5px;\n border: none;\n font-size: 1.1rem;\n cursor: pointer;\n transition: var(--transition);\n}\n\n.cta-button:hover, .purchase-button:hover {\n background: #c0392b;\n transform: scale(1.05);\n}\n\n/* Animations */\n@keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n}\n\n@keyframes slideUp {\n from { transform: translateY(20px); opacity: 0; }\n to { transform: translateY(0); opacity: 1; }\n}\n\n/* Mobile Responsiveness */\n@media (max-width: 768px) {\n .nav-links {\n display: none;\n }\n \n .book-container {\n grid-template-columns: 1fr;\n }\n \n .author-content {\n grid-template-columns: 1fr;\n }\n \n .hero-content h1 {\n font-size: 2.5rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Smooth scrolling for anchor links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n document.querySelector(this.getAttribute('href')).scrollIntoView({\n behavior: 'smooth'\n });\n });\n });\n\n // Form submission handling\n const purchaseForm = document.getElementById('purchaseForm');\n if (purchaseForm) {\n purchaseForm.addEventListener('submit', function(e) {\n e.preventDefault();\n \n // Collect form data\n const formData = {\n name: document.getElementById('name').value,\n email: document.getElementById('email').value,\n address: document.getElementById('address').value\n };\n\n // Simple validation\n if (!formData.name || !formData.email || !formData.address) {\n alert('Please fill in all fields');\n return;\n }\n\n // Show success message\n alert('Thank you for your purchase! We will contact you shortly with payment details.');\n purchaseForm.reset();\n });\n }\n\n // Intersection Observer for fade-in animations\n const observerOptions = {\n threshold: 0.2\n };\n\n const observer = new IntersectionObserver((entries) => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n entry.target.style.opacity = '1';\n entry.target.style.transform = 'translateY(0)';\n }\n });\n }, observerOptions);\n\n // Observe all sections\n document.querySelectorAll('section').forEach(section => {\n section.style.opacity = '0';\n section.style.transform = 'translateY(20px)';\n section.style.transition = 'all 0.6s ease-out';\n observer.observe(section);\n });\n});\n\n---end---\n\nThis website features:\n- Clean, semantic HTML5 structure\n- Modern, responsive design with CSS Grid and Flexbox\n- Smooth scrolling navigation\n- Engaging animations and transitions\n- Form validation\n- Intersection Observer for scroll animations\n- Mobile-first approach\n- Accessible markup\n- SEO-friendly structure\n- Beautiful gradient backgrounds\n- Card-based design\n- 3D hover effects\n- Clean typography\n- Professional color scheme\n\nThe design is minimal yet sophisticated, focusing on the single product while maintaining visual interest through subtle animations and modern design elements."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 283,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 3334
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..ef70b23
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# lastpage.scroll.pub
+Website generated by Claude from prompt: create an blog website for a bookselling for only one book.
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..687f3b2
--- /dev/null
+++ b/script.js
@@ -0,0 +1,58 @@
+document.addEventListener('DOMContentLoaded', function() {
+ // Smooth scrolling for anchor links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function (e) {
+ e.preventDefault();
+ document.querySelector(this.getAttribute('href')).scrollIntoView({
+ behavior: 'smooth'
+ });
+ });
+ });
+
+ // Form submission handling
+ const purchaseForm = document.getElementById('purchaseForm');
+ if (purchaseForm) {
+ purchaseForm.addEventListener('submit', function(e) {
+ e.preventDefault();
+
+ // Collect form data
+ const formData = {
+ name: document.getElementById('name').value,
+ email: document.getElementById('email').value,
+ address: document.getElementById('address').value
+ };
+
+ // Simple validation
+ if (!formData.name || !formData.email || !formData.address) {
+ alert('Please fill in all fields');
+ return;
+ }
+
+ // Show success message
+ alert('Thank you for your purchase! We will contact you shortly with payment details.');
+ purchaseForm.reset();
+ });
+ }
+
+ // Intersection Observer for fade-in animations
+ const observerOptions = {
+ threshold: 0.2
+ };
+
+ const observer = new IntersectionObserver((entries) => {
+ entries.forEach(entry => {
+ if (entry.isIntersecting) {
+ entry.target.style.opacity = '1';
+ entry.target.style.transform = 'translateY(0)';
+ }
+ });
+ }, observerOptions);
+
+ // Observe all sections
+ document.querySelectorAll('section').forEach(section => {
+ section.style.opacity = '0';
+ section.style.transform = 'translateY(20px)';
+ section.style.transition = 'all 0.6s ease-out';
+ observer.observe(section);
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..d23d0dd
--- /dev/null
+++ b/style.css
@@ -0,0 +1,231 @@
+:root {
+ --primary-color: #2c3e50;
+ --accent-color: #e74c3c;
+ --text-color: #333;
+ --light-bg: #f5f6fa;
+ --transition: all 0.3s ease;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+}
+
+/* Header Styles */
+.main-header {
+ position: fixed;
+ width: 100%;
+ background: rgba(255, 255, 255, 0.95);
+ padding: 1rem;
+ box-shadow: 0 2px 5px rgba(0,0,0,0.1);
+ z-index: 1000;
+}
+
+.logo {
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: var(--primary-color);
+}
+
+nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.nav-links {
+ display: flex;
+ list-style: none;
+ gap: 2rem;
+}
+
+.nav-links a {
+ text-decoration: none;
+ color: var(--primary-color);
+ font-weight: 500;
+ transition: var(--transition);
+}
+
+.nav-links a:hover {
+ color: var(--accent-color);
+}
+
+/* Hero Section */
+.hero {
+ height: 100vh;
+ background: linear-gradient(135deg, var(--primary-color), #34495e);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ text-align: center;
+ color: white;
+}
+
+.hero-content h1 {
+ font-size: 4rem;
+ margin-bottom: 1rem;
+ animation: fadeIn 1s ease-out;
+}
+
+.tagline {
+ font-size: 1.5rem;
+ margin-bottom: 2rem;
+ animation: slideUp 1s ease-out;
+}
+
+/* Book Section */
+.book-section {
+ padding: 5rem 2rem;
+ background: var(--light-bg);
+}
+
+.book-container {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 4rem;
+ align-items: center;
+}
+
+.book-cover {
+ aspect-ratio: 2/3;
+ background: var(--primary-color);
+ border-radius: 10px;
+ box-shadow: 20px 20px 60px rgba(0,0,0,0.1),
+ -20px -20px 60px rgba(255,255,255,0.8);
+ transition: var(--transition);
+}
+
+.book-cover:hover {
+ transform: rotate3d(1, 1, 1, 15deg);
+}
+
+/* Author Section */
+.author-section {
+ padding: 5rem 2rem;
+ text-align: center;
+}
+
+.author-content {
+ max-width: 800px;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: 1fr 2fr;
+ gap: 2rem;
+ align-items: center;
+}
+
+.author-image {
+ width: 200px;
+ height: 200px;
+ border-radius: 50%;
+ background: #ddd;
+ margin: 0 auto;
+}
+
+/* Reviews Section */
+.reviews-section {
+ padding: 5rem 2rem;
+ background: var(--light-bg);
+}
+
+.reviews-container {
+ max-width: 1200px;
+ margin: 0 auto;
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+}
+
+.review-card {
+ background: white;
+ padding: 2rem;
+ border-radius: 10px;
+ box-shadow: 0 5px 15px rgba(0,0,0,0.1);
+ transition: var(--transition);
+}
+
+.review-card:hover {
+ transform: translateY(-5px);
+}
+
+/* Purchase Section */
+.purchase-section {
+ padding: 5rem 2rem;
+}
+
+.purchase-form {
+ max-width: 600px;
+ margin: 0 auto;
+}
+
+.form-group {
+ margin-bottom: 1.5rem;
+}
+
+input {
+ width: 100%;
+ padding: 1rem;
+ border: 2px solid var(--primary-color);
+ border-radius: 5px;
+ font-size: 1rem;
+}
+
+/* Buttons */
+.cta-button, .purchase-button {
+ display: inline-block;
+ padding: 1rem 2rem;
+ background: var(--accent-color);
+ color: white;
+ text-decoration: none;
+ border-radius: 5px;
+ border: none;
+ font-size: 1.1rem;
+ cursor: pointer;
+ transition: var(--transition);
+}
+
+.cta-button:hover, .purchase-button:hover {
+ background: #c0392b;
+ transform: scale(1.05);
+}
+
+/* Animations */
+@keyframes fadeIn {
+ from { opacity: 0; }
+ to { opacity: 1; }
+}
+
+@keyframes slideUp {
+ from { transform: translateY(20px); opacity: 0; }
+ to { transform: translateY(0); opacity: 1; }
+}
+
+/* Mobile Responsiveness */
+@media (max-width: 768px) {
+ .nav-links {
+ display: none;
+ }
+
+ .book-container {
+ grid-template-columns: 1fr;
+ }
+
+ .author-content {
+ grid-template-columns: 1fr;
+ }
+
+ .hero-content h1 {
+ font-size: 2.5rem;
+ }
+}