commit 14a37289d0872a5f8868335b618c3afd669ed77e
Author: root <root@hub.scroll.pub>
Date: 2024-12-28 08:34:28 +0000
Subject: Initial commit
diff --git a/body.html b/body.html
new file mode 100644
index 0000000..7f0ce27
--- /dev/null
+++ b/body.html
@@ -0,0 +1,107 @@
+<header>
+ <nav>
+ <div class="logo">Lebanese Civil War</div>
+ <button class="mobile-menu" aria-label="Toggle menu">
+ <span></span><span></span><span></span>
+ </button>
+ <ul class="nav-links">
+ <li><a href="#internal">Internal Factions</a></li>
+ <li><a href="#external">External Powers</a></li>
+ <li><a href="#timeline">Timeline</a></li>
+ </ul>
+ </nav>
+</header>
+
+<main>
+ <section class="hero">
+ <h1>Participants in the Lebanese Civil War</h1>
+ <p class="subtitle">1975-1990</p>
+ </section>
+
+ <section id="internal" class="faction-section">
+ <h2>Internal Factions</h2>
+ <div class="faction-grid">
+ <article class="faction-card">
+ <h3>Lebanese Front</h3>
+ <ul>
+ <li>Kataeb Party</li>
+ <li>Tigers Militia</li>
+ <li>Guardians of the Cedars</li>
+ </ul>
+ </article>
+ <article class="faction-card">
+ <h3>Lebanese National Movement</h3>
+ <ul>
+ <li>Progressive Socialist Party</li>
+ <li>Lebanese Communist Party</li>
+ <li>Syrian Social Nationalist Party</li>
+ </ul>
+ </article>
+ <article class="faction-card">
+ <h3>Lebanese Armed Forces</h3>
+ <ul>
+ <li>Regular Army</li>
+ <li>Army of Free Lebanon</li>
+ </ul>
+ </article>
+ </div>
+ </section>
+
+ <section id="external" class="faction-section">
+ <h2>External Powers</h2>
+ <div class="faction-grid">
+ <article class="faction-card">
+ <h3>Syria</h3>
+ <ul>
+ <li>Syrian Army</li>
+ <li>Syrian-backed militias</li>
+ </ul>
+ </article>
+ <article class="faction-card">
+ <h3>Israel</h3>
+ <ul>
+ <li>Israel Defense Forces</li>
+ <li>South Lebanon Army</li>
+ </ul>
+ </article>
+ <article class="faction-card">
+ <h3>Palestinian Groups</h3>
+ <ul>
+ <li>PLO</li>
+ <li>Palestinian Liberation Army</li>
+ </ul>
+ </article>
+ </div>
+ </section>
+
+ <section id="timeline" class="timeline-section">
+ <h2>Key Events Timeline</h2>
+ <div class="timeline">
+ <div class="timeline-item">
+ <div class="date">1975</div>
+ <div class="content">War begins</div>
+ </div>
+ <div class="timeline-item">
+ <div class="date">1976</div>
+ <div class="content">Syrian intervention</div>
+ </div>
+ <div class="timeline-item">
+ <div class="date">1982</div>
+ <div class="content">Israeli invasion</div>
+ </div>
+ <div class="timeline-item">
+ <div class="date">1990</div>
+ <div class="content">Taif Agreement ends war</div>
+ </div>
+ </div>
+ </section>
+</main>
+
+<footer>
+ <p>This website aims to provide historical information about the Lebanese Civil War</p>
+ <nav>
+ <a href="#internal">Internal Factions</a>
+ <a href="#external">External Powers</a>
+ <a href="#timeline">Timeline</a>
+ </nav>
+</footer>
diff --git a/index.scroll b/index.scroll
new file mode 100644
index 0000000..f9ed802
--- /dev/null
+++ b/index.scroll
@@ -0,0 +1,8 @@
+buildHtml
+baseUrl https://lebanon-conflict.scroll.pub
+metaTags
+editButton /edit.html
+title Lebanese Civil War Participants (1975-1990)
+style.css
+body.html
+script.js
diff --git a/prompt.json b/prompt.json
new file mode 100644
index 0000000..8f1c1b4
--- /dev/null
+++ b/prompt.json
@@ -0,0 +1,20 @@
+{
+ "id": "msg_01JPbKbXYnvNTCvyqExiwzoJ",
+ "type": "message",
+ "role": "assistant",
+ "model": "claude-3-5-sonnet-20241022",
+ "content": [
+ {
+ "type": "text",
+ "text": "I'll help create a website documenting the Lebanese Civil War participants. A fitting domain would be:\n\n---domain---\nlebanon-conflict.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://lebanon-conflict.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Lebanese Civil War Participants (1975-1990)\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">Lebanese Civil War</div>\n <button class=\"mobile-menu\" aria-label=\"Toggle menu\">\n <span></span><span></span><span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"#internal\">Internal Factions</a></li>\n <li><a href=\"#external\">External Powers</a></li>\n <li><a href=\"#timeline\">Timeline</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Participants in the Lebanese Civil War</h1>\n <p class=\"subtitle\">1975-1990</p>\n </section>\n\n <section id=\"internal\" class=\"faction-section\">\n <h2>Internal Factions</h2>\n <div class=\"faction-grid\">\n <article class=\"faction-card\">\n <h3>Lebanese Front</h3>\n <ul>\n <li>Kataeb Party</li>\n <li>Tigers Militia</li>\n <li>Guardians of the Cedars</li>\n </ul>\n </article>\n <article class=\"faction-card\">\n <h3>Lebanese National Movement</h3>\n <ul>\n <li>Progressive Socialist Party</li>\n <li>Lebanese Communist Party</li>\n <li>Syrian Social Nationalist Party</li>\n </ul>\n </article>\n <article class=\"faction-card\">\n <h3>Lebanese Armed Forces</h3>\n <ul>\n <li>Regular Army</li>\n <li>Army of Free Lebanon</li>\n </ul>\n </article>\n </div>\n </section>\n\n <section id=\"external\" class=\"faction-section\">\n <h2>External Powers</h2>\n <div class=\"faction-grid\">\n <article class=\"faction-card\">\n <h3>Syria</h3>\n <ul>\n <li>Syrian Army</li>\n <li>Syrian-backed militias</li>\n </ul>\n </article>\n <article class=\"faction-card\">\n <h3>Israel</h3>\n <ul>\n <li>Israel Defense Forces</li>\n <li>South Lebanon Army</li>\n </ul>\n </article>\n <article class=\"faction-card\">\n <h3>Palestinian Groups</h3>\n <ul>\n <li>PLO</li>\n <li>Palestinian Liberation Army</li>\n </ul>\n </article>\n </div>\n </section>\n\n <section id=\"timeline\" class=\"timeline-section\">\n <h2>Key Events Timeline</h2>\n <div class=\"timeline\">\n <div class=\"timeline-item\">\n <div class=\"date\">1975</div>\n <div class=\"content\">War begins</div>\n </div>\n <div class=\"timeline-item\">\n <div class=\"date\">1976</div>\n <div class=\"content\">Syrian intervention</div>\n </div>\n <div class=\"timeline-item\">\n <div class=\"date\">1982</div>\n <div class=\"content\">Israeli invasion</div>\n </div>\n <div class=\"timeline-item\">\n <div class=\"date\">1990</div>\n <div class=\"content\">Taif Agreement ends war</div>\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <p>This website aims to provide historical information about the Lebanese Civil War</p>\n <nav>\n <a href=\"#internal\">Internal Factions</a>\n <a href=\"#external\">External Powers</a>\n <a href=\"#timeline\">Timeline</a>\n </nav>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #8b0000;\n --secondary-color: #f4f4f4;\n --text-color: #333;\n --card-bg: #fff;\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', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n}\n\nheader {\n background: var(--primary-color);\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 1000;\n box-shadow: 0 2px 5px rgba(0,0,0,0.2);\n}\n\nnav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 5%;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.logo {\n color: white;\n font-size: 1.5rem;\n font-weight: bold;\n}\n\n.nav-links {\n display: flex;\n list-style: none;\n gap: 2rem;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n transition: var(--transition);\n}\n\n.nav-links a:hover {\n color: var(--secondary-color);\n}\n\n.mobile-menu {\n display: none;\n}\n\nmain {\n margin-top: 4rem;\n padding: 2rem 5%;\n}\n\n.hero {\n text-align: center;\n padding: 4rem 0;\n background: linear-gradient(rgba(139,0,0,0.9), rgba(139,0,0,0.7));\n color: white;\n margin: -2rem -5.5% 2rem;\n}\n\n.hero h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n}\n\n.faction-section {\n margin: 4rem 0;\n}\n\nh2 {\n text-align: center;\n margin-bottom: 2rem;\n color: var(--primary-color);\n}\n\n.faction-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));\n gap: 2rem;\n margin: 2rem 0;\n}\n\n.faction-card {\n background: var(--card-bg);\n padding: 2rem;\n border-radius: 8px;\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n transition: var(--transition);\n}\n\n.faction-card:hover {\n transform: translateY(-5px);\n box-shadow: 0 6px 12px rgba(0,0,0,0.15);\n}\n\n.faction-card h3 {\n color: var(--primary-color);\n margin-bottom: 1rem;\n}\n\n.faction-card ul {\n list-style-position: inside;\n}\n\n.timeline {\n max-width: 800px;\n margin: 0 auto;\n position: relative;\n}\n\n.timeline::before {\n content: '';\n position: absolute;\n width: 2px;\n background: var(--primary-color);\n top: 0;\n bottom: 0;\n left: 50%;\n transform: translateX(-50%);\n}\n\n.timeline-item {\n padding: 2rem 0;\n position: relative;\n width: 50%;\n}\n\n.timeline-item:nth-child(odd) {\n left: 0;\n padding-right: 2rem;\n}\n\n.timeline-item:nth-child(even) {\n left: 50%;\n padding-left: 2rem;\n}\n\n.timeline-item::before {\n content: '';\n position: absolute;\n width: 20px;\n height: 20px;\n background: var(--primary-color);\n border-radius: 50%;\n top: 50%;\n}\n\n.timeline-item:nth-child(odd)::before {\n right: -10px;\n}\n\n.timeline-item:nth-child(even)::before {\n left: -10px;\n}\n\nfooter {\n background: var(--secondary-color);\n padding: 2rem 5%;\n text-align: center;\n margin-top: 4rem;\n}\n\nfooter nav {\n display: flex;\n justify-content: center;\n gap: 2rem;\n margin-top: 1rem;\n}\n\nfooter a {\n color: var(--primary-color);\n text-decoration: none;\n}\n\n@media (max-width: 768px) {\n .mobile-menu {\n display: block;\n background: none;\n border: none;\n cursor: pointer;\n }\n\n .mobile-menu span {\n display: block;\n width: 25px;\n height: 3px;\n background: white;\n margin: 5px 0;\n transition: var(--transition);\n }\n\n .nav-links {\n display: none;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: var(--primary-color);\n flex-direction: column;\n padding: 1rem;\n text-align: center;\n }\n\n .nav-links.active {\n display: flex;\n }\n\n .timeline::before {\n left: 0;\n }\n\n .timeline-item {\n width: 100%;\n padding-left: 2rem;\n }\n\n .timeline-item:nth-child(even) {\n left: 0;\n }\n\n .timeline-item::before {\n left: -10px;\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n const mobileMenu = document.querySelector('.mobile-menu');\n const navLinks = document.querySelector('.nav-links');\n\n mobileMenu.addEventListener('click', function() {\n navLinks.classList.toggle('active');\n \n const spans = this.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(7px, -7px)' \n : 'none';\n });\n\n // Smooth scrolling for anchor links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function(e) {\n e.preventDefault();\n const targetId = this.getAttribute('href');\n const targetElement = document.querySelector(targetId);\n \n if (targetElement) {\n const headerOffset = 80;\n const elementPosition = targetElement.getBoundingClientRect().top;\n const offsetPosition = elementPosition + window.pageYOffset - headerOffset;\n\n window.scrollTo({\n top: offsetPosition,\n behavior: 'smooth'\n });\n\n // Close mobile menu if open\n navLinks.classList.remove('active');\n }\n });\n });\n});\n\n---end---"
+ }
+ ],
+ "stop_reason": "end_turn",
+ "stop_sequence": null,
+ "usage": {
+ "input_tokens": 278,
+ "cache_creation_input_tokens": 0,
+ "cache_read_input_tokens": 0,
+ "output_tokens": 2998
+ }
+}
\ No newline at end of file
diff --git a/readme.scroll b/readme.scroll
new file mode 100644
index 0000000..427ef89
--- /dev/null
+++ b/readme.scroll
@@ -0,0 +1,2 @@
+# lebanon-conflict.scroll.pub
+Website generated by Claude from prompt: Show all participants in the Lebanese civil war
\ No newline at end of file
diff --git a/script.js b/script.js
new file mode 100644
index 0000000..05ba839
--- /dev/null
+++ b/script.js
@@ -0,0 +1,42 @@
+document.addEventListener('DOMContentLoaded', function() {
+ const mobileMenu = document.querySelector('.mobile-menu');
+ const navLinks = document.querySelector('.nav-links');
+
+ mobileMenu.addEventListener('click', function() {
+ navLinks.classList.toggle('active');
+
+ const spans = this.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(7px, -7px)'
+ : 'none';
+ });
+
+ // Smooth scrolling for anchor links
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
+ anchor.addEventListener('click', function(e) {
+ e.preventDefault();
+ const targetId = this.getAttribute('href');
+ const targetElement = document.querySelector(targetId);
+
+ if (targetElement) {
+ const headerOffset = 80;
+ const elementPosition = targetElement.getBoundingClientRect().top;
+ const offsetPosition = elementPosition + window.pageYOffset - headerOffset;
+
+ window.scrollTo({
+ top: offsetPosition,
+ behavior: 'smooth'
+ });
+
+ // Close mobile menu if open
+ navLinks.classList.remove('active');
+ }
+ });
+ });
+});
diff --git a/style.css b/style.css
new file mode 100644
index 0000000..49e3277
--- /dev/null
+++ b/style.css
@@ -0,0 +1,241 @@
+:root {
+ --primary-color: #8b0000;
+ --secondary-color: #f4f4f4;
+ --text-color: #333;
+ --card-bg: #fff;
+ --transition: all 0.3s ease;
+}
+
+* {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+}
+
+body {
+ font-family: 'Segoe UI', system-ui, sans-serif;
+ line-height: 1.6;
+ color: var(--text-color);
+}
+
+header {
+ background: var(--primary-color);
+ position: fixed;
+ width: 100%;
+ top: 0;
+ z-index: 1000;
+ box-shadow: 0 2px 5px rgba(0,0,0,0.2);
+}
+
+nav {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem 5%;
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.logo {
+ color: white;
+ font-size: 1.5rem;
+ font-weight: bold;
+}
+
+.nav-links {
+ display: flex;
+ list-style: none;
+ gap: 2rem;
+}
+
+.nav-links a {
+ color: white;
+ text-decoration: none;
+ transition: var(--transition);
+}
+
+.nav-links a:hover {
+ color: var(--secondary-color);
+}
+
+.mobile-menu {
+ display: none;
+}
+
+main {
+ margin-top: 4rem;
+ padding: 2rem 5%;
+}
+
+.hero {
+ text-align: center;
+ padding: 4rem 0;
+ background: linear-gradient(rgba(139,0,0,0.9), rgba(139,0,0,0.7));
+ color: white;
+ margin: -2rem -5.5% 2rem;
+}
+
+.hero h1 {
+ font-size: 3rem;
+ margin-bottom: 1rem;
+}
+
+.faction-section {
+ margin: 4rem 0;
+}
+
+h2 {
+ text-align: center;
+ margin-bottom: 2rem;
+ color: var(--primary-color);
+}
+
+.faction-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
+ gap: 2rem;
+ margin: 2rem 0;
+}
+
+.faction-card {
+ background: var(--card-bg);
+ padding: 2rem;
+ border-radius: 8px;
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
+ transition: var(--transition);
+}
+
+.faction-card:hover {
+ transform: translateY(-5px);
+ box-shadow: 0 6px 12px rgba(0,0,0,0.15);
+}
+
+.faction-card h3 {
+ color: var(--primary-color);
+ margin-bottom: 1rem;
+}
+
+.faction-card ul {
+ list-style-position: inside;
+}
+
+.timeline {
+ max-width: 800px;
+ margin: 0 auto;
+ position: relative;
+}
+
+.timeline::before {
+ content: '';
+ position: absolute;
+ width: 2px;
+ background: var(--primary-color);
+ top: 0;
+ bottom: 0;
+ left: 50%;
+ transform: translateX(-50%);
+}
+
+.timeline-item {
+ padding: 2rem 0;
+ position: relative;
+ width: 50%;
+}
+
+.timeline-item:nth-child(odd) {
+ left: 0;
+ padding-right: 2rem;
+}
+
+.timeline-item:nth-child(even) {
+ left: 50%;
+ padding-left: 2rem;
+}
+
+.timeline-item::before {
+ content: '';
+ position: absolute;
+ width: 20px;
+ height: 20px;
+ background: var(--primary-color);
+ border-radius: 50%;
+ top: 50%;
+}
+
+.timeline-item:nth-child(odd)::before {
+ right: -10px;
+}
+
+.timeline-item:nth-child(even)::before {
+ left: -10px;
+}
+
+footer {
+ background: var(--secondary-color);
+ padding: 2rem 5%;
+ text-align: center;
+ margin-top: 4rem;
+}
+
+footer nav {
+ display: flex;
+ justify-content: center;
+ gap: 2rem;
+ margin-top: 1rem;
+}
+
+footer a {
+ color: var(--primary-color);
+ text-decoration: none;
+}
+
+@media (max-width: 768px) {
+ .mobile-menu {
+ display: block;
+ background: none;
+ border: none;
+ cursor: pointer;
+ }
+
+ .mobile-menu span {
+ display: block;
+ width: 25px;
+ height: 3px;
+ background: white;
+ margin: 5px 0;
+ transition: var(--transition);
+ }
+
+ .nav-links {
+ display: none;
+ position: absolute;
+ top: 100%;
+ left: 0;
+ right: 0;
+ background: var(--primary-color);
+ flex-direction: column;
+ padding: 1rem;
+ text-align: center;
+ }
+
+ .nav-links.active {
+ display: flex;
+ }
+
+ .timeline::before {
+ left: 0;
+ }
+
+ .timeline-item {
+ width: 100%;
+ padding-left: 2rem;
+ }
+
+ .timeline-item:nth-child(even) {
+ left: 0;
+ }
+
+ .timeline-item::before {
+ left: -10px;
+ }
+}