commit 7a117c9d353bf9baf7d8c05f4782c158f2395713
Author: root <root@hub.scroll.pub> Date: 2024-12-27 18:54:51 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..1b8db0b --- /dev/null +++ b/body.html @@ -0,0 +1,96 @@ +<header> + <nav class="main-nav"> + <div class="logo">LearnSmart</div> + <button class="mobile-menu-btn" aria-label="Toggle menu"> + <span></span><span></span><span></span> + </button> + <ul class="nav-links"> + <li><a href="#home">Home</a></li> + <li><a href="#solutions">Solutions</a></li> + <li><a href="#features">Features</a></li> + <li><a href="#contact">Contact</a></li> + </ul> + </nav> +</header> + +<main> + <section id="home" class="hero"> + <div class="hero-content"> + <h1>Transform Education Through Technology</h1> + <p>Empower learning with innovative digital solutions designed for modern education</p> + <button class="cta-button">Get Started</button> + </div> + <div class="hero-image"></div> + </section> + + <section id="solutions" class="solutions"> + <h2>Our Solutions</h2> + <div class="cards-container"> + <div class="card"> + <div class="card-icon" aria-hidden="true">📚</div> + <h3>Digital Classrooms</h3> + <p>Interactive virtual learning environments that engage students</p> + </div> + <div class="card"> + <div class="card-icon" aria-hidden="true">📊</div> + <h3>Analytics Dashboard</h3> + <p>Track progress and measure learning outcomes effectively</p> + </div> + <div class="card"> + <div class="card-icon" aria-hidden="true">🤝</div> + <h3>Collaboration Tools</h3> + <p>Foster teamwork and communication among students</p> + </div> + </div> + </section> + + <section id="features" class="features"> + <h2>Key Features</h2> + <div class="features-grid"> + <div class="feature"> + <h3>Adaptive Learning</h3> + <p>Personalized learning paths that adjust to student progress</p> + </div> + <div class="feature"> + <h3>Real-time Feedback</h3> + <p>Instant assessment and performance tracking</p> + </div> + <div class="feature"> + <h3>Mobile Learning</h3> + <p>Access educational content anywhere, anytime</p> + </div> + <div class="feature"> + <h3>Interactive Content</h3> + <p>Engaging multimedia resources and activities</p> + </div> + </div> + </section> + + <section id="contact" class="contact"> + <h2>Get In Touch</h2> + <form class="contact-form"> + <input type="text" placeholder="Name" required> + <input type="email" placeholder="Email" required> + <textarea placeholder="Message" required></textarea> + <button type="submit">Send Message</button> + </form> + </section> +</main> + +<footer> + <div class="footer-content"> + <div class="footer-section"> + <h4>LearnSmart</h4> + <p>Transforming education through innovative technology</p> + </div> + <div class="footer-section"> + <h4>Quick Links</h4> + <ul> + <li><a href="#home">Home</a></li> + <li><a href="#solutions">Solutions</a></li> + <li><a href="#features">Features</a></li> + <li><a href="#contact">Contact</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..e96d221 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://learn-smart.scroll.pub +metaTags +editButton /edit.html +title LearnSmart - Modern Educational Technology Solutions +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..a99e7c5 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_018wqyjCVmCuUwnMukToeNJ8", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll help create an EdTech website with a modern, professional design.\n\nSuggested domain: learn-smart.scroll.pub\n\n---domain---\nlearn-smart.scroll.pub\n---index.scroll---\nbuildHtml\nbaseUrl https://learn-smart.scroll.pub\nmetaTags\neditButton /edit.html\ntitle LearnSmart - Modern Educational Technology Solutions\nstyle.css\nbody.html\nscript.js\n---body.html---\n<header>\n <nav class=\"main-nav\">\n <div class=\"logo\">LearnSmart</div>\n <button class=\"mobile-menu-btn\" aria-label=\"Toggle menu\">\n <span></span><span></span><span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"#home\">Home</a></li>\n <li><a href=\"#solutions\">Solutions</a></li>\n <li><a href=\"#features\">Features</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"home\" class=\"hero\">\n <div class=\"hero-content\">\n <h1>Transform Education Through Technology</h1>\n <p>Empower learning with innovative digital solutions designed for modern education</p>\n <button class=\"cta-button\">Get Started</button>\n </div>\n <div class=\"hero-image\"></div>\n </section>\n\n <section id=\"solutions\" class=\"solutions\">\n <h2>Our Solutions</h2>\n <div class=\"cards-container\">\n <div class=\"card\">\n <div class=\"card-icon\" aria-hidden=\"true\">📚</div>\n <h3>Digital Classrooms</h3>\n <p>Interactive virtual learning environments that engage students</p>\n </div>\n <div class=\"card\">\n <div class=\"card-icon\" aria-hidden=\"true\">📊</div>\n <h3>Analytics Dashboard</h3>\n <p>Track progress and measure learning outcomes effectively</p>\n </div>\n <div class=\"card\">\n <div class=\"card-icon\" aria-hidden=\"true\">🤝</div>\n <h3>Collaboration Tools</h3>\n <p>Foster teamwork and communication among students</p>\n </div>\n </div>\n </section>\n\n <section id=\"features\" class=\"features\">\n <h2>Key Features</h2>\n <div class=\"features-grid\">\n <div class=\"feature\">\n <h3>Adaptive Learning</h3>\n <p>Personalized learning paths that adjust to student progress</p>\n </div>\n <div class=\"feature\">\n <h3>Real-time Feedback</h3>\n <p>Instant assessment and performance tracking</p>\n </div>\n <div class=\"feature\">\n <h3>Mobile Learning</h3>\n <p>Access educational content anywhere, anytime</p>\n </div>\n <div class=\"feature\">\n <h3>Interactive Content</h3>\n <p>Engaging multimedia resources and activities</p>\n </div>\n </div>\n </section>\n\n <section id=\"contact\" class=\"contact\">\n <h2>Get In Touch</h2>\n <form class=\"contact-form\">\n <input type=\"text\" placeholder=\"Name\" required>\n <input type=\"email\" placeholder=\"Email\" required>\n <textarea placeholder=\"Message\" required></textarea>\n <button type=\"submit\">Send Message</button>\n </form>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <div class=\"footer-section\">\n <h4>LearnSmart</h4>\n <p>Transforming education through innovative technology</p>\n </div>\n <div class=\"footer-section\">\n <h4>Quick Links</h4>\n <ul>\n <li><a href=\"#home\">Home</a></li>\n <li><a href=\"#solutions\">Solutions</a></li>\n <li><a href=\"#features\">Features</a></li>\n <li><a href=\"#contact\">Contact</a></li>\n </ul>\n </div>\n </div>\n</footer>\n---style.css---\n:root {\n --primary-color: #2563eb;\n --secondary-color: #1e40af;\n --text-color: #1f2937;\n --light-bg: #f3f4f6;\n --white: #ffffff;\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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n}\n\n/* Header & Navigation */\n.main-nav {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 1rem 5%;\n background: var(--white);\n box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);\n position: fixed;\n width: 100%;\n z-index: 1000;\n}\n\n.logo {\n font-size: 1.5rem;\n font-weight: bold;\n color: var(--primary-color);\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(--text-color);\n transition: var(--transition);\n}\n\n.nav-links a:hover {\n color: var(--primary-color);\n}\n\n.mobile-menu-btn {\n display: none;\n}\n\n/* Hero Section */\n.hero {\n min-height: 100vh;\n display: flex;\n align-items: center;\n padding: 5rem 5%;\n background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);\n}\n\n.hero-content {\n flex: 1;\n max-width: 600px;\n}\n\n.hero h1 {\n font-size: 3.5rem;\n line-height: 1.2;\n margin-bottom: 1.5rem;\n color: var(--text-color);\n}\n\n.cta-button {\n padding: 1rem 2rem;\n font-size: 1.1rem;\n background: var(--primary-color);\n color: var(--white);\n border: none;\n border-radius: 8px;\n cursor: pointer;\n transition: var(--transition);\n}\n\n.cta-button:hover {\n background: var(--secondary-color);\n transform: translateY(-2px);\n}\n\n/* Cards Section */\n.solutions {\n padding: 5rem 5%;\n background: var(--white);\n}\n\n.cards-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin-top: 3rem;\n}\n\n.card {\n background: var(--white);\n padding: 2rem;\n border-radius: 12px;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);\n transition: var(--transition);\n}\n\n.card:hover {\n transform: translateY(-5px);\n}\n\n.card-icon {\n font-size: 2.5rem;\n margin-bottom: 1rem;\n}\n\n/* Features Section */\n.features {\n padding: 5rem 5%;\n background: var(--light-bg);\n}\n\n.features-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 2rem;\n margin-top: 3rem;\n}\n\n.feature {\n background: var(--white);\n padding: 2rem;\n border-radius: 12px;\n box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);\n}\n\n/* Contact Form */\n.contact {\n padding: 5rem 5%;\n}\n\n.contact-form {\n max-width: 600px;\n margin: 3rem auto;\n display: flex;\n flex-direction: column;\n gap: 1.5rem;\n}\n\n.contact-form input,\n.contact-form textarea {\n padding: 1rem;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n font-size: 1rem;\n}\n\n.contact-form textarea {\n min-height: 150px;\n}\n\n/* Footer */\nfooter {\n background: var(--text-color);\n color: var(--white);\n padding: 3rem 5%;\n}\n\n.footer-content {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 2rem;\n}\n\n.footer-section ul {\n list-style: none;\n}\n\n.footer-section a {\n color: var(--white);\n text-decoration: none;\n transition: var(--transition);\n}\n\n.footer-section a:hover {\n color: var(--primary-color);\n}\n\n/* Responsive Design */\n@media (max-width: 768px) {\n .mobile-menu-btn {\n display: block;\n background: none;\n border: none;\n cursor: pointer;\n }\n\n .mobile-menu-btn span {\n display: block;\n width: 25px;\n height: 3px;\n background: var(--text-color);\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(--white);\n flex-direction: column;\n padding: 1rem;\n text-align: center;\n }\n\n .nav-links.active {\n display: flex;\n }\n\n .hero {\n flex-direction: column;\n text-align: center;\n }\n\n .hero h1 {\n font-size: 2.5rem;\n }\n}\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Mobile Menu Toggle\n const mobileMenuBtn = document.querySelector('.mobile-menu-btn');\n const navLinks = document.querySelector('.nav-links');\n\n mobileMenuBtn.addEventListener('click', () => {\n navLinks.classList.toggle('active');\n \n // Animate hamburger to X\n const spans = mobileMenuBtn.querySelectorAll('span');\n spans.forEach(span => span.classList.toggle('active'));\n });\n\n // Smooth Scroll for Navigation Links\n document.querySelectorAll('a[href^=\"#\"]').forEach(anchor => {\n anchor.addEventListener('click', function (e) {\n e.preventDefault();\n const target = document.querySelector(this.getAttribute('href'));\n \n if (target) {\n target.scrollIntoView({\n behavior: 'smooth',\n block: 'start'\n });\n \n // Close mobile menu if open\n navLinks.classList.remove('active');\n }\n });\n });\n\n // Form Submission\n const contactForm = document.querySelector('.contact-form');\n if (contactForm) {\n contactForm.addEventListener('submit', (e) => {\n e.preventDefault();\n \n // Add animation class\n const submitButton = contactForm.querySelector('button[type=\"submit\"]');\n submitButton.classList.add('submitting');\n \n // Simulate form submission\n setTimeout(() => {\n alert('Thank you for your message! We will get back to you soon.');\n contactForm.reset();\n submitButton.classList.remove('submitting');\n }, 1000);\n });\n }\n\n // Intersection Observer for 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.classList.add('animate');\n }\n });\n }, observerOptions);\n\n // Observe all sections\n document.querySelectorAll('section').forEach(section => {\n observer.observe(section);\n });\n});\n---end---" + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 275, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 3245 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..cb70952 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# learn-smart.scroll.pub +Website generated by Claude from prompt: Create Edtech website \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..8c89d1c --- /dev/null +++ b/script.js @@ -0,0 +1,68 @@ +document.addEventListener('DOMContentLoaded', () => { + // Mobile Menu Toggle + const mobileMenuBtn = document.querySelector('.mobile-menu-btn'); + const navLinks = document.querySelector('.nav-links'); + + mobileMenuBtn.addEventListener('click', () => { + navLinks.classList.toggle('active'); + + // Animate hamburger to X + const spans = mobileMenuBtn.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(); + const target = document.querySelector(this.getAttribute('href')); + + if (target) { + target.scrollIntoView({ + behavior: 'smooth', + block: 'start' + }); + + // Close mobile menu if open + navLinks.classList.remove('active'); + } + }); + }); + + // Form Submission + const contactForm = document.querySelector('.contact-form'); + if (contactForm) { + contactForm.addEventListener('submit', (e) => { + e.preventDefault(); + + // Add animation class + const submitButton = contactForm.querySelector('button[type="submit"]'); + submitButton.classList.add('submitting'); + + // Simulate form submission + setTimeout(() => { + alert('Thank you for your message! We will get back to you soon.'); + contactForm.reset(); + submitButton.classList.remove('submitting'); + }, 1000); + }); + } + + // Intersection Observer for Animations + const observerOptions = { + threshold: 0.2 + }; + + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.classList.add('animate'); + } + }); + }, observerOptions); + + // Observe all sections + document.querySelectorAll('section').forEach(section => { + observer.observe(section); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..e1e621a --- /dev/null +++ b/style.css @@ -0,0 +1,242 @@ +:root { + --primary-color: #2563eb; + --secondary-color: #1e40af; + --text-color: #1f2937; + --light-bg: #f3f4f6; + --white: #ffffff; + --transition: all 0.3s ease; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; + line-height: 1.6; + color: var(--text-color); +} + +/* Header & Navigation */ +.main-nav { + display: flex; + justify-content: space-between; + align-items: center; + padding: 1rem 5%; + background: var(--white); + box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); + position: fixed; + width: 100%; + z-index: 1000; +} + +.logo { + font-size: 1.5rem; + font-weight: bold; + color: var(--primary-color); +} + +.nav-links { + display: flex; + list-style: none; + gap: 2rem; +} + +.nav-links a { + text-decoration: none; + color: var(--text-color); + transition: var(--transition); +} + +.nav-links a:hover { + color: var(--primary-color); +} + +.mobile-menu-btn { + display: none; +} + +/* Hero Section */ +.hero { + min-height: 100vh; + display: flex; + align-items: center; + padding: 5rem 5%; + background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); +} + +.hero-content { + flex: 1; + max-width: 600px; +} + +.hero h1 { + font-size: 3.5rem; + line-height: 1.2; + margin-bottom: 1.5rem; + color: var(--text-color); +} + +.cta-button { + padding: 1rem 2rem; + font-size: 1.1rem; + background: var(--primary-color); + color: var(--white); + border: none; + border-radius: 8px; + cursor: pointer; + transition: var(--transition); +} + +.cta-button:hover { + background: var(--secondary-color); + transform: translateY(-2px); +} + +/* Cards Section */ +.solutions { + padding: 5rem 5%; + background: var(--white); +} + +.cards-container { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + margin-top: 3rem; +} + +.card { + background: var(--white); + padding: 2rem; + border-radius: 12px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); + transition: var(--transition); +} + +.card:hover { + transform: translateY(-5px); +} + +.card-icon { + font-size: 2.5rem; + margin-bottom: 1rem; +} + +/* Features Section */ +.features { + padding: 5rem 5%; + background: var(--light-bg); +} + +.features-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; + margin-top: 3rem; +} + +.feature { + background: var(--white); + padding: 2rem; + border-radius: 12px; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); +} + +/* Contact Form */ +.contact { + padding: 5rem 5%; +} + +.contact-form { + max-width: 600px; + margin: 3rem auto; + display: flex; + flex-direction: column; + gap: 1.5rem; +} + +.contact-form input, +.contact-form textarea { + padding: 1rem; + border: 2px solid #e5e7eb; + border-radius: 8px; + font-size: 1rem; +} + +.contact-form textarea { + min-height: 150px; +} + +/* Footer */ +footer { + background: var(--text-color); + color: var(--white); + padding: 3rem 5%; +} + +.footer-content { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; +} + +.footer-section ul { + list-style: none; +} + +.footer-section a { + color: var(--white); + text-decoration: none; + transition: var(--transition); +} + +.footer-section a:hover { + color: var(--primary-color); +} + +/* Responsive Design */ +@media (max-width: 768px) { + .mobile-menu-btn { + display: block; + background: none; + border: none; + cursor: pointer; + } + + .mobile-menu-btn span { + display: block; + width: 25px; + height: 3px; + background: var(--text-color); + margin: 5px 0; + transition: var(--transition); + } + + .nav-links { + display: none; + position: absolute; + top: 100%; + left: 0; + right: 0; + background: var(--white); + flex-direction: column; + padding: 1rem; + text-align: center; + } + + .nav-links.active { + display: flex; + } + + .hero { + flex-direction: column; + text-align: center; + } + + .hero h1 { + font-size: 2.5rem; + } +} \ No newline at end of file