Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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%, #
|
| 90 |
pointer-events: none;
|
| 91 |
}
|
| 92 |
|
| 93 |
/* ============================= */
|
| 94 |
-
/* ✨
|
| 95 |
/* ============================= */
|
| 96 |
.stars {
|
| 97 |
position: absolute;
|
| 98 |
-
inset: -
|
| 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(
|
| 127 |
-
radial-gradient(1px 1px at
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
}
|
| 132 |
|
| 133 |
/* ============================= */
|
|
@@ -135,41 +119,23 @@ css = """
|
|
| 135 |
/* ============================= */
|
| 136 |
.planet {
|
| 137 |
position: absolute;
|
| 138 |
-
top:
|
| 139 |
-
right: -
|
| 140 |
-
width:
|
| 141 |
-
height:
|
| 142 |
-
background: radial-gradient(circle at 30% 30%, #7a8450, #
|
| 143 |
border-radius: 50%;
|
| 144 |
-
opacity: 0.
|
| 145 |
-
animation: planetFloat
|
| 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(-
|
| 168 |
-
to { transform: translateY(
|
| 169 |
}
|
| 170 |
|
| 171 |
/* ============================= */
|
| 172 |
-
/* 🧭 د
|
| 173 |
/* ============================= */
|
| 174 |
.gradio-container {
|
| 175 |
direction: rtl;
|
|
@@ -179,23 +145,23 @@ css = """
|
|
| 179 |
background: transparent !important;
|
| 180 |
}
|
| 181 |
|
| 182 |
-
/*
|
| 183 |
-
.
|
| 184 |
-
flex-direction: row
|
| 185 |
}
|
| 186 |
|
| 187 |
/* ============================= */
|
| 188 |
-
/* 🎨
|
| 189 |
/* ============================= */
|
| 190 |
-
h1, h2, h3, label {
|
| 191 |
-
color: #
|
| 192 |
text-align: right;
|
| 193 |
}
|
| 194 |
|
| 195 |
textarea, input {
|
| 196 |
-
background-color: #
|
| 197 |
-
color: #
|
| 198 |
-
border: 1px solid #
|
| 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 |
# ==============================
|