commit 97e13f719a3ffe7931b5cdeaa4b0082639803519
Author: root <root@hub.scroll.pub> Date: 2024-12-30 04:24:21 +0000 Subject: Initial commit diff --git a/body.html b/body.html new file mode 100644 index 0000000..374567a --- /dev/null +++ b/body.html @@ -0,0 +1,95 @@ +<header> + <nav class="main-nav"> + <div class="logo">PPLST</div> + <button class="menu-toggle" aria-label="Toggle menu"> + <span></span> + <span></span> + <span></span> + </button> + <ul class="nav-links"> + <li><a href="#intro">Giới thiệu</a></li> + <li><a href="#methods">Phương pháp</a></li> + <li><a href="#tools">Công cụ</a></li> + <li><a href="#contact">Liên hệ</a></li> + </ul> + </nav> +</header> + +<main> + <section id="hero"> + <div class="hero-content"> + <h1>Phương Pháp Luận Sáng Tạo</h1> + <p>Khám phá nghệ thuật giải quyết vấn đề và ra quyết định hiệu quả</p> + </div> + </section> + + <section id="intro" class="section"> + <h2>Giới thiệu</h2> + <div class="card-container"> + <div class="card"> + <h3>Tư duy sáng tạo</h3> + <p>Phát triển khả năng nhìn nhận vấn đề từ nhiều góc độ khác nhau</p> + </div> + <div class="card"> + <h3>Giải quyết vấn đề</h3> + <p>Áp dụng các phương pháp có hệ thống để tìm ra giải pháp tối ưu</p> + </div> + <div class="card"> + <h3>Ra quyết định</h3> + <p>Đưa ra lựa chọn đúng đắn dựa trên phân tích và đánh giá khách quan</p> + </div> + </div> + </section> + + <section id="methods" class="section"> + <h2>Phương pháp</h2> + <div class="method-grid"> + <article class="method-item"> + <h3>Brainstorming</h3> + <p>Kỹ thuật phát triển ý tưởng theo nhóm</p> + </article> + <article class="method-item"> + <h3>Mind Mapping</h3> + <p>Sơ đồ tư duy trực quan</p> + </article> + <article class="method-item"> + <h3>SCAMPER</h3> + <p>Phương pháp cải tiến ý tưởng</p> + </article> + <article class="method-item"> + <h3>5W1H</h3> + <p>Kỹ thuật đặt câu hỏi phân tích</p> + </article> + </div> + </section> + + <section id="contact" class="section"> + <h2>Liên hệ</h2> + <form id="contact-form" class="contact-form"> + <div class="form-group"> + <label for="name">Họ tên</label> + <input type="text" id="name" required> + </div> + <div class="form-group"> + <label for="email">Email</label> + <input type="email" id="email" required> + </div> + <div class="form-group"> + <label for="message">Tin nhắn</label> + <textarea id="message" required></textarea> + </div> + <button type="submit">Gửi</button> + </form> + </section> +</main> + +<footer> + <div class="footer-content"> + <p>Phương Pháp Luận Sáng Tạo</p> + <nav class="footer-nav"> + <a href="#intro">Giới thiệu</a> + <a href="#methods">Phương pháp</a> + <a href="#contact">Liên hệ</a> + </nav> + </div> +</footer> diff --git a/index.scroll b/index.scroll new file mode 100644 index 0000000..d1232f7 --- /dev/null +++ b/index.scroll @@ -0,0 +1,8 @@ +buildHtml +baseUrl https://creative-thinking.scroll.pub +metaTags +editButton /edit.html +title Phương Pháp Luận Sáng Tạo | Giải Quyết Vấn Đề & Ra Quyết Định +style.css +body.html +script.js diff --git a/prompt.json b/prompt.json new file mode 100644 index 0000000..ad638d6 --- /dev/null +++ b/prompt.json @@ -0,0 +1,20 @@ +{ + "id": "msg_01KJYb5DMB56GBy79Vxfn9fY", + "type": "message", + "role": "assistant", + "model": "claude-3-5-sonnet-20241022", + "content": [ + { + "type": "text", + "text": "I'll help create a website about Creative Problem-Solving Methodology. Here's a suitable domain and complete implementation:\n\n---domain---\ncreative-thinking.scroll.pub\n\n---index.scroll---\nbuildHtml\nbaseUrl https://creative-thinking.scroll.pub\nmetaTags\neditButton /edit.html\ntitle Phương Pháp Luận Sáng Tạo | Giải Quyết Vấn Đề & Ra Quyết Định\nstyle.css\nbody.html\nscript.js\n\n---body.html---\n<header>\n <nav class=\"main-nav\">\n <div class=\"logo\">PPLST</div>\n <button class=\"menu-toggle\" aria-label=\"Toggle menu\">\n <span></span>\n <span></span>\n <span></span>\n </button>\n <ul class=\"nav-links\">\n <li><a href=\"#intro\">Giới thiệu</a></li>\n <li><a href=\"#methods\">Phương pháp</a></li>\n <li><a href=\"#tools\">Công cụ</a></li>\n <li><a href=\"#contact\">Liên hệ</a></li>\n </ul>\n </nav>\n</header>\n\n<main>\n <section id=\"hero\">\n <div class=\"hero-content\">\n <h1>Phương Pháp Luận Sáng Tạo</h1>\n <p>Khám phá nghệ thuật giải quyết vấn đề và ra quyết định hiệu quả</p>\n </div>\n </section>\n\n <section id=\"intro\" class=\"section\">\n <h2>Giới thiệu</h2>\n <div class=\"card-container\">\n <div class=\"card\">\n <h3>Tư duy sáng tạo</h3>\n <p>Phát triển khả năng nhìn nhận vấn đề từ nhiều góc độ khác nhau</p>\n </div>\n <div class=\"card\">\n <h3>Giải quyết vấn đề</h3>\n <p>Áp dụng các phương pháp có hệ thống để tìm ra giải pháp tối ưu</p>\n </div>\n <div class=\"card\">\n <h3>Ra quyết định</h3>\n <p>Đưa ra lựa chọn đúng đắn dựa trên phân tích và đánh giá khách quan</p>\n </div>\n </div>\n </section>\n\n <section id=\"methods\" class=\"section\">\n <h2>Phương pháp</h2>\n <div class=\"method-grid\">\n <article class=\"method-item\">\n <h3>Brainstorming</h3>\n <p>Kỹ thuật phát triển ý tưởng theo nhóm</p>\n </article>\n <article class=\"method-item\">\n <h3>Mind Mapping</h3>\n <p>Sơ đồ tư duy trực quan</p>\n </article>\n <article class=\"method-item\">\n <h3>SCAMPER</h3>\n <p>Phương pháp cải tiến ý tưởng</p>\n </article>\n <article class=\"method-item\">\n <h3>5W1H</h3>\n <p>Kỹ thuật đặt câu hỏi phân tích</p>\n </article>\n </div>\n </section>\n\n <section id=\"contact\" class=\"section\">\n <h2>Liên hệ</h2>\n <form id=\"contact-form\" class=\"contact-form\">\n <div class=\"form-group\">\n <label for=\"name\">Họ tên</label>\n <input type=\"text\" id=\"name\" required>\n </div>\n <div class=\"form-group\">\n <label for=\"email\">Email</label>\n <input type=\"email\" id=\"email\" required>\n </div>\n <div class=\"form-group\">\n <label for=\"message\">Tin nhắn</label>\n <textarea id=\"message\" required></textarea>\n </div>\n <button type=\"submit\">Gửi</button>\n </form>\n </section>\n</main>\n\n<footer>\n <div class=\"footer-content\">\n <p>Phương Pháp Luận Sáng Tạo</p>\n <nav class=\"footer-nav\">\n <a href=\"#intro\">Giới thiệu</a>\n <a href=\"#methods\">Phương pháp</a>\n <a href=\"#contact\">Liên hệ</a>\n </nav>\n </div>\n</footer>\n\n---style.css---\n:root {\n --primary-color: #2c3e50;\n --secondary-color: #3498db;\n --accent-color: #e74c3c;\n --text-color: #2c3e50;\n --light-bg: #ecf0f1;\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: 'Segoe UI', system-ui, sans-serif;\n line-height: 1.6;\n color: var(--text-color);\n}\n\n.main-nav {\n position: fixed;\n width: 100%;\n padding: 1rem;\n background: var(--white);\n box-shadow: 0 2px 10px rgba(0,0,0,0.1);\n display: flex;\n justify-content: space-between;\n align-items: center;\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 font-weight: 500;\n transition: var(--transition);\n}\n\n.nav-links a:hover {\n color: var(--secondary-color);\n}\n\n.menu-toggle {\n display: none;\n}\n\n#hero {\n height: 100vh;\n background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n color: var(--white);\n}\n\n.hero-content h1 {\n font-size: 3rem;\n margin-bottom: 1rem;\n animation: fadeInUp 1s ease;\n}\n\n.hero-content p {\n font-size: 1.2rem;\n animation: fadeInUp 1s ease 0.3s;\n opacity: 0;\n animation-fill-mode: forwards;\n}\n\n.section {\n padding: 5rem 2rem;\n}\n\n.section h2 {\n text-align: center;\n margin-bottom: 3rem;\n font-size: 2.5rem;\n color: var(--primary-color);\n}\n\n.card-container {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n gap: 2rem;\n margin: 0 auto;\n max-width: 1200px;\n}\n\n.card {\n background: var(--white);\n padding: 2rem;\n border-radius: 10px;\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.method-grid {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));\n gap: 2rem;\n max-width: 1200px;\n margin: 0 auto;\n}\n\n.method-item {\n background: var(--light-bg);\n padding: 2rem;\n border-radius: 10px;\n text-align: center;\n transition: var(--transition);\n}\n\n.method-item:hover {\n background: var(--secondary-color);\n color: var(--white);\n}\n\n.contact-form {\n max-width: 600px;\n margin: 0 auto;\n}\n\n.form-group {\n margin-bottom: 1.5rem;\n}\n\n.form-group label {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 500;\n}\n\n.form-group input,\n.form-group textarea {\n width: 100%;\n padding: 0.8rem;\n border: 1px solid #ddd;\n border-radius: 5px;\n transition: var(--transition);\n}\n\n.form-group input:focus,\n.form-group textarea:focus {\n outline: none;\n border-color: var(--secondary-color);\n}\n\nbutton {\n background: var(--secondary-color);\n color: var(--white);\n padding: 1rem 2rem;\n border: none;\n border-radius: 5px;\n cursor: pointer;\n transition: var(--transition);\n}\n\nbutton:hover {\n background: var(--primary-color);\n}\n\nfooter {\n background: var(--primary-color);\n color: var(--white);\n padding: 2rem;\n text-align: center;\n}\n\n.footer-nav {\n margin-top: 1rem;\n}\n\n.footer-nav a {\n color: var(--white);\n text-decoration: none;\n margin: 0 1rem;\n transition: var(--transition);\n}\n\n.footer-nav a:hover {\n color: var(--secondary-color);\n}\n\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@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: var(--transition);\n }\n\n .nav-links {\n position: fixed;\n top: 70px;\n left: 0;\n width: 100%;\n background: var(--white);\n flex-direction: column;\n padding: 2rem;\n transform: translateX(100%);\n transition: var(--transition);\n }\n\n .nav-links.active {\n transform: translateX(0);\n }\n}\n\n---script.js---\ndocument.addEventListener('DOMContentLoaded', () => {\n // Mobile menu toggle\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 menuToggle.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 if (target) {\n navLinks.classList.remove('active');\n target.scrollIntoView({\n behavior: 'smooth'\n });\n }\n });\n });\n\n // Form submission handling\n const contactForm = document.getElementById('contact-form');\n if (contactForm) {\n contactForm.addEventListener('submit', (e) => {\n e.preventDefault();\n const formData = {\n name: document.getElementById('name').value,\n email: document.getElementById('email').value,\n message: document.getElementById('message').value\n };\n \n // Here you would typically send the form data to a server\n console.log('Form submitted:', formData);\n alert('Cảm ơn bạn đã gửi tin nhắn! Chúng tôi sẽ phản hồi sớm nhất có thể.');\n contactForm.reset();\n });\n }\n\n // Intersection Observer for animation\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 threshold: 0.1\n });\n\n // Observe all sections\n document.querySelectorAll('.section').forEach(section => {\n section.style.opacity = '0';\n section.style.transform = 'translateY(20px)';\n section.style.transition = 'all 0.6s ease-out';\n observer.observe(section);\n });\n});\n\n---end---\n\nThis implementation creates a modern, responsive website about Creative Problem-Solving Methodology with smooth animations, mobile-friendly navigation, and an elegant design. The site includes sections for introduction, methods, tools, and contact information. The design uses a professional color scheme and modern CSS features including grid, flexbox, and CSS variables. The JavaScript handles smooth scrolling, form submission, mobile menu toggle, and scroll animations using Intersection Observer." + } + ], + "stop_reason": "end_turn", + "stop_sequence": null, + "usage": { + "input_tokens": 316, + "cache_creation_input_tokens": 0, + "cache_read_input_tokens": 0, + "output_tokens": 3563 + } +} \ No newline at end of file diff --git a/readme.scroll b/readme.scroll new file mode 100644 index 0000000..a21fdc9 --- /dev/null +++ b/readme.scroll @@ -0,0 +1,2 @@ +# creative-thinking.scroll.pub +Website generated by Claude from prompt: Tôi muốn một trang website về Phương pháp luận sáng tạo dùng để giải quyết vấn đề và ra quyết định \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..6f20c46 --- /dev/null +++ b/script.js @@ -0,0 +1,62 @@ +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'); + menuToggle.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) { + navLinks.classList.remove('active'); + target.scrollIntoView({ + behavior: 'smooth' + }); + } + }); + }); + + // Form submission handling + const contactForm = document.getElementById('contact-form'); + if (contactForm) { + contactForm.addEventListener('submit', (e) => { + e.preventDefault(); + const formData = { + name: document.getElementById('name').value, + email: document.getElementById('email').value, + message: document.getElementById('message').value + }; + + // Here you would typically send the form data to a server + console.log('Form submitted:', formData); + alert('Cảm ơn bạn đã gửi tin nhắn! Chúng tôi sẽ phản hồi sớm nhất có thể.'); + contactForm.reset(); + }); + } + + // Intersection Observer for animation + const observer = new IntersectionObserver((entries) => { + entries.forEach(entry => { + if (entry.isIntersecting) { + entry.target.style.opacity = '1'; + entry.target.style.transform = 'translateY(0)'; + } + }); + }, { + threshold: 0.1 + }); + + // Observe all sections + document.querySelectorAll('.section').forEach(section => { + section.style.opacity = '0'; + section.style.transform = 'translateY(20px)'; + section.style.transition = 'all 0.6s ease-out'; + observer.observe(section); + }); +}); diff --git a/style.css b/style.css new file mode 100644 index 0000000..d98466a --- /dev/null +++ b/style.css @@ -0,0 +1,246 @@ +:root { + --primary-color: #2c3e50; + --secondary-color: #3498db; + --accent-color: #e74c3c; + --text-color: #2c3e50; + --light-bg: #ecf0f1; + --white: #ffffff; + --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); +} + +.main-nav { + position: fixed; + width: 100%; + padding: 1rem; + background: var(--white); + box-shadow: 0 2px 10px rgba(0,0,0,0.1); + display: flex; + justify-content: space-between; + align-items: center; + 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); + font-weight: 500; + transition: var(--transition); +} + +.nav-links a:hover { + color: var(--secondary-color); +} + +.menu-toggle { + display: none; +} + +#hero { + height: 100vh; + background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); + display: flex; + align-items: center; + justify-content: center; + text-align: center; + color: var(--white); +} + +.hero-content h1 { + font-size: 3rem; + margin-bottom: 1rem; + animation: fadeInUp 1s ease; +} + +.hero-content p { + font-size: 1.2rem; + animation: fadeInUp 1s ease 0.3s; + opacity: 0; + animation-fill-mode: forwards; +} + +.section { + padding: 5rem 2rem; +} + +.section h2 { + text-align: center; + margin-bottom: 3rem; + font-size: 2.5rem; + color: var(--primary-color); +} + +.card-container { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); + gap: 2rem; + margin: 0 auto; + max-width: 1200px; +} + +.card { + background: var(--white); + padding: 2rem; + border-radius: 10px; + box-shadow: 0 4px 20px rgba(0,0,0,0.1); + transition: var(--transition); +} + +.card:hover { + transform: translateY(-5px); +} + +.method-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 2rem; + max-width: 1200px; + margin: 0 auto; +} + +.method-item { + background: var(--light-bg); + padding: 2rem; + border-radius: 10px; + text-align: center; + transition: var(--transition); +} + +.method-item:hover { + background: var(--secondary-color); + color: var(--white); +} + +.contact-form { + max-width: 600px; + margin: 0 auto; +} + +.form-group { + margin-bottom: 1.5rem; +} + +.form-group label { + display: block; + margin-bottom: 0.5rem; + font-weight: 500; +} + +.form-group input, +.form-group textarea { + width: 100%; + padding: 0.8rem; + border: 1px solid #ddd; + border-radius: 5px; + transition: var(--transition); +} + +.form-group input:focus, +.form-group textarea:focus { + outline: none; + border-color: var(--secondary-color); +} + +button { + background: var(--secondary-color); + color: var(--white); + padding: 1rem 2rem; + border: none; + border-radius: 5px; + cursor: pointer; + transition: var(--transition); +} + +button:hover { + background: var(--primary-color); +} + +footer { + background: var(--primary-color); + color: var(--white); + padding: 2rem; + text-align: center; +} + +.footer-nav { + margin-top: 1rem; +} + +.footer-nav a { + color: var(--white); + text-decoration: none; + margin: 0 1rem; + transition: var(--transition); +} + +.footer-nav a:hover { + color: var(--secondary-color); +} + +@keyframes fadeInUp { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +@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: var(--transition); + } + + .nav-links { + position: fixed; + top: 70px; + left: 0; + width: 100%; + background: var(--white); + flex-direction: column; + padding: 2rem; + transform: translateX(100%); + transition: var(--transition); + } + + .nav-links.active { + transform: translateX(0); + } +}