Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +217 -123
src/streamlit_app.py
CHANGED
|
@@ -9,135 +9,229 @@ st.set_page_config(
|
|
| 9 |
|
| 10 |
# CSS مخصص
|
| 11 |
st.markdown("""
|
| 12 |
-
<style>
|
| 13 |
-
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
|
| 14 |
-
|
| 15 |
-
html, body, [class*="css"] {
|
| 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 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
}
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
| 109 |
-
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
""", unsafe_allow_html=True)
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
-
|
| 126 |
# واجهة الوكيل الصوتي
|
| 127 |
st.markdown("""
|
| 128 |
-
<div class="full-screen">
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 136 |
</div>
|
| 137 |
-
</div>
|
| 138 |
|
| 139 |
-
<div class="about-section"
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# CSS مخصص
|
| 11 |
st.markdown("""
|
| 12 |
+
<style>
|
| 13 |
+
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');
|
| 14 |
+
|
| 15 |
+
html, body, [class*="css"] {
|
| 16 |
+
font-family: 'Cairo', sans-serif;
|
| 17 |
+
background-color: #0f1117;
|
| 18 |
+
margin: 0;
|
| 19 |
+
padding: 0;
|
| 20 |
+
height: 100%;
|
| 21 |
+
overflow: hidden !important;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
section.main {
|
| 25 |
+
height: 100vh;
|
| 26 |
+
overflow: hidden;
|
| 27 |
+
padding: 0 !important;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
.block-container {
|
| 31 |
+
padding: 0 !important;
|
| 32 |
+
margin: 0 !important;
|
| 33 |
+
overflow: hidden !important;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
[data-testid="stVerticalBlock"] {
|
| 37 |
+
overflow: hidden !important;
|
| 38 |
+
max-height: 100vh;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
header, footer, .viewerBadge_container__1QSob {
|
| 42 |
+
display: none !important;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.full-screen {
|
| 46 |
+
height: 100vh;
|
| 47 |
+
width: 100%;
|
| 48 |
+
background: linear-gradient(-45deg, #2193b0, #6dd5ed, #1e3c72, #2a5298);
|
| 49 |
+
background-size: 400% 400%;
|
| 50 |
+
animation: gradientBG 10s ease infinite;
|
| 51 |
+
display: flex;
|
| 52 |
+
flex-direction: column;
|
| 53 |
+
justify-content: center;
|
| 54 |
+
align-items: center;
|
| 55 |
+
color: white;
|
| 56 |
+
text-align: center;
|
| 57 |
+
padding: 30px 15px;
|
| 58 |
+
border-radius: 0 0 40px 40px;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
@keyframes gradientBG {
|
| 62 |
+
0% { background-position: 0% 50%; }
|
| 63 |
+
50% { background-position: 100% 50%; }
|
| 64 |
+
100% { background-position: 0% 50%; }
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
.logo-container img {
|
| 68 |
+
width: 120px;
|
| 69 |
+
height: 120px;
|
| 70 |
+
border-radius: 50%;
|
| 71 |
+
border: 5px solid white;
|
| 72 |
+
box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
|
| 73 |
+
animation: glow 3s infinite alternate;
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
@keyframes glow {
|
| 77 |
+
0% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.6); }
|
| 78 |
+
100% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.9); }
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
h1 {
|
| 82 |
+
font-size: 2.8rem;
|
| 83 |
+
font-weight: 700;
|
| 84 |
+
margin: 20px 0;
|
| 85 |
+
color: #ffffff;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
p {
|
| 89 |
+
font-size: 1.1rem;
|
| 90 |
+
max-width: 600px;
|
| 91 |
+
margin: 15px auto;
|
| 92 |
+
opacity: 0.9;
|
| 93 |
+
color: rgba(255, 255, 255, 0.95);
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
.cta-buttons {
|
| 97 |
+
margin-top: 25px;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.cta-buttons a {
|
| 101 |
+
background: #00bcd4;
|
| 102 |
+
color: white;
|
| 103 |
+
font-size: 1.05rem;
|
| 104 |
+
font-weight: bold;
|
| 105 |
+
text-decoration: none;
|
| 106 |
+
padding: 10px 25px;
|
| 107 |
+
border-radius: 30px;
|
| 108 |
+
transition: 0.3s;
|
| 109 |
+
box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
.cta-buttons a:hover {
|
| 113 |
+
background: #0097a7;
|
| 114 |
+
box-shadow: 0 6px 20px rgba(0, 188, 212, 0.6);
|
| 115 |
+
transform: translateY(-3px);
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
.about-section {
|
| 119 |
+
background-color: #ffffff;
|
| 120 |
+
color: #222;
|
| 121 |
+
border-radius: 30px;
|
| 122 |
+
padding: 60px 30px;
|
| 123 |
+
max-width: 1000px;
|
| 124 |
+
margin: 60px auto;
|
| 125 |
+
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
|
| 126 |
+
text-align: center;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
.about-section h2 {
|
| 130 |
+
font-size: 2.5rem;
|
| 131 |
+
color: #0f1117;
|
| 132 |
+
margin-bottom: 20px;
|
| 133 |
+
font-weight: 800;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
.about-section p {
|
| 137 |
+
font-size: 1.2rem;
|
| 138 |
+
color: #555;
|
| 139 |
+
margin: 0 auto 40px;
|
| 140 |
+
max-width: 700px;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
.features {
|
| 144 |
+
display: flex;
|
| 145 |
+
flex-wrap: wrap;
|
| 146 |
+
justify-content: center;
|
| 147 |
+
gap: 30px;
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
.feature {
|
| 151 |
+
background: linear-gradient(135deg, #ffffff, #f7f7f7);
|
| 152 |
+
border-radius: 25px;
|
| 153 |
+
padding: 30px 20px;
|
| 154 |
+
width: 260px;
|
| 155 |
+
text-align: center;
|
| 156 |
+
box-shadow: 0 6px 18px rgba(0,0,0,0.1);
|
| 157 |
+
transition: transform 0.4s ease, box-shadow 0.4s ease;
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
.feature:hover {
|
| 161 |
+
transform: scale(1.05);
|
| 162 |
+
box-shadow: 0 10px 24px rgba(0,0,0,0.15);
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
.feature img {
|
| 166 |
+
width: 60px;
|
| 167 |
+
height: 60px;
|
| 168 |
+
margin-bottom: 15px;
|
| 169 |
+
transition: transform 0.3s ease;
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
.feature:hover img {
|
| 173 |
+
transform: rotate(6deg) scale(1.1);
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
.feature h4 {
|
| 177 |
+
font-size: 1.3rem;
|
| 178 |
+
color: #0077b6;
|
| 179 |
+
margin-bottom: 10px;
|
| 180 |
+
font-weight: 700;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
.feature p {
|
| 184 |
+
font-size: 1rem;
|
| 185 |
+
color: #444;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
.feature:nth-child(1) { background: #fef6f0; }
|
| 189 |
+
.feature:nth-child(2) { background: #f0f8ff; }
|
| 190 |
+
.feature:nth-child(3) { background: #f4f4fe; }
|
| 191 |
+
|
| 192 |
+
</style>
|
| 193 |
""", unsafe_allow_html=True)
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
|
|
|
| 198 |
# واجهة الوكيل الصوتي
|
| 199 |
st.markdown("""
|
| 200 |
+
<div class="full-screen">
|
| 201 |
+
<div class="logo-container">
|
| 202 |
+
<img src="https://cdn-icons-png.flaticon.com/512/4712/4712109.png" alt="Voice Assistant">
|
| 203 |
+
</div>
|
| 204 |
+
<h1>وكيلك الصوتي الذكي</h1>
|
| 205 |
+
<p>
|
| 206 |
+
تحدث، ودع وكيلنا الذكي يتولى المهمة!<br>
|
| 207 |
+
حجوزاتك وطلباتك تُنجز بسهولة واحترافية.
|
| 208 |
+
</p>
|
| 209 |
+
<div class="cta-buttons">
|
| 210 |
+
<a href="https://vapi.ai?demo=true&shareKey=f612978f-043a-48ad-8133-d5902b2aba32&assistantId=acdaf234-999f-4fc9-b229-d51e1d9fd10d" target="_blank">
|
| 211 |
+
تواصل مع وكيلك الآن
|
| 212 |
+
</a>
|
| 213 |
+
</div>
|
| 214 |
</div>
|
|
|
|
| 215 |
|
| 216 |
+
<div class="about-section">
|
| 217 |
+
<h2>من نحن</h2>
|
| 218 |
+
<p>نحن فريق تقني نؤمن بقوة الذكاء الاصطناعي في تسهيل حياتك اليومية، من خلال مساعد ذكي صوتي يفهمك ويتفاعل معك.</p>
|
| 219 |
+
<div class="features">
|
| 220 |
+
<div class="feature">
|
| 221 |
+
<img src="https://cdn-icons-png.flaticon.com/512/3595/3595455.png" alt="Booking">
|
| 222 |
+
<h4>سهولة الحجز</h4>
|
| 223 |
+
<p>إجراء الحجوزات في العيادات والمطاعم بكل سهولة ويسر.</p>
|
| 224 |
+
</div>
|
| 225 |
+
<div class="feature">
|
| 226 |
+
<img src="https://cdn-icons-png.flaticon.com/512/2099/2099058.png" alt="Recording">
|
| 227 |
+
<h4>تسجيل دقيق</h4>
|
| 228 |
+
<p>تسجيل الأوامر والطلبات الصوتية بدقة واحترافية عالية.</p>
|
| 229 |
+
</div>
|
| 230 |
+
<div class="feature">
|
| 231 |
+
<img src="https://cdn-icons-png.flaticon.com/512/4712/4712006.png" alt="Interaction">
|
| 232 |
+
<h4>تفاعل ذكي</h4>
|
| 233 |
+
<p>الرد الفوري والتفاعل الطبيعي مع محادثاتك وكأنك تتحدث مع إنسان.</p>
|
| 234 |
+
</div>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
""", unsafe_allow_html=True)
|