o1-preview-2024-09-12· OpenAI
WildChat-4.8M (AI2)
رنگ پس زمینه کل سایت یکم روشنتر کن رنگ هم حال و هوای سایت هوش مصنوعی را داشته باشه…
- User
رنگ پس زمینه کل سایت یکم روشنتر کن رنگ هم حال و هوای سایت هوش مصنوعی را داشته باشه کمهها در حالت کامپیوتر بزرگ نمایش داده بشه
function showMessage(button) { const message = button.nextElementSibling; if (message.style.display === "none" || message.style.display === "") { message.style.display = "block"; setTimeout(() => { message.style.opacity = "1"; }, 10); } else { message.style.opacity = "0"; setTimeout(() => { message.style.display = "none"; }, 300); } } function createParticles() { const animationContainer = document.getElementById('aiAnimation'); const particleCount = 30; for (let i = 0; i < particleCount; i++) { const particle = document.createElement('div'); particle.classList.add('ai-particle'); particle.style.width = `${Math.random() * 15 + 5}px`; particle.style.height = particle.style.width; particle.style.left = `${Math.random() * 100}vw`; particle.style.top = `${Math.random() * 100}vh`; particle.style.animationDuration = `${Math.random() * 20 + 10}s`; particle.style.animationDelay = `${Math.random() * 5}s`; animationContainer.appendChild(particle); } } window.addEventListener('load', createParticles); </script> کد html را کامل درست کن بفرست یکجا - Assistant
کد HTML شما را با تغییرات مورد نظر اصلاح کردم. رنگ پسزمینه را روشنتر کردم، رنگها را به گونهای تنظیم کردم که حال و هوای یک وبسایت هوش مصنوعی را داشته باشد، و در حالت دسکتاپ اندازه المانها را بزرگتر کردم. کد کامل HTML به صورت زیر است:
<!DOCTYPE html> <html lang="fa" dir="rtl"> <head> <meta charset="UTF-8"> <title>پلتفرم چت هوش مصنوعی</title> <style> @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700&display=swap'); :root { --primary-color: #4A90E2; /* رنگ اصلی تنظیم شده */ --secondary-color: #50E3C2; /* رنگ ثانویه تنظیم شده */ --background-color: #2C2F48; /* رنگ پسزمینه روشنتر */ --text-color: #FFFFFF; /* رنگ متن */ --card-background: #343860; /* رنگ پسزمینه کارتها */ } body, html { margin: 0; padding: 0; font-family: 'Vazirmatn', Arial, sans-serif; background-color: var(--background-color); color: var(--text-color); height: 100%; overflow-x: hidden; } body { direction: rtl; /* تنظیم جهت متن به راستبهچپ */ } .container { max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; } h1 { text-align: center; font-size: 3rem; margin-bottom: 2rem; color: var(--secondary-color); animation: glowText 2s ease-in-out infinite alternate; } .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 40px; } .feature-card { background-color: var(--card-background); border-radius: 8px; padding: 20px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: transform 0.3s ease, box-shadow 0.3s ease; animation: fadeInUp 1s ease-out forwards; opacity: 0; } .feature-card:nth-child(1) { animation-delay: 0.2s; } .feature-card:nth-child(2) { animation-delay: 0.4s; } .feature-card:nth-child(3) { animation-delay: 0.6s; } .feature-card:nth-child(4) { animation-delay: 0.8s; } .feature-card:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); } .feature-button { display: block; width: 100%; padding: 12px; background-color: var(--primary-color); color: var(--text-color); border: none; border-radius: 4px; font-size: 1.1rem; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; position: relative; overflow: hidden; } @media (min-width: 769px) { .feature-button { padding: 20px; font-size: 1.5rem; /* افزایش اندازه فونت در دسکتاپ */ } h1 { font-size: 4rem; /* افزایش اندازه عنوان در دسکتاپ */ } .feature-card { padding: 30px; /* افزایش فضای داخلی کارتها در دسکتاپ */ } } .feature-button::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: rgba(255,255,255,0.1); transform: rotate(45deg); transition: 0.5s; } .feature-button:hover::after { left: 100%; top: 100%; } .feature-button:hover { background-color: #357ABD; /* تغییر رنگ در حالت هاور */ } .feature-button.locked { background-color: #4A4E69; cursor: not-allowed; } .feature-message { margin-top: 10px; background-color: #2D3250; padding: 10px; border-radius: 4px; font-size: 0.9rem; display: none; opacity: 0; transition: opacity 0.3s ease; } .feature-message a { color: var(--secondary-color); text-decoration: underline; } .ai-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; } .ai-particle { position: absolute; background-color: var(--secondary-color); border-radius: 50%; opacity: 0.5; animation: floatParticle 10s infinite ease-in-out; } @keyframes glowText { from { text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color); } to { text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color); } } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes floatParticle { 0% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(50px, 50px) rotate(90deg); } 50% { transform: translate(100px, 0) rotate(180deg); } 75% { transform: translate(50px, -50px) rotate(270deg); } 100% { transform: translate(0, 0) rotate(360deg); } } @media (max-width: 768px) { .feature-grid { grid-template-columns: 1fr; } h1 { font-size: 2.5rem; } } </style> </head> <body> <div class="container"> <h1>پلتفرم چت هوش مصنوعی</h1> <section class="feature-grid"> <div class="feature-card"> <h2>چت هوشمند</h2> <p>با هوش مصنوعی پیشرفته ما گفتگو کنید و پاسخهای هوشمندانه دریافت کنید.</p> <button class="feature-button" onclick="startChat()">شروع چت</button> </div> <div class="feature-card"> <h2>تولید تصویر خلاقانه</h2> <p>تصاویر منحصر به فرد با استفاده از هوش مصنوعی ایجاد کنید.</p> <button class="feature-button locked" onclick="showMessage(this)">کد نیاز است</button> <div class="feature-message">برای استفاده از این ویژگی، لطفاً برنامه هوش مصنوعی را از <a href="#">اینجا</a> دانلود کنید.</div> </div> <div class="feature-card"> <h2>تحلیل داده پیشرفته</h2> <p>دادههای خود را با الگوریتمهای پیشرفته تحلیل کنید.</p> <button class="feature-button locked" onclick="showMessage(this)">کد نیاز است</button> <div class="feature-message">برای استفاده از این ویژگی، لطفاً برنامه هوش مصنوعی را از <a href="#">اینجا</a> دانلود کنید.</div> </div> <div class="feature-card"> <h2>پردازش زبان طبیعی</h2> <p>متنها را با دقت بالا تجزیه و تحلیل کنید.</p> <button class="feature-button locked" onclick="showMessage(this)">کد نیاز است</button> <div class="feature-message">برای استفاده از این ویژگی، لطفاً برنامه هوش مصنوعی را از <a href="#">اینجا</a> دانلود کنید.</div> </div> </section> </div> <div class="ai-animation" id="aiAnimation"></div> <script> function startChat() { alert("چت هوشمند آغاز شد!"); } function showMessage(button) { const message = button.nextElementSibling; if (message.style.display === "none" || message.style.display === "") { message.style.display = "block"; setTimeout(() => { message.style.opacity = "1"; }, 10); } else { message.style.opacity = "0"; setTimeout(() => { message.style.display = "none"; }, 300); } } function createParticles() { const animationContainer = document.getElementById('aiAnimation'); const particleCount = 30; for (let i = 0; i < particleCount; i++) { const particle = document.createElement('div'); particle.classList.add('ai-particle'); particle.style.width = `${Math.random() * 15 + 5}px`; particle.style.height = particle.style.width; particle.style.left = `${Math.random() * 100}vw`; particle.style.top = `${Math.random() * 100}vh`; particle.style.animationDuration = `${Math.random() * 20 + 10}s`; particle.style.animationDelay = `${Math.random() * 5}s`; animationContainer.appendChild(particle); } } window.addEventListener('load', createParticles); </script> </body> </html>