gpt-4o-2024-11-20· OpenAI
WildChat-4.8M (AI2)
<!DOCTYPE html> <html lang="fa"> <head> <meta charset="UTF-8"> <title>Flux AI Image…
- User
* { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: var(--primary-bg); color: var(--text-color); font-family: 'Vazirmatn', sans-serif; line-height: 1.5; direction: rtl; text-align: center; overflow-x: hidden; } .container { max-width: 100%; margin: 0 auto; padding: 1rem; } /* قاب زیبا برای تصویر اولیه */ .initial-image { display: flex; justify-content: center; align-items: center; margin-top: 20px; } .image-frame { padding: 10px; background: linear-gradient(135deg, #9333EA, #3b82f6); border-radius: 20px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); display: inline-block; transition: transform 0.3s; } .image-frame img { max-width: 100%; height: auto; border-radius: 15px; transition: transform 0.3s; } .image-frame:hover { transform: scale(1.05); } /* دکمه آسمان پرستاره با سیارات متعدد */ .night-sky-button { background-color: #000033; padding: 16px 32px; border-radius: 8px; color: var(--text-color); font-size: 20px; border: none; cursor: pointer; position: relative; overflow: hidden; display: inline-block; text-align: center; margin: 20px auto; box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s; animation: pulse 2s infinite; } .night-sky-button a { color: var(--text-color); text-decoration: none; position: relative; z-index: 2; } /* ایجاد پسزمینه آسمان پرستاره با سیارات متعدد */ .night-sky-button::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: transparent url('data:image/svg+xml,%3Csvg%20width%3D%22200%22%20height%3D%22200%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%0A%3Cdefs%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient1%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%23ff4500%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%23ffff00%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient2%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%238a2be2%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%234b0082%22/%3E%0A%20%20%3C/radialGradient%3E%0A%20%20%3CradialGradient%20id%3D%22planetGradient3%22%3E%0A%20%20%20%20%3Cstop%20offset%3D%220%25%22%20stop-color%3D%22%2300ced1%22/%3E%0A%20%20%20%20%3Cstop%20offset%3D%22100%25%22%20stop-color%3D%22%231e90ff%22/%3E%0A%20%20%3C/radialGradient%3E%0A%3C/defs%3E%0A%3C!--%20ستارهها%20--%3E%0A%3Cg%20fill%3D%22%23ffffff%22%3E%0A%20%20%3Ccircle%20cx%3D%2210%22%20cy%3D%2220%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%2220%22%20cy%3D%2240%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%2230%22%20cy%3D%2260%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%2240%22%20cy%3D%2280%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%2250%22%20cy%3D%22100%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%2260%22%20cy%3D%22120%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%2270%22%20cy%3D%22140%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%2280%22%20cy%3D%22160%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%2290%22%20cy%3D%2240%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%22100%22%20cy%3D%2260%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%22110%22%20cy%3D%2280%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%22120%22%20cy%3D%22100%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%22130%22%20cy%3D%22120%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%22140%22%20cy%3D%22140%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%22150%22%20cy%3D%2260%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%22160%22%20cy%3D%2280%22%20r%3D%220.9%22/%3E%0A%20%20%3Ccircle%20cx%3D%22170%22%20cy%3D%22100%22%20r%3D%221%22/%3E%0A%20%20%3Ccircle%20cx%3D%22180%22%20cy%3D%22120%22%20r%3D%220.8%22/%3E%0A%20%20%3Ccircle%20cx%3D%22190%22%20cy%3D%22140%22%20r%3D%220.9%22/%3E%0A%3C/g%3E%0A%3CanimateTransform%20attributeName%3D%22transform%22%20type%3D%22translate%22%20from%3D%220%200%22%20to%3D%22-200%200%22%20dur%3D%2250s%22%20repeatCount%3D%22indefinite%22/%3E%0A%3C/svg%3E') repeat; background-size: 200px 200px; animation: twinkling 50s linear infinite; z-index: 1; } /* انیمیشن حرکت ستارهها */ @keyframes twinkling { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-200px, 0, 0); } } /* انیمیشن پالس برای دکمه شروع */ @keyframes pulse { 0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); } 50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); } 100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); } } .night-sky-button:hover { background-color: #000044; transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 255, 255, 0.7); } /* دکمههای اضافی */ .additional-buttons { display: none; margin-top: 30px; animation: fadeIn 1s forwards; opacity: 0; } .additional-buttons.show { display: flex; flex-direction: column; align-items: center; opacity: 1; } .additional-buttons .btn { width: 250px; padding: 14px 28px; margin: 10px 0; border: none; border-radius: 12px; font-size: 20px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s; text-decoration: none; color: white; position: relative; overflow: hidden; } /* افکتهای پسزمینه برای دکمهها */ .additional-buttons .btn::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: rgba(255, 255, 255, 0.1); transform: rotate(45deg); transition: transform 0.5s; } .additional-buttons .btn:hover::before { transform: rotate(0deg); } .btn-free { background: linear-gradient(45deg, var(--button-green), var(--button-blue)); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); animation: float 3s ease-in-out infinite; } .btn-free:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } .btn-pro { background: linear-gradient(45deg, var(--button-purple), var(--button-orange)); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); animation: float 4s ease-in-out infinite; } .btn-pro:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } .btn-ultra { background: linear-gradient(45deg, var(--button-red), var(--button-purple)); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); animation: float 5s ease-in-out infinite; } .btn-ultra:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } .btn-combine { background: linear-gradient(45deg, var(--button-purple), var(--button-green)); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); animation: float 6s ease-in-out infinite; } .btn-combine:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } /* انیمیشن شناور برای دکمهها */ @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } /* توضیحات زیر دکمهها */ .btn-description { color: var(--description-color); font-size: 16px; margin-bottom: 8px; max-width: 250px; text-align: center; animation: fadeInText 1s forwards; opacity: 0; } .additional-buttons.show .btn-description { opacity: 1; } @keyframes fadeInText { from { opacity: 0; } to { opacity: 1; } } /* انیمیشن فید این */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* عنوان و توضیحات */ .title { color: #33cccc; font-size: 24pt; font-weight: bold; margin: 20px 0; animation: slideIn 1s forwards; transform: translateY(-20px); opacity: 0; letter-spacing: 0; word-spacing: 0; } .description { box-sizing: border-box; margin: 2rem 0 0; padding: 20px; color: var(--description-color); font-size: 1.1rem; font-family: 'Vazirmatn', sans-serif; text-align: center; background-color: #0a0f2c; border-radius: 8px; animation: slideInDescription 1s 0.5s forwards; transform: translateY(20px); opacity: 0; } @keyframes slideIn { to { transform: translateY(0); opacity: 1; } } @keyframes slideInDescription { to { transform: translateY(0); opacity: 1; } } .models-section p { color: var(--description-color); text-align: center; margin-bottom: 2rem; animation: fadeIn 1s 1s forwards; opacity: 0; } /* ریسپانسیو */ @media (min-width: 640px) { .night-sky-button { padding: 20px 40px; font-size: 24px; } .additional-buttons .btn { width: 300px; font-size: 20px; } .title { font-size: 28pt; } .description { font-size: 1.2rem; } } </style>startButton.addEventListener('click', () => { additionalButtons.classList.toggle('show'); }); </script> - Assistant
در ادامه کد اصلاحشده و کامل HTML و CSS شما آمده است. توضیحات بخشهای مربوطه نیز با دقت تغییر کرده است:
<!DOCTYPE html> <html lang="fa"> <head> <meta charset="UTF-8"> <title>Flux AI Image Generator</title> <style> :root { --primary-bg: #0a0f2c; --button-purple: #9333EA; --button-gray: #374151; --button-green: #22c55e; --button-blue: #3b82f6; --button-orange: #f97316; --button-red: #ef4444; --card-bg: #ffffff; --text-color: #ffffff; --description-color: #94A3B8; } * { margin: 0; padding: 0; box-sizing: border-box; } body { background-color: var(--primary-bg); color: var(--text-color); font-family: 'Vazirmatn', sans-serif; line-height: 1.5; direction: rtl; text-align: center; overflow-x: hidden; } .container { max-width: 100%; margin: 0 auto; padding: 1rem; } .initial-image { display: flex; justify-content: center; align-items: center; margin-top: 20px; } .image-frame { padding: 10px; background: linear-gradient(135deg, #9333EA, #3b82f6); border-radius: 20px; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); display: inline-block; transition: transform 0.3s; } .image-frame img { max-width: 100%; height: auto; border-radius: 15px; transition: transform 0.3s; } .image-frame:hover { transform: scale(1.05); } .night-sky-button { background-color: #000033; padding: 16px 32px; border-radius: 8px; color: var(--text-color); font-size: 20px; border: none; cursor: pointer; position: relative; overflow: hidden; display: inline-block; text-align: center; margin: 20px auto; box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s; animation: pulse 2s infinite; } .night-sky-button a { color: var(--text-color); text-decoration: none; position: relative; z-index: 2; } .night-sky-button:hover { background-color: #000044; transform: scale(1.05); box-shadow: 0 0 30px rgba(255, 255, 255, 0.7); } .additional-buttons { display: none; margin-top: 30px; animation: fadeIn 1s forwards; opacity: 0; } .additional-buttons.show { display: flex; flex-direction: column; align-items: center; opacity: 1; } .additional-buttons .btn { width: 250px; padding: 14px 28px; margin: 10px 0; border: none; border-radius: 12px; font-size: 20px; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s; text-decoration: none; color: white; position: relative; overflow: hidden; } .additional-buttons .btn-description { color: var(--description-color); font-size: 14px; margin-bottom: 6px; max-width: 250px; text-align: center; animation: fadeInText 1s forwards; opacity: 0; } .additional-buttons.show .btn-description { opacity: 1; } .additional-buttons hr { width: 80%; margin: 20px 0; background-color: var(--description-color); height: 1px; border: none; animation: fadeIn 1s 1s forwards; } .btn-free { background: linear-gradient(45deg, var(--button-green), var(--button-blue)); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); animation: float 3s ease-in-out infinite; } .btn-free:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } .btn-pro { background: linear-gradient(45deg, var(--button-purple), var(--button-orange)); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); animation: float 4s ease-in-out infinite; } .btn-pro:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } .btn-ultra { background: linear-gradient(45deg, var(--button-red), var(--button-purple)); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); animation: float 5s ease-in-out infinite; } .btn-ultra:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } .btn-combine { background: linear-gradient(45deg, var(--button-purple), var(--button-green)); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); animation: float 6s ease-in-out infinite; } .btn-combine:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeInText { from { opacity: 0; } to { opacity: 1; } } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } @media (min-width: 640px) { .night-sky-button { padding: 20px 40px; font-size: 24px; } .additional-buttons .btn { width: 300px; font-size: 20px; } } </style> </head> <body> <div class="container"> <div class="initial-image"> <div class="image-frame"> <img src="https://app.puzzley.net/uploads/user/Jydo/%D9%87%D9%88%D8%B4%20%D9%85%D8%B5%D9%86%D9%88%D8%B9%DB%8C/Negar_1729054834819.jpg" alt="Flux AI Image Generator" /> </div> </div> <div class="night-sky-button" id="start-button"><a href="javascript:void(0);">شروع ساخت🪄</a></div> <div class="additional-buttons" id="additional-buttons"> <div class="btn-description">نسخه رایگان برای تجربه تصاویر معمولی ⬇️</div> <a href="#link1" class="btn btn-free">فلاکس رایگان (Free)</a> <div class="btn-description">نسخه پیشرفته با کیفیت بالا و جزئیات دقیق ⬇️</div> <a href="#link2" class="btn btn-pro">فلاکس پیشرفته (Pro)</a> <hr /> <a href="#ultra" class="btn btn-ultra">فلاکس الترا</a> <a href="#combine-image" class="btn btn-combine">ترکیب تصویر</a> </div> </div> <script> const startButton = document.getElementById('start-button'); const additionalButtons = document.getElementById('additional-buttons'); startButton.addEventListener('click', () => { additionalButtons.classList.toggle('show'); }); </script> </body> </html>