commit 73aa4b81ea4d2a3c35e9cbbcbd8dcc618a85bfae
Author: root <root@hub.scroll.pub> Date: 2025-01-08 00:51:20 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..4478b79 --- /dev/null +++ b/body.html @@ -0,0 +1,75 @@ +<header> + <nav> + <div class="logo">AfricanTunes</div> + <button class="mobile-menu" aria-label="Toggle menu"> + <span></span><span></span><span></span> + </button> + <ul class="nav-links"> + <li><a href="#featured">Featured</a></li> + <li><a href="#regions">Regions</a></li> + <li><a href="#artists">Artists</a></li> + <li><a href="#about">About</a></li> + </ul> + </nav> +</header> + +<main> + <section class="hero"> + <h1>Discover African Music</h1> + <p>Explore traditional and modern sounds from across the continent</p> + </section> + + <section id="featured" class="featured"> + <h2>Featured Countries</h2> + <div class="country-grid"> + <article class="country-card"> + <div class="card-image" data-country="mali"></div> + <h3>Mali</h3> + <p>Home of the griots and desert blues</p> + </article> + <article class="country-card"> + <div class="card-image" data-country="nigeria"></div> + <h3>Nigeria</h3> + <p>Afrobeat birthplace and highlife heritage</p> + </article> + <article class="country-card"> + <div class="card-image" data-country="senegal"></div> + <h3>Senegal</h3> + <p>Mbalax rhythms and Sabar traditions</p> + </article> + <article class="country-card"> + <div class="card-image" data-country="ethiopia"></div> + <h3>Ethiopia</h3> + <p>Ethio-jazz and ancient scales</p> + </article> + </div> + </section> + + <section id="regions" class="regions"> + <h2>Explore by Region</h2> + <div class="region-map"> + <div class="map-interactive"></div> + <div class="region-info"> + <h3>Click a region to explore</h3> + <p>Discover unique musical traditions</p> + </div> + </div> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h4>AfricanTunes</h4> + <p>Celebrating the rich musical heritage of Africa</p> + </div> + <div class="footer-section"> + <h4>Quick Links</h4> + <ul> + <li><a href="#featured">Featured</a></li> + <li><a href="#regions">Regions</a></li> + <li><a href="#artists">Artists</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..972838e --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://africantunes.scroll.pub +metaTags +editButton /edit.html +title African Country Music Index | Discover Traditional & Modern African Music +style.css +body.html +script.js \ No newline at end of file diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..f9c903d --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01PTu83YdqL7qVsmy5qaMDp1", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "Let me create a website for an African country music index.\n\n---domain---\nafricantunes.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://africantunes.scroll.pub\nmetaTags\neditButton /edit.html\ntitle African Country Music Index | Discover Traditional & Modern African Music\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <nav>\n <div class=\"logo\">AfricanTunes</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=\"#featured\">Featured</a></li>\n <li><a href=\"#regions\">Regions</a></li>\n <li><a href=\"#artists\">Artists</a></li>\n <li><a href=\"#about\">About</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section class=\"hero\">\n <h1>Discover African Music</h1>\n <p>Explore traditional and modern sounds from across the continent</p>\n </section>\n\n <section id=\"featured\" class=\"featured\">\n <h2>Featured Countries</h2>\n <div class=\"country-grid\">\n <article class=\"country-card\">\n <div class=\"card-image\" data-country=\"mali\"></div>\n <h3>Mali</h3>\n <p>Home of the griots and desert blues</p>\n </article>\n <article class=\"country-card\">\n <div class=\"card-image\" data-country=\"nigeria\"></div>\n <h3>Nigeria</h3>\n <p>Afrobeat birthplace and highlife heritage</p>\n </article>\n <article class=\"country-card\">\n <div class=\"card-image\" data-country=\"senegal\"></div>\n <h3>Senegal</h3>\n <p>Mbalax rhythms and Sabar traditions</p>\n </article>\n <article class=\"country-card\">\n <div class=\"card-image\" data-country=\"ethiopia\"></div>\n <h3>Ethiopia</h3>\n <p>Ethio-jazz and ancient scales</p>\n </article>\n </div>\n </section>\n\n <section id=\"regions\" class=\"regions\">\n <h2>Explore by Region</h2>\n <div class=\"region-map\">\n <div class=\"map-interactive\"></div>\n <div class=\"region-info\">\n <h3>Click a region to explore</h3>\n <p>Discover unique musical traditions</p>\n </div>\n </div>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>AfricanTunes</h4>\n <p>Celebrating the rich musical heritage of Africa</p>\n </div>\n <div class=\"footer-section\">\n <h4>Quick Links</h4>\n <ul>\n <li><a href=\"#featured\">Featured</a></li>\n <li><a href=\"#regions\">Regions</a></li>\n <li><a href=\"#artists\">Artists</a></li>\n </ul>\n </div>\n </div>\n</footer>\n---style.css---\n:root {\n --primary-color: #e94e1b;\n --secondary-color: #1b1b1b;\n --accent-color: #ffd700;\n --text-color: #333;\n --light-bg: #f9f9f9;\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\n/* Header & Navigation */\nheader {\n background: var(--secondary-color);\n padding: 1rem;\n position: fixed;\n width: 100%;\n top: 0;\n z-index: 1000;\n}\n\nnav {\n max-width: 1200px;\n margin: 0 auto;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.logo {\n color: white;\n font-size: 1.5rem;\n font-weight: bold;\n text-transform: uppercase;\n}\n\n.nav-links {\n display: flex;\n list-style: none;\n}\n\n.nav-links a {\n color: white;\n text-decoration: none;\n padding: 0.5rem 1rem;\n transition: color 0.3s ease;\n}\n\n.nav-links a:hover {\n color: var(--accent-color);\n}\n\n/* Hero Section */\n.hero {\n height: 80vh;\n background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),\n url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 2 2\"><path d=\"M0 0h2v2H0z\" fill=\"%23e94e1b\"/></svg>');\n background-size: cover;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n color: white;\n padding: 2rem;\n margin-top: 4rem;\n}\n\n.hero h1 {\n font-size: 4rem;\n margin-bottom: 1rem;\n animation: fadeInUp 1s ease-out;\n}\n\n.hero p {\n font-size: 1.5rem;\n animation: fadeInUp 1s ease-out 0.3s backwards;\n}\n\n/* Country Grid */\n.country-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n padding: 2rem;\n}\n\n.country-card {\n background: white;\n border-radius: 10px;\n overflow: hidden;\n box-shadow: 0 4px 15px rgba(0,0,0,0.1);\n transition: transform 0.3s ease;\n}\n\n.country-card:hover {\n transform: translateY(-5px);\n}\n\n.card-image {\n height: 200px;\n background-color: var(--primary-color);\n background-size: cover;\n}\n\n/* Animations */\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/* Mobile Responsiveness */\n.mobile-menu {\n display: none;\n background: none;\n border: none;\n cursor: pointer;\n padding: 0.5rem;\n}\n\n.mobile-menu span {\n display: block;\n width: 25px;\n height: 3px;\n background: white;\n margin: 5px 0;\n transition: 0.3s;\n}\n\n@media (max-width: 768px) {\n .mobile-menu {\n display: block;\n }\n\n .nav-links {\n display: none;\n position: absolute;\n top: 100%;\n left: 0;\n width: 100%;\n background: var(--secondary-color);\n flex-direction: column;\n padding: 1rem;\n }\n\n .nav-links.active {\n display: flex;\n }\n\n .hero h1 {\n font-size: 2.5rem;\n }\n\n .hero p {\n font-size: 1.2rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', function() {\n // Mobile menu toggle\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 const spans = this.querySelectorAll('span');\n spans.forEach(span => span.classList.toggle('active'));\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 document.querySelector(this.getAttribute('href')).scrollIntoView({\n behavior: 'smooth'\n });\n });\n });\n\n // Interactive region map\n const mapInteractive = document.querySelector('.map-interactive');\n const regionInfo = document.querySelector('.region-info');\n\n const regions = [\n 'North Africa',\n 'West Africa',\n 'East Africa',\n 'Central Africa',\n 'Southern Africa'\n ];\n\n regions.forEach(region => {\n const regionElement = document.createElement('div');\n regionElement.classList.add('region');\n regionElement.dataset.region = region;\n regionElement.addEventListener('click', () => {\n updateRegionInfo(region);\n });\n mapInteractive.appendChild(regionElement);\n });\n\n function updateRegionInfo(region) {\n const regionTitle = regionInfo.querySelector('h3');\n const regionText = regionInfo.querySelector('p');\n \n regionTitle.textContent = region;\n regionText.textContent = `Explore the unique musical traditions of ${region}`;\n \n regionInfo.style.opacity = 0;\n setTimeout(() => {\n regionInfo.style.opacity = 1;\n }, 100);\n }\n});\n---end---\n\nThis creates a modern, responsive website for exploring African music by country and region. Key features include:\n\n1. Clean, semantic HTML5 structure\n2. Mobile-responsive design with hamburger menu\n3. Engaging animations and transitions\n4. Interactive country cards and region map\n5. Accessible navigation and ARIA labels\n6. Modern CSS with variables and flexbox/grid layouts\n7. Smooth scrolling navigation\n8. Beautiful gradient overlays and card designs\n9. Optimized for all screen sizes\n\nThe design uses a warm, Africa-inspired color palette with orange as the primary color, complemented by gold accents. The layout is clean and modern, with ample white space and subtle animations to enhance user experience." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 274, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 2653 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..e3e9423 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# africantunes.scroll.pub +Website generated by Claude from prompt: african country music index \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..05b5f22 --- /dev/null +++ b/script.js @@ -0,0 +1,56 @@ +document.addEventListener('DOMContentLoaded', function() { + // Mobile menu toggle + 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.forEach(span => span.classList.toggle('active')); + }); + + // 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' + }); + }); + }); + + // Interactive region map + const mapInteractive = document.querySelector('.map-interactive'); + const regionInfo = document.querySelector('.region-info'); + + const regions = [ + 'North Africa', + 'West Africa', + 'East Africa', + 'Central Africa', + 'Southern Africa' + ]; + + regions.forEach(region => { + const regionElement = document.createElement('div'); + regionElement.classList.add('region'); + regionElement.dataset.region = region; + regionElement.addEventListener('click', () => { + updateRegionInfo(region); + }); + mapInteractive.appendChild(regionElement); + }); + + function updateRegionInfo(region) { + const regionTitle = regionInfo.querySelector('h3'); + const regionText = regionInfo.querySelector('p'); + + regionTitle.textContent = region; + regionText.textContent = `Explore the unique musical traditions of ${region}`; + + regionInfo.style.opacity = 0; + setTimeout(() => { + regionInfo.style.opacity = 1; + }, 100); + } +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..19bec9f --- /dev/null +++ b/style.css @@ -0,0 +1,172 @@ +:root { + --primary-color: #e94e1b; + --secondary-color: #1b1b1b; + --accent-color: #ffd700; + --text-color: #333; + --light-bg: #f9f9f9; +} + +* { + 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 & Navigation */ +header { + background: var(--secondary-color); + padding: 1rem; + position: fixed; + width: 100%; + top: 0; + z-index: 1000; +} + +nav { + max-width: 1200px; + margin: 0 auto; + display: flex; + justify-content: space-between; + align-items: center; +} + +.logo { + color: white; + font-size: 1.5rem; + font-weight: bold; + text-transform: uppercase; +} + +.nav-links { + display: flex; + list-style: none; +} + +.nav-links a { + color: white; + text-decoration: none; + padding: 0.5rem 1rem; + transition: color 0.3s ease; +} + +.nav-links a:hover { + color: var(--accent-color); +} + +/* Hero Section */ +.hero { + height: 80vh; + background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), + url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M0 0h2v2H0z" fill="%23e94e1b"/></svg>'); + background-size: cover; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + color: white; + padding: 2rem; + margin-top: 4rem; +} + +.hero h1 { + font-size: 4rem; + margin-bottom: 1rem; + animation: fadeInUp 1s ease-out; +} + +.hero p { + font-size: 1.5rem; + animation: fadeInUp 1s ease-out 0.3s backwards; +} + +/* Country Grid */ +.country-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + padding: 2rem; +} + +.country-card { + background: white; + border-radius: 10px; + overflow: hidden; + box-shadow: 0 4px 15px rgba(0,0,0,0.1); + transition: transform 0.3s ease; +} + +.country-card:hover { + transform: translateY(-5px); +} + +.card-image { + height: 200px; + background-color: var(--primary-color); + background-size: cover; +} + +/* Animations */ +@keyframes fadeInUp { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +/* Mobile Responsiveness */ +.mobile-menu { + display: none; + background: none; + border: none; + cursor: pointer; + padding: 0.5rem; +} + +.mobile-menu span { + display: block; + width: 25px; + height: 3px; + background: white; + margin: 5px 0; + transition: 0.3s; +} + +@media (max-width: 768px) { + .mobile-menu { + display: block; + } + + .nav-links { + display: none; + position: absolute; + top: 100%; + left: 0; + width: 100%; + background: var(--secondary-color); + flex-direction: column; + padding: 1rem; + } + + .nav-links.active { + display: flex; + } + + .hero h1 { + font-size: 2.5rem; + } + + .hero p { + font-size: 1.2rem; + } +} \ No newline at end of file