Spaces:
Sleeping
Sleeping
| ```css | |
| /* ========================================================= | |
| Global Styling | |
| ========================================================= */ | |
| body { | |
| background: #020617; | |
| margin: 0; | |
| padding: 0; | |
| font-family: "Inter", sans-serif; | |
| } | |
| /* Main App Container */ | |
| .gradio-container { | |
| max-width: 1500px ; | |
| margin: auto ; | |
| padding: 20px ; | |
| background: | |
| radial-gradient(circle at top left, | |
| rgba(124, 58, 237, 0.18), | |
| transparent 25%), | |
| radial-gradient(circle at bottom right, | |
| rgba(59, 130, 246, 0.18), | |
| transparent 25%), | |
| #020617 ; | |
| color: white ; | |
| } | |
| /* ========================================================= | |
| Hero Section | |
| ========================================================= */ | |
| .hero-section { | |
| padding: 50px; | |
| border-radius: 30px; | |
| background: | |
| linear-gradient( | |
| 135deg, | |
| rgba(15, 23, 42, 0.95), | |
| rgba(30, 41, 59, 0.92) | |
| ); | |
| border: 1px solid rgba(255, 255, 255, 0.08); | |
| box-shadow: | |
| 0 10px 40px rgba(0, 0, 0, 0.45); | |
| margin-bottom: 25px; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .hero-section::before { | |
| content: ""; | |
| position: absolute; | |
| width: 450px; | |
| height: 450px; | |
| background: rgba(124, 58, 237, 0.15); | |
| border-radius: 50%; | |
| top: -180px; | |
| right: -150px; | |
| } | |
| .hero-section h1 { | |
| font-size: 3.2rem; | |
| font-weight: 900; | |
| margin-bottom: 15px; | |
| background: linear-gradient( | |
| 90deg, | |
| #ffffff, | |
| #a78bfa, | |
| #60a5fa | |
| ); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| } | |
| .hero-section p { | |
| font-size: 1.15rem; | |
| color: #cbd5e1; | |
| max-width: 800px; | |
| line-height: 1.7; | |
| } | |
| /* ========================================================= | |
| Glass Panels | |
| ========================================================= */ | |
| .glass-panel { | |
| background: rgba(15, 23, 42, 0.72) ; | |
| border: 1px solid rgba(255, 255, 255, 0.08) ; | |
| backdrop-filter: blur(18px); | |
| border-radius: 24px ; | |
| padding: 22px ; | |
| box-shadow: | |
| 0 8px 30px rgba(0, 0, 0, 0.35); | |
| } | |
| /* ========================================================= | |
| Textboxes | |
| ========================================================= */ | |
| textarea, | |
| input { | |
| background: rgba(255, 255, 255, 0.06) ; | |
| color: white ; | |
| border-radius: 16px ; | |
| border: 1px solid rgba(255, 255, 255, 0.10) ; | |
| padding: 14px ; | |
| transition: all 0.3s ease ; | |
| } | |
| textarea:focus, | |
| input:focus { | |
| border: 1px solid rgba(124, 58, 237, 0.7) ; | |
| box-shadow: | |
| 0 0 0 3px rgba(124, 58, 237, 0.2) ; | |
| } | |
| /* ========================================================= | |
| Dropdowns | |
| ========================================================= */ | |
| select { | |
| background: rgba(255, 255, 255, 0.06) ; | |
| color: white ; | |
| border-radius: 14px ; | |
| border: 1px solid rgba(255, 255, 255, 0.10) ; | |
| } | |
| /* ========================================================= | |
| Buttons | |
| ========================================================= */ | |
| button { | |
| border-radius: 16px ; | |
| transition: | |
| transform 0.25s ease, | |
| box-shadow 0.25s ease ; | |
| font-weight: 700 ; | |
| } | |
| /* Main Generate Button */ | |
| .generate-btn { | |
| background: | |
| linear-gradient( | |
| 135deg, | |
| #7c3aed, | |
| #2563eb | |
| ) ; | |
| border: none ; | |
| color: white ; | |
| height: 56px ; | |
| font-size: 1rem ; | |
| box-shadow: | |
| 0 10px 30px rgba(99, 102, 241, 0.35); | |
| } | |
| .generate-btn:hover { | |
| transform: translateY(-3px); | |
| box-shadow: | |
| 0 15px 35px rgba(99, 102, 241, 0.45); | |
| } | |
| /* Secondary Buttons */ | |
| .secondary-btn { | |
| background: | |
| rgba(255, 255, 255, 0.08) ; | |
| border: | |
| 1px solid rgba(255, 255, 255, 0.12) ; | |
| color: white ; | |
| height: 50px ; | |
| } | |
| .secondary-btn:hover { | |
| transform: translateY(-2px); | |
| background: | |
| rgba(255, 255, 255, 0.12) ; | |
| } | |
| /* Example Prompt Buttons */ | |
| .examples button, | |
| button.secondary { | |
| background: | |
| rgba(255, 255, 255, 0.07) ; | |
| border: | |
| 1px solid rgba(255, 255, 255, 0.08) ; | |
| color: #e2e8f0 ; | |
| } | |
| .examples button:hover { | |
| background: | |
| rgba(124, 58, 237, 0.18) ; | |
| } | |
| /* ========================================================= | |
| Image Output | |
| ========================================================= */ | |
| .image-output { | |
| border-radius: 24px ; | |
| overflow: hidden ; | |
| border: | |
| 1px solid rgba(255, 255, 255, 0.08); | |
| background: | |
| rgba(255, 255, 255, 0.04); | |
| padding: 10px; | |
| } | |
| /* ========================================================= | |
| JSON History Panel | |
| ========================================================= */ | |
| .json-container { | |
| background: | |
| rgba(255, 255, 255, 0.04) ; | |
| border-radius: 18px ; | |
| border: | |
| 1px solid rgba(255, 255, 255, 0.08) ; | |
| } | |
| /* ========================================================= | |
| Markdown Styling | |
| ========================================================= */ | |
| .markdown { | |
| color: #f8fafc ; | |
| } | |
| .markdown h1, | |
| .markdown h2, | |
| .markdown h3 { | |
| color: white ; | |
| } | |
| .markdown p { | |
| color: #cbd5e1 ; | |
| } | |
| /* ========================================================= | |
| Scrollbars | |
| ========================================================= */ | |
| ::-webkit-scrollbar { | |
| width: 10px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: #0f172a; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: | |
| linear-gradient( | |
| 180deg, | |
| #7c3aed, | |
| #2563eb | |
| ); | |
| border-radius: 999px; | |
| } | |
| /* ========================================================= | |
| Footer | |
| ========================================================= */ | |
| .footer { | |
| text-align: center; | |
| margin-top: 30px; | |
| padding: 20px; | |
| color: #94a3b8; | |
| font-size: 0.95rem; | |
| } | |
| /* ========================================================= | |
| Responsive Design | |
| ========================================================= */ | |
| @media (max-width: 768px) { | |
| .hero-section { | |
| padding: 30px; | |
| } | |
| .hero-section h1 { | |
| font-size: 2.2rem; | |
| } | |
| .hero-section p { | |
| font-size: 1rem; | |
| } | |
| .glass-panel { | |
| padding: 18px ; | |
| } | |
| } | |
| ``` | |