commit 3c0f7c0263dd6b31a4e5b7db5ce94604e76e3acc
Author: root <root@hub.scroll.pub>
Date: 2025-01-14 13:24:26 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..7c8c2eb
--- /dev/null
+++ b/body.html
@@ -0,0 +1,75 @@
+<header>
+ <nav class="main-nav">
+ <div class="logo">TechNews</div>
+ <button class="menu-toggle" aria-label="Toggle menu">
+ <span></span><span></span><span></span>
+ </button>
+ <ul class="nav-links">
+ <li><a href="/">Home</a></li>
+ <li><a href="/innovation">Innovation</a></li>
+ <li><a href="/business">Business</a></li>
+ <li><a href="/gadgets">Gadgets</a></li>
+ <li><a href="/ai">AI</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section class="hero">
+ <h1>Latest in Technology</h1>
+ <div class="featured-article">
+ <img src="featured.jpg" alt="AI Technology visualization" loading="lazy">
+ <div class="featured-content">
+ <h2>The Future of AI in 2024</h2>
+ <p>Exploring groundbreaking developments in artificial intelligence and their impact on society.</p>
+ <a href="/ai-future" class="read-more">Read More</a>
+ </div>
+ </div>
+ </section>
+
+ <section class="articles-grid">
+ <article class="card">
+ <div class="card-image"></div>
+ <div class="card-content">
+ <h3>Quantum Computing Breakthrough</h3>
+ <p>Scientists achieve new milestone in quantum supremacy...</p>
+ <a href="/quantum-news" class="read-more">Continue Reading</a>
+ </div>
+ </article>
+
+ <article class="card">
+ <div class="card-image"></div>
+ <div class="card-content">
+ <h3>Green Tech Innovation</h3>
+ <p>Sustainable technology solutions reshaping industries...</p>
+ <a href="/green-tech" class="read-more">Continue Reading</a>
+ </div>
+ </article>
+
+ <article class="card">
+ <div class="card-image"></div>
+ <div class="card-content">
+ <h3>Cybersecurity Updates</h3>
+ <p>Latest developments in digital security...</p>
+ <a href="/security" class="read-more">Continue Reading</a>
+ </div>
+ </article>
+ </section>
+</main>
+
+<footer>
+ <div class="footer-content">
+ <div class="footer-section">
+ <h4>About TechNews</h4>
+ <p>Your trusted source for technology news and innovation updates.</p>
+ </div>
+ <div class="footer-section">
+ <h4>Quick Links</h4>
+ <ul>
+ <li><a href="/about">About Us</a></li>
+ <li><a href="/contact">Contact</a></li>
+ <li><a href="/privacy">Privacy Policy</a></li>
+ </ul>
+ </div>
+ </div>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..f7b1160
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://technews.scroll.pub
+metaTags
+editButton /edit.html
+title TechNews - Latest Technology Updates & Innovation
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..8e90801
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_012Cd2mGTENSnJX78jyiSDSn",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll create a modern, clean technology news website. For the domain, I suggest:\n\n---domain---\ntechnews.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://technews.scroll.pub\nmetaTags\neditButton /edit.html\ntitle TechNews - Latest Technology Updates & Innovation\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav class=\"main-nav\">\n <div class=\"logo\">TechNews</div>\n <button class=\"menu-toggle\" aria-label=\"Toggle menu\">\n <span></span><span></span><span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"/\">Home</a></li>\n <li><a href=\"/innovation\">Innovation</a></li>\n <li><a href=\"/business\">Business</a></li>\n <li><a href=\"/gadgets\">Gadgets</a></li>\n <li><a href=\"/ai\">AI</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Latest in Technology</h1>\n <div class=\"featured-article\">\n <img src=\"featured.jpg\" alt=\"AI Technology visualization\" loading=\"lazy\">\n <div class=\"featured-content\">\n <h2>The Future of AI in 2024</h2>\n <p>Exploring groundbreaking developments in artificial intelligence and their impact on society.</p>\n <a href=\"/ai-future\" class=\"read-more\">Read More</a>\n </div>\n </div>\n </section>\n\n <section class=\"articles-grid\">\n <article class=\"card\">\n <div class=\"card-image\"></div>\n <div class=\"card-content\">\n <h3>Quantum Computing Breakthrough</h3>\n <p>Scientists achieve new milestone in quantum supremacy...</p>\n <a href=\"/quantum-news\" class=\"read-more\">Continue Reading</a>\n </div>\n </article>\n\n <article class=\"card\">\n <div class=\"card-image\"></div>\n <div class=\"card-content\">\n <h3>Green Tech Innovation</h3>\n <p>Sustainable technology solutions reshaping industries...</p>\n <a href=\"/green-tech\" class=\"read-more\">Continue Reading</a>\n </div>\n </article>\n\n <article class=\"card\">\n <div class=\"card-image\"></div>\n <div class=\"card-content\">\n <h3>Cybersecurity Updates</h3>\n <p>Latest developments in digital security...</p>\n <a href=\"/security\" class=\"read-more\">Continue Reading</a>\n </div>\n </article>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>About TechNews</h4>\n <p>Your trusted source for technology news and innovation updates.</p>\n </div>\n <div class=\"footer-section\">\n <h4>Quick Links</h4>\n <ul>\n <li><a href=\"/about\">About Us</a></li>\n <li><a href=\"/contact\">Contact</a></li>\n <li><a href=\"/privacy\">Privacy Policy</a></li>\n </ul>\n </div>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2a6bf2;\n --secondary-color: #1d4ed8;\n --text-color: #333;\n --bg-color: #f8fafc;\n --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);\n}\n\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: system-ui, -apple-system, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n background: var(--bg-color);\n}\n\n.main-nav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 5%;\n background: white;\n box-shadow: var(--card-shadow);\n position: sticky;\n top: 0;\n z-index: 100;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: 700;\n color: var(--primary-color);\n}\n\n.nav-links {\n display: flex;\n gap: 2rem;\n list-style: none;\n}\n\n.nav-links a {\n text-decoration: none;\n color: var(--text-color);\n font-weight: 500;\n transition: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--primary-color);\n}\n\n.menu-toggle {\n display: none;\n}\n\n.hero {\n padding: 4rem 5%;\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n color: white;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 2rem;\n}\n\n.featured-article {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 2rem;\n background: white;\n border-radius: 1rem;\n overflow: hidden;\n box-shadow: var(--card-shadow);\n}\n\n.featured-article img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n}\n\n.featured-content {\n padding: 2rem;\n}\n\n.articles-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n padding: 4rem 5%;\n}\n\n.card {\n background: white;\n border-radius: 1rem;\n overflow: hidden;\n box-shadow: var(--card-shadow);\n transition: transform 0.3s ease;\n}\n\n.card:hover {\n transform: translateY(-5px);\n}\n\n.card-image {\n height: 200px;\n background: var(--primary-color);\n opacity: 0.8;\n}\n\n.card-content {\n padding: 1.5rem;\n}\n\n.read-more {\n display: inline-block;\n padding: 0.5rem 1rem;\n margin-top: 1rem;\n background: var(--primary-color);\n color: white;\n text-decoration: none;\n border-radius: 0.5rem;\n transition: background 0.3s ease;\n}\n\n.read-more:hover {\n background: var(--secondary-color);\n}\n\nfooter {\n background: white;\n padding: 4rem 5%;\n margin-top: 4rem;\n}\n\n.footer-content {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n}\n\n.footer-section ul {\n list-style: none;\n}\n\n.footer-section a {\n color: var(--text-color);\n text-decoration: none;\n}\n\n@media (max-width: 768px) {\n .menu-toggle {\n display: block;\n background: none;\n border: none;\n cursor: pointer;\n }\n\n .menu-toggle span {\n display: block;\n width: 25px;\n height: 3px;\n background: var(--text-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 gap: 1rem;\n }\n\n .nav-links.active {\n display: flex;\n }\n\n .featured-article {\n grid-template-columns: 1fr;\n }\n\n .hero h1 {\n font-size: 2rem;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\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 const spans = menuToggle.querySelectorAll('span');\n spans[0].style.transform = navLinks.classList.contains('active') \n ? 'rotate(45deg) translate(8px, 8px)' \n : 'none';\n spans[1].style.opacity = navLinks.classList.contains('active') \n ? '0' \n : '1';\n spans[2].style.transform = navLinks.classList.contains('active') \n ? 'rotate(-45deg) translate(5px, -5px)' \n : 'none';\n });\n\n // Smooth scroll 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 // Add intersection observer for fade-in animations\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 });\n\n document.querySelectorAll('.card').forEach(card => {\n card.style.opacity = '0';\n card.style.transform = 'translateY(20px)';\n card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';\n observer.observe(card);\n });\n});\n\n---end---\n\nThis implementation features:\n- Clean, semantic HTML5 structure\n- Modern CSS with variables, grid, and flexbox\n- Smooth animations and transitions\n- Mobile-first responsive design\n- Accessible navigation\n- Performance optimizations\n- Intersection Observer for scroll animations\n- Beautiful gradient and shadow effects\n- Card-based layout\n- Hamburger menu for mobile\n- Sticky navigation\n- Hover effects\n- Clean typography\n\nThe design is professional yet engaging, with careful attention to spacing, typography, and visual hierarchy. The color scheme is modern and trustworthy, while animations add polish without being overwhelming."
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 285,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2733
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..f9b56af
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,3 @@
+# technews.scroll.pub
+
+website generated by Claude from prompt: change https://www.independent.ie/business/technology into something better
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..7aac0d2
--- /dev/null
+++ b/script.js
@@ -0,0 +1,46 @@
+document.addEventListener('DOMContentLoaded', () => {
+ const menuToggle = document.querySelector('.menu-toggle');
+ const navLinks = document.querySelector('.nav-links');
+
+ menuToggle.addEventListener('click', () => {
+ navLinks.classList.toggle('active');
+
+ const spans = menuToggle.querySelectorAll('span');
+ spans[0].style.transform = navLinks.classList.contains('active')
+ ? 'rotate(45deg) translate(8px, 8px)'
+ : 'none';
+ spans[1].style.opacity = navLinks.classList.contains('active')
+ ? '0'
+ : '1';
+ spans[2].style.transform = navLinks.classList.contains('active')
+ ? 'rotate(-45deg) translate(5px, -5px)'
+ : 'none';
+ });
+
+ // Smooth scroll for anchor 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.style.opacity = '1';
+ entry.target.style.transform = 'translateY(0)';
+ }
+ });
+ });
+
+ document.querySelectorAll('.card').forEach(card => {
+ card.style.opacity = '0';
+ card.style.transform = 'translateY(20px)';
+ card.style.transition = 'opacity 0.5s ease, transform 0.5s ease';
+ observer.observe(card);
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..c081a93
--- /dev/null
+++ b/style.css
@@ -0,0 +1,197 @@
+:root {
+ --primary-color: #2a6bf2;
+ --secondary-color: #1d4ed8;
+ --text-color: #333;
+ --bg-color: #f8fafc;
+ --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: system-ui, -apple-system, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+ background: var(--bg-color);
+}
+
+.main-nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem 5%;
+ background: white;
+ box-shadow: var(--card-shadow);
+ position: sticky;
+ top: 0;
+ z-index: 100;
+}
+
+.logo {
+ font-size: 1.5rem;
+ 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: color 0.3s ease;
+}
+
+.nav-links a:hover {
+ color: var(--primary-color);
+}
+
+.menu-toggle {
+ display: none;
+}
+
+.hero {
+ padding: 4rem 5%;
+ background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
+ color: white;
+}
+
+.hero h1 {
+ font-size: 3rem;
+ margin-bottom: 2rem;
+}
+
+.featured-article {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 2rem;
+ background: white;
+ border-radius: 1rem;
+ overflow: hidden;
+ box-shadow: var(--card-shadow);
+}
+
+.featured-article img {
+ width: 100%;
+ height: 100%;
+ object-fit: cover;
+}
+
+.featured-content {
+ padding: 2rem;
+}
+
+.articles-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+ padding: 4rem 5%;
+}
+
+.card {
+ background: white;
+ border-radius: 1rem;
+ overflow: hidden;
+ box-shadow: var(--card-shadow);
+ transition: transform 0.3s ease;
+}
+
+.card:hover {
+ transform: translateY(-5px);
+}
+
+.card-image {
+ height: 200px;
+ background: var(--primary-color);
+ opacity: 0.8;
+}
+
+.card-content {
+ padding: 1.5rem;
+}
+
+.read-more {
+ display: inline-block;
+ padding: 0.5rem 1rem;
+ margin-top: 1rem;
+ background: var(--primary-color);
+ color: white;
+ text-decoration: none;
+ border-radius: 0.5rem;
+ transition: background 0.3s ease;
+}
+
+.read-more:hover {
+ background: var(--secondary-color);
+}
+
+footer {
+ background: white;
+ padding: 4rem 5%;
+ margin-top: 4rem;
+}
+
+.footer-content {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
+ gap: 2rem;
+}
+
+.footer-section ul {
+ list-style: none;
+}
+
+.footer-section a {
+ color: var(--text-color);
+ text-decoration: none;
+}
+
+@media (max-width: 768px) {
+ .menu-toggle {
+ display: block;
+ background: none;
+ border: none;
+ cursor: pointer;
+ }
+
+ .menu-toggle span {
+ display: block;
+ width: 25px;
+ height: 3px;
+ background: var(--text-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;
+ gap: 1rem;
+ }
+
+ .nav-links.active {
+ display: flex;
+ }
+
+ .featured-article {
+ grid-template-columns: 1fr;
+ }
+
+ .hero h1 {
+ font-size: 2rem;
+ }
+}