EngReem85 commited on
Commit
4eafa8d
·
verified ·
1 Parent(s): 79ec361

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -33
app.py CHANGED
@@ -78,54 +78,58 @@ def course_correction(correction, state):
78
  # CSS فضائي (نجوم + كواكب متحركة)
79
  # ==============================
80
  css = """
81
- body {
 
 
82
  background: radial-gradient(circle at bottom, #0b0f0c 0%, #050705 70%);
83
- overflow-x: hidden;
84
  }
85
 
86
- /* ===== النجوم ===== */
87
- body::before {
88
  content: "";
89
  position: fixed;
90
- top: 0;
91
- left: 0;
92
- width: 200%;
93
- height: 200%;
94
  background-image:
95
- radial-gradient(1px 1px at 20% 30%, #9fa97a, transparent),
96
- radial-gradient(1px 1px at 40% 70%, #b7c28b, transparent),
97
- radial-gradient(1px 1px at 60% 20%, #8e955f, transparent),
98
- radial-gradient(1px 1px at 80% 80%, #aab37a, transparent);
99
- animation: starsMove 120s linear infinite;
100
- opacity: 0.4;
101
- z-index: -3;
102
- }
103
-
104
- @keyframes starsMove {
105
- from { transform: translate(0, 0); }
106
- to { transform: translate(-25%, -25%); }
107
  }
108
 
109
- /* ===== الكواكب ===== */
110
- body::after {
111
  content: "";
112
  position: fixed;
113
- top: 10%;
114
- right: -150px;
115
- width: 400px;
116
- height: 400px;
117
- background: radial-gradient(circle, #6b8e2355, #2f3b1a00 70%);
118
  border-radius: 50%;
119
- animation: planetOrbit 90s linear infinite;
120
- z-index: -2;
 
121
  }
122
 
123
- @keyframes planetOrbit {
124
- from { transform: rotate(0deg) translateX(0); }
125
- to { transform: rotate(360deg) translateX(0); }
 
126
  }
127
 
128
- /* ===== النصوص والعناصر ===== */
 
 
 
 
 
 
129
  h1, h2, h3, label {
130
  color: #7a8450;
131
  }
@@ -154,6 +158,7 @@ button:hover {
154
  }
155
  """
156
 
 
157
  # ==============================
158
  # واجهة Gradio
159
  # ==============================
 
78
  # CSS فضائي (نجوم + كواكب متحركة)
79
  # ==============================
80
  css = """
81
+ /* ===== الحاوية الرئيسية ===== */
82
+ .gradio-container {
83
+ position: relative;
84
  background: radial-gradient(circle at bottom, #0b0f0c 0%, #050705 70%);
85
+ overflow: hidden;
86
  }
87
 
88
+ /* ===== طبقة النجوم ===== */
89
+ .gradio-container::before {
90
  content: "";
91
  position: fixed;
92
+ inset: 0;
 
 
 
93
  background-image:
94
+ radial-gradient(1px 1px at 10% 20%, #9fa97a, transparent),
95
+ radial-gradient(1px 1px at 30% 80%, #b7c28b, transparent),
96
+ radial-gradient(1px 1px at 50% 40%, #8e955f, transparent),
97
+ radial-gradient(1px 1px at 70% 70%, #aab37a, transparent),
98
+ radial-gradient(1px 1px at 90% 10%, #cfd6b5, transparent);
99
+ background-size: 200% 200%;
100
+ animation: starsFloat 90s linear infinite;
101
+ opacity: 0.6;
102
+ z-index: -2;
 
 
 
103
  }
104
 
105
+ /* ===== كوكب ===== */
106
+ .gradio-container::after {
107
  content: "";
108
  position: fixed;
109
+ top: 15%;
110
+ right: -180px;
111
+ width: 420px;
112
+ height: 420px;
113
+ background: radial-gradient(circle at 30% 30%, #7a8450, #1b1f14 70%);
114
  border-radius: 50%;
115
+ animation: planetDrift 120s linear infinite;
116
+ opacity: 0.4;
117
+ z-index: -1;
118
  }
119
 
120
+ /* ===== حركة النجوم ===== */
121
+ @keyframes starsFloat {
122
+ from { transform: translate(0, 0); }
123
+ to { transform: translate(-15%, -25%); }
124
  }
125
 
126
+ /* ===== حركة الكوكب ===== */
127
+ @keyframes planetDrift {
128
+ from { transform: translateY(0px); }
129
+ to { transform: translateY(60px); }
130
+ }
131
+
132
+ /* ===== عناصر الواجهة ===== */
133
  h1, h2, h3, label {
134
  color: #7a8450;
135
  }
 
158
  }
159
  """
160
 
161
+
162
  # ==============================
163
  # واجهة Gradio
164
  # ==============================