Spaces:
Sleeping
Sleeping
udpating css
Browse files
app.py
CHANGED
|
@@ -72,28 +72,17 @@ st.markdown("""
|
|
| 72 |
font-family: 'Playfair Display', serif;
|
| 73 |
font-size: 4rem;
|
| 74 |
font-weight: 700;
|
| 75 |
-
color: #d4af37;
|
| 76 |
margin-bottom: 1.5rem;
|
| 77 |
-
text-shadow: 0
|
| 78 |
position: relative;
|
| 79 |
z-index: 1;
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
-webkit-text-fill-color: transparent;
|
| 84 |
-
background-clip: text;
|
| 85 |
-
}
|
| 86 |
-
|
| 87 |
-
/* Fallback for browsers that don't support background-clip */
|
| 88 |
-
@supports not (-webkit-background-clip: text) {
|
| 89 |
-
.main-title {
|
| 90 |
-
color: #d4af37 !important;
|
| 91 |
-
background: none !important;
|
| 92 |
-
}
|
| 93 |
}
|
| 94 |
|
| 95 |
.subtitle {
|
| 96 |
-
display: contents;
|
| 97 |
font-size: 1.4rem;
|
| 98 |
color: rgba(255, 255, 255, 0.8);
|
| 99 |
max-width: 600px;
|
|
@@ -492,13 +481,30 @@ st.markdown("""
|
|
| 492 |
</style>
|
| 493 |
""", unsafe_allow_html=True)
|
| 494 |
|
| 495 |
-
# Hero Section
|
| 496 |
-
st.
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
<
|
| 500 |
-
</
|
| 501 |
-
""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 502 |
|
| 503 |
# Feature Cards
|
| 504 |
st.markdown("""
|
|
|
|
| 72 |
font-family: 'Playfair Display', serif;
|
| 73 |
font-size: 4rem;
|
| 74 |
font-weight: 700;
|
| 75 |
+
color: #d4af37 !important;
|
| 76 |
margin-bottom: 1.5rem;
|
| 77 |
+
text-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
|
| 78 |
position: relative;
|
| 79 |
z-index: 1;
|
| 80 |
+
display: block !important;
|
| 81 |
+
visibility: visible !important;
|
| 82 |
+
opacity: 1 !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
}
|
| 84 |
|
| 85 |
.subtitle {
|
|
|
|
| 86 |
font-size: 1.4rem;
|
| 87 |
color: rgba(255, 255, 255, 0.8);
|
| 88 |
max-width: 600px;
|
|
|
|
| 481 |
</style>
|
| 482 |
""", unsafe_allow_html=True)
|
| 483 |
|
| 484 |
+
# Hero Section with Streamlit fallback
|
| 485 |
+
col1, col2, col3 = st.columns([1, 2, 1])
|
| 486 |
+
with col2:
|
| 487 |
+
st.markdown("""
|
| 488 |
+
<div class="hero-section">
|
| 489 |
+
<h1 class="main-title">🤖 AI vs Human Detector</h1>
|
| 490 |
+
<p class="subtitle">Unveil the origin of any text with precision. Advanced AI technology meets elegant design to deliver instant, accurate analysis of whether content was crafted by artificial intelligence or human creativity.</p>
|
| 491 |
+
</div>
|
| 492 |
+
""", unsafe_allow_html=True)
|
| 493 |
+
|
| 494 |
+
# Emergency fallback if CSS fails on HuggingFace
|
| 495 |
+
if 'title_shown' not in st.session_state:
|
| 496 |
+
st.session_state.title_shown = True
|
| 497 |
+
# This will show if CSS fails
|
| 498 |
+
st.markdown("""
|
| 499 |
+
<script>
|
| 500 |
+
setTimeout(function() {
|
| 501 |
+
var title = document.querySelector('.main-title');
|
| 502 |
+
if (!title || window.getComputedStyle(title).opacity === '0' || window.getComputedStyle(title).visibility === 'hidden') {
|
| 503 |
+
document.querySelector('.backup-title').style.display = 'block';
|
| 504 |
+
}
|
| 505 |
+
}, 100);
|
| 506 |
+
</script>
|
| 507 |
+
""", unsafe_allow_html=True)
|
| 508 |
|
| 509 |
# Feature Cards
|
| 510 |
st.markdown("""
|