EngReem85 commited on
Commit
befa761
·
verified ·
1 Parent(s): 984c1aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -85
app.py CHANGED
@@ -79,55 +79,39 @@ def course_correction(correction, state):
79
  # ==============================
80
  css = """
81
  /* ============================= */
82
- /* 🌌 طبقة الفضاء */
83
  /* ============================= */
84
  #space-background {
85
  position: fixed;
86
  inset: 0;
87
  z-index: 0;
88
  overflow: hidden;
89
- background: radial-gradient(circle at bottom, #0b0f0c 0%, #050705 70%);
90
  pointer-events: none;
91
  }
92
 
93
  /* ============================= */
94
- /* ✨ النجوم 3 طبقات */
95
  /* ============================= */
96
  .stars {
97
  position: absolute;
98
- inset: -50%;
99
- background-repeat: repeat;
100
- opacity: 0.6;
101
- }
102
-
103
- /* نجوم بعيدة */
104
- .layer1 {
105
- background-image:
106
- radial-gradient(1px 1px at 20% 30%, #9fa97a, transparent),
107
- radial-gradient(1px 1px at 80% 70%, #8e955f, transparent);
108
- background-size: 300px 300px;
109
- animation: starsSlow 180s linear infinite;
110
- opacity: 0.3;
111
- }
112
-
113
- /* نجوم متوسطة */
114
- .layer2 {
115
- background-image:
116
- radial-gradient(1px 1px at 40% 60%, #b7c28b, transparent),
117
- radial-gradient(1px 1px at 70% 20%, #aab37a, transparent);
118
- background-size: 200px 200px;
119
- animation: starsMedium 120s linear infinite;
120
- opacity: 0.5;
121
- }
122
-
123
- /* نجوم قريبة */
124
- .layer3 {
125
  background-image:
126
- radial-gradient(2px 2px at 50% 50%, #cfd6b5, transparent),
127
- radial-gradient(1px 1px at 10% 90%, #d6ddb8, transparent);
128
- background-size: 120px 120px;
129
- animation: starsFast 80s linear infinite;
130
- opacity: 0.7;
 
 
 
 
 
 
 
 
 
 
131
  }
132
 
133
  /* ============================= */
@@ -135,41 +119,23 @@ css = """
135
  /* ============================= */
136
  .planet {
137
  position: absolute;
138
- top: 15%;
139
- right: -180px;
140
- width: 420px;
141
- height: 420px;
142
- background: radial-gradient(circle at 30% 30%, #7a8450, #1b1f14 70%);
143
  border-radius: 50%;
144
- opacity: 0.4;
145
- animation: planetFloat 90s ease-in-out infinite alternate;
146
- }
147
-
148
- /* ============================= */
149
- /* 🎞️ الحركات */
150
- /* ============================= */
151
- @keyframes starsSlow {
152
- from { transform: translate(0, 0); }
153
- to { transform: translate(10%, 10%); }
154
- }
155
-
156
- @keyframes starsMedium {
157
- from { transform: translate(0, 0); }
158
- to { transform: translate(20%, 15%); }
159
- }
160
-
161
- @keyframes starsFast {
162
- from { transform: translate(0, 0); }
163
- to { transform: translate(30%, 25%); }
164
  }
165
 
166
  @keyframes planetFloat {
167
- from { transform: translateY(-20px); }
168
- to { transform: translateY(20px); }
169
  }
170
 
171
  /* ============================= */
172
- /* 🧭 دعم العربية RTL */
173
  /* ============================= */
174
  .gradio-container {
175
  direction: rtl;
@@ -179,23 +145,23 @@ css = """
179
  background: transparent !important;
180
  }
181
 
182
- /* محاذاة الأعمدة */
183
- .gradio-container .row {
184
- flex-direction: row-reverse;
185
  }
186
 
187
  /* ============================= */
188
- /* 🎨 عناصر الواجهة */
189
  /* ============================= */
190
- h1, h2, h3, label {
191
- color: #7a8450;
192
  text-align: right;
193
  }
194
 
195
  textarea, input {
196
- background-color: #101412 !important;
197
- color: #d6ddb8 !important;
198
- border: 1px solid #4f5632 !important;
199
  text-align: right;
200
  }
201
 
@@ -204,19 +170,7 @@ button {
204
  color: black !important;
205
  border-radius: 10px !important;
206
  font-weight: bold;
207
- }
208
-
209
- button:hover {
210
- background-color: #6b8e23 !important;
211
- }
212
-
213
- .markdown {
214
- color: #d6ddb8;
215
- font-family: monospace;
216
- line-height: 1.9;
217
- text-align: right;
218
- }
219
- """
220
 
221
 
222
  # ==============================
 
79
  # ==============================
80
  css = """
81
  /* ============================= */
82
+ /* 🌌 خلفية الفضاء */
83
  /* ============================= */
84
  #space-background {
85
  position: fixed;
86
  inset: 0;
87
  z-index: 0;
88
  overflow: hidden;
89
+ background: radial-gradient(circle at bottom, #0b0f0c 0%, #020302 70%);
90
  pointer-events: none;
91
  }
92
 
93
  /* ============================= */
94
+ /* ✨ نجوم كثيفة متحركة */
95
  /* ============================= */
96
  .stars {
97
  position: absolute;
98
+ inset: -100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  background-image:
100
+ radial-gradient(1px 1px at 10% 20%, #cfd6b5, transparent),
101
+ radial-gradient(1px 1px at 30% 80%, #b7c28b, transparent),
102
+ radial-gradient(1px 1px at 50% 40%, #d6ddb8, transparent),
103
+ radial-gradient(1px 1px at 70% 60%, #aab37a, transparent),
104
+ radial-gradient(1px 1px at 90% 10%, #e5ecd2, transparent),
105
+ radial-gradient(2px 2px at 20% 50%, #f0f4dc, transparent),
106
+ radial-gradient(1px 1px at 60% 90%, #cfd6b5, transparent);
107
+ background-size: 150px 150px;
108
+ animation: starMove 120s linear infinite;
109
+ opacity: 0.9;
110
+ }
111
+
112
+ @keyframes starMove {
113
+ from { transform: translate(0, 0); }
114
+ to { transform: translate(25%, 25%); }
115
  }
116
 
117
  /* ============================= */
 
119
  /* ============================= */
120
  .planet {
121
  position: absolute;
122
+ top: 20%;
123
+ right: -160px;
124
+ width: 380px;
125
+ height: 380px;
126
+ background: radial-gradient(circle at 30% 30%, #7a8450, #15190f 70%);
127
  border-radius: 50%;
128
+ opacity: 0.45;
129
+ animation: planetFloat 80s ease-in-out infinite alternate;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  }
131
 
132
  @keyframes planetFloat {
133
+ from { transform: translateY(-30px); }
134
+ to { transform: translateY(30px); }
135
  }
136
 
137
  /* ============================= */
138
+ /* 🧭 RTL صحيح (بدون قلب) */
139
  /* ============================= */
140
  .gradio-container {
141
  direction: rtl;
 
145
  background: transparent !important;
146
  }
147
 
148
+ /* لا نقلب الـ flex */
149
+ .row {
150
+ flex-direction: row;
151
  }
152
 
153
  /* ============================= */
154
+ /* 🎨 النصوص */
155
  /* ============================= */
156
+ h1, h2, h3, label, .markdown {
157
+ color: #cfd6b5;
158
  text-align: right;
159
  }
160
 
161
  textarea, input {
162
+ background-color: #0f130f !important;
163
+ color: #e5ecd2 !important;
164
+ border: 1px solid #556b2f !important;
165
  text-align: right;
166
  }
167
 
 
170
  color: black !important;
171
  border-radius: 10px !important;
172
  font-weight: bold;
173
+ }"""
 
 
 
 
 
 
 
 
 
 
 
 
174
 
175
 
176
  # ==============================