wesam0099 commited on
Commit
29b1d23
·
verified ·
1 Parent(s): f50729c

Upload app.py

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