File size: 2,067 Bytes
1041fbb ae7ef48 b2652f1 047696e bfccda2 b2652f1 1041fbb b2652f1 bfccda2 047696e ae7ef48 b2652f1 047696e b2652f1 047696e ae7ef48 047696e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | import streamlit as st
import streamlit.components.v1 as components
# 1. Page Config
st.set_page_config(page_title="TeraBites Org Card", layout="centered")
# 2. Branding Header
st.markdown("""
<div style="text-align: center; margin-bottom: 20px;">
<h1 style="text-decoration: underline; margin-bottom: 5px;">Welcome to TeraBites</h1>
<p style="font-size: 1.1em; color: #00f2ff; margin-top: 0;">by onyxneo</p>
</div>
""", unsafe_allow_html=True)
# 3. AI Team Mission
st.info("**The AI Team** The TeraBites AI Team is a special Team focused to provide users the best AI possible and best experience in HF by creating spaces like this!")
# 4. The TeraBites Oval (Visual Engine)
# I have set this to be ALWAYS active since we want it ON when the user comes.
oval_html = """
<div style="background: #000; padding: 20px; border-radius: 15px; border: 1px solid #333; text-align: center;">
<div id="oval" style="
width: 140px; height: 70px;
border: 3px solid #fff; border-radius: 50%;
margin: auto; display: flex; align-items: center; justify-content: center;
position: relative; box-shadow: 0 0 15px #00f2ff;">
<h2 style="color: #fff; font-family: monospace; margin: 0;">TeraBites</h2>
<div style="position: absolute; width: 100%; height: 100%; border: 2px solid #00f2ff; border-radius: 50%; animation: ripple 2s infinite;"></div>
</div>
<style>
@keyframes ripple { 0% {transform: scale(1); opacity: 1;} 100% {transform: scale(2.2); opacity: 0;} }
</style>
</div>
"""
components.html(oval_html, height=160)
# 5. Auto-Start Logic
# We force the video to autoplay by adding '&autoplay=1&mute=0' to the URL
# Note: Most browsers require the user to interact before sound plays,
# but the video/visuals will start immediately.
st.video("https://www.youtube.com/watch?v=KK3KXAECte4&autoplay=1")
# 6. The "Kill Switch"
# If they want to stop the madness, they still have the button.
if st.button("■ EMERGENCY STOP"):
st.warning("TeraBites Core Offline.")
st.stop() |