commit cd29ef38771cd7ab443aaca07ca4dbfd94d6c5a1
Author: root <root@hub.scroll.pub> Date: 2024-12-27 07:54:42 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..b193289 --- /dev/null +++ b/body.html @@ -0,0 +1,72 @@ +<header> + <nav class="main-nav"> + <div class="logo">Prose</div> + <button class="menu-toggle" aria-label="Toggle menu"> + <span></span> + <span></span> + <span></span> + </button> + <ul class="nav-links"> + <li><a href="/" aria-current="page">Home</a></li> + <li><a href="/articles">Articles</a></li> + <li><a href="/about">About</a></li> + </ul> + </nav> +</header> + +<main> + <section class="hero"> + <h1>Welcome to Prose</h1> + <p>Thoughts and ideas that matter</p> + </section> + + <section class="featured-posts"> + <h2>Latest Articles</h2> + <div class="post-grid"> + <article class="post-card"> + <div class="post-image"></div> + <div class="post-content"> + <h3>The Art of Mindful Living</h3> + <p>Exploring the principles of mindfulness in our daily lives...</p> + <time datetime="2024-01-20">Jan 20, 2024</time> + </div> + </article> + <article class="post-card"> + <div class="post-image"></div> + <div class="post-content"> + <h3>Future of Technology</h3> + <p>Examining emerging trends shaping our digital world...</p> + <time datetime="2024-01-18">Jan 18, 2024</time> + </div> + </article> + <article class="post-card"> + <div class="post-image"></div> + <div class="post-content"> + <h3>Sustainable Living</h3> + <p>Simple steps toward an eco-friendly lifestyle...</p> + <time datetime="2024-01-15">Jan 15, 2024</time> + </div> + </article> + </div> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h4>Navigation</h4> + <ul> + <li><a href="/">Home</a></li> + <li><a href="/articles">Articles</a></li> + <li><a href="/about">About</a></li> + </ul> + </div> + <div class="footer-section"> + <h4>Connect</h4> + <ul> + <li><a href="/contact">Contact</a></li> + <li><a href="/newsletter">Newsletter</a></li> + </ul> + </div> + </div> +</footer> \ No newline at end of file diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..6fd83e5 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://prose.scroll.pub +metaTags +editButton /edit.html +title Prose | Modern Thoughts +style.css +body.html +script.js \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..3d39a4c --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# prose1.scroll.pub +Website generated by Claude from prompt: a blog \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..66eb4b4 --- /dev/null +++ b/script.js @@ -0,0 +1,39 @@ +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(); + document.querySelector(this.getAttribute('href')).scrollIntoView({ + behavior: 'smooth' + }); + }); + }); + + // Add 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); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..17f6a11 --- /dev/null +++ b/style.css @@ -0,0 +1,229 @@ +:root { + --primary-color: #2d3436; + --accent-color: #6c5ce7; + --text-color: #2d3436; + --background-color: #ffffff; + --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); + --transition: all 0.3s ease; +} + +* { + 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); +} + +/* Header & Navigation */ +.main-nav { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem 5%; + background: rgba(255, 255, 255, 0.95); + backdrop-filter: blur(10px); + position: sticky; + top: 0; + z-index: 1000; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); +} + +.logo { + font-size: 1.8rem; + font-weight: 700; + color: var(--primary-color); +} + +.nav-links { + display: flex; + gap: 2rem; + list-style: none; +} + +.nav-links a { + text-decoration: none; + color: var(--text-color); + font-weight: 500; + transition: var(--transition); +} + +.nav-links a:hover { + color: var(--accent-color); +} + +.menu-toggle { + display: none; +} + +/* Hero Section */ +.hero { + height: 60vh; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + background: linear-gradient(135deg, #a8e6cf 0%, #6c5ce7 100%); + color: white; + padding: 2rem; +} + +.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; +} + +/* Posts Grid */ +.featured-posts { + padding: 4rem 5%; +} + +.featured-posts h2 { + text-align: center; + margin-bottom: 3rem; + font-size: 2rem; +} + +.post-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); + gap: 2rem; + max-width: 1200px; + margin: 0 auto; +} + +.post-card { + background: white; + border-radius: 15px; + overflow: hidden; + box-shadow: var(--card-shadow); + transition: var(--transition); +} + +.post-card:hover { + transform: translateY(-5px); + box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15); +} + +.post-image { + height: 200px; + background: linear-gradient(45deg, #a8e6cf, #6c5ce7); +} + +.post-content { + padding: 1.5rem; +} + +.post-content h3 { + margin-bottom: 0.5rem; + color: var(--primary-color); +} + +.post-content time { + color: #666; + font-size: 0.9rem; +} + +/* Footer */ +footer { + background: var(--primary-color); + color: white; + padding: 3rem 5%; +} + +.footer-content { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; + max-width: 1200px; + margin: 0 auto; +} + +.footer-section h4 { + margin-bottom: 1rem; +} + +.footer-section ul { + list-style: none; +} + +.footer-section a { + color: white; + text-decoration: none; + opacity: 0.8; + transition: var(--transition); +} + +.footer-section a:hover { + opacity: 1; +} + +/* Animations */ +@keyframes fadeInUp { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +/* Mobile Responsiveness */ +@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: var(--transition); + } + + .nav-links { + display: none; + position: absolute; + top: 100%; + left: 0; + right: 0; + background: white; + flex-direction: column; + padding: 1rem; + text-align: center; + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + } + + .nav-links.active { + display: flex; + } + + .hero h1 { + font-size: 2.5rem; + } + + .hero p { + font-size: 1.2rem; + } +} \ No newline at end of file