Spaces:
Sleeping
Sleeping
Commit ·
c55c912
1
Parent(s): 2a16478
update UI
Browse files33 unmodified lines3435363738394041424344453839404146474849505152535455564457584647596061626364655066676869707153545572737475767778798081828384858659606162636465878889909192939495969798991001011021031041051061076810810970711101111121131141157311611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516640 unmodified lines20720820912021021121221333 unmodified lines# --- CSS Styling ---st.markdown("""<style> @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap'); /* Apply premium typography globally */ html, body, [class*="css"], .stMarkdown, p, span, div, h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif !important; } /* Premium Headers */ .main-header { font-size: 2.5rem; font-weight: bold; color: #1E88E5; margin-bottom: 0px; font-family: 'Outfit', sans-serif !important; font-size: 2.8rem; font-weight: 800; background: linear-gradient(135deg, #1E88E5 0%, #1565C0 50%, #0D47A1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; letter-spacing: -0.5px; } .sub-header { font-size: 1.2rem; font-size: 1.1rem; color: var(--text-color); opacity: 0.8; margin-bottom: 30px; opacity: 0.75; margin-bottom: 24px; line-height: 1.4; } /* Glassmorphism Cards with Smooth Transitions */ .card { background-color: var(--secondary-background-color); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(128, 128, 128, 0.15); color: var(--text-color); padding: 20px; border-radius: 10px; border: 1px solid rgba(128, 128, 128, 0.2); margin-bottom: 20px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; } .card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(30, 136, 229, 0.1); border-color: rgba(30, 136, 229, 0.3); } /* Pill Badges with Hover Effect */ .badge { display: inline-block; padding: 5px 10px; background-color: #1E88E5; color: white; border-radius: 15px; font-size: 0.9rem; margin-right: 5px; margin-bottom: 5px; padding: 6px 14px; background: linear-gradient(135deg, rgba(30, 136, 229, 0.08) 0%, rgba(21, 101, 192, 0.12) 100%); color: #1E88E5 !important; border: 1px solid rgba(30, 136, 229, 0.25); border-radius: 30px; font-size: 0.85rem; font-weight: 600; margin-right: 6px; margin-bottom: 8px; transition: all 0.2s ease; } .badge:hover { background: #1E88E5; color: white !important; transform: scale(1.05); box-shadow: 0 4px 10px rgba(30, 136, 229, 0.2); } /* Action Items Sleek Border & Hover Transform */ .action-item { background-color: var(--secondary-background-color); background: rgba(255, 152, 0, 0.03); color: var(--text-color); border-left: 5px solid #ff9800; padding: 10px; border-left: 5px solid #FF9800; border-top: 1px solid rgba(255, 152, 0, 0.12); border-right: 1px solid rgba(255, 152, 0, 0.12); border-bottom: 1px solid rgba(255, 152, 0, 0.12); padding: 14px 18px; margin-bottom: 10px; border-radius: 0 5px 5px 0; border-radius: 0 10px 10px 0; transition: all 0.2s ease; } .action-item:hover { transform: translateX(4px); background: rgba(255, 152, 0, 0.06); } /* Smooth Scrollbar for Premium Feel */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, 0.3); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, 0.5); }
/* Mobile Responsiveness (Responsive Typography & Spacing) */ @media (max-width: 768px) { .main-header { font-size: 1.9rem !important; line-height: 1.2; text-align: center; } .sub-header { font-size: 0.95rem !important; text-align: center; margin-bottom: 18px !important; } .card { padding: 16px !important; margin-bottom: 14px !important; } .badge { font-size: 0.8rem !important; padding: 4px 10px !important; } .action-item { padding: 10px 14px !important; } }</style>""", unsafe_allow_html=True)40 unmodified lines """ st.markdown(css_spinner, unsafe_allow_html=True) st.info("💡 **Tahukah Anda?** Sistem saat ini sedang memuat model *Natural Language Processing* (NLP) yang berukuran ratusan Megabyte ke dalam memori RAM komputer Anda. Proses ini memakan waktu beberapa detik dan hanya terjadi pada saat pertama kali aplikasi dijalankan.") st.info("💡 **Tahukah Anda?** Sistem saat ini sedang memuat model *Natural Language Processing* (NLP) yang berukuran cukup besar ke dalam memori server/komputer Anda. Proses ini memakan waktu beberapa saat dan hanya terjadi pada saat pertama kali aplikasi dijalankan.") # Jeda sesaat agar browser sempat me-render elemen UI di atas sebelum thread diblokir oleh AI time.sleep(0.2)app.py+113-23