Spaces:
Sleeping
Sleeping
Update News_app.py
Browse files- News_app.py +11 -10
News_app.py
CHANGED
|
@@ -90,7 +90,6 @@ st.markdown(
|
|
| 90 |
background-color: #f8f9fa;
|
| 91 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 92 |
}
|
| 93 |
-
|
| 94 |
.title {
|
| 95 |
color: #ffffff;
|
| 96 |
font-size: 2.4em;
|
|
@@ -101,7 +100,6 @@ st.markdown(
|
|
| 101 |
text-shadow: 2px 2px 8px rgba(0, 0, 0, 1.0);
|
| 102 |
padding: 10px;
|
| 103 |
}
|
| 104 |
-
|
| 105 |
.subtitle {
|
| 106 |
color: #ffff;
|
| 107 |
font-size: 1.3em;
|
|
@@ -111,7 +109,6 @@ st.markdown(
|
|
| 111 |
text-shadow: 1px 1px 6px rgba(0, 0, 0, 1.0);
|
| 112 |
padding: 5px;
|
| 113 |
}
|
| 114 |
-
|
| 115 |
.classify-button {
|
| 116 |
background-color: #3498db;
|
| 117 |
color: white;
|
|
@@ -127,25 +124,29 @@ st.markdown(
|
|
| 127 |
.classify-button:hover {
|
| 128 |
background-color: #2980b9;
|
| 129 |
}
|
| 130 |
-
|
| 131 |
.result-box {
|
| 132 |
-
background: linear-gradient(135deg,
|
| 133 |
padding: 20px;
|
| 134 |
border-radius: 10px;
|
| 135 |
text-align: center;
|
| 136 |
margin-top: 30px;
|
| 137 |
position: relative;
|
| 138 |
overflow: hidden;
|
| 139 |
-
border: 2px solid
|
|
|
|
|
|
|
|
|
|
| 140 |
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
| 141 |
}
|
| 142 |
|
| 143 |
/* Hover Effect */
|
| 144 |
.result-box:hover {
|
| 145 |
transform: scale(1.05);
|
| 146 |
-
box-shadow: 0px
|
|
|
|
| 147 |
}
|
| 148 |
-
|
|
|
|
| 149 |
/* Light Reflection for Glossy Look */
|
| 150 |
.result-box::before {
|
| 151 |
content: "";
|
|
@@ -159,12 +160,13 @@ st.markdown(
|
|
| 159 |
transform: rotate(-25deg);
|
| 160 |
animation: shine 3s infinite linear;
|
| 161 |
}
|
| 162 |
-
|
| 163 |
/* Shimmer Animation */
|
| 164 |
@keyframes shine {
|
| 165 |
0% { top: -150%; left: -150%; }
|
| 166 |
100% { top: 150%; left: 150%; }
|
| 167 |
}
|
|
|
|
| 168 |
.result-text {
|
| 169 |
font-size: 1.8em;
|
| 170 |
color: #ffffff; /* Darker color for better visibility */
|
|
@@ -172,7 +174,6 @@ st.markdown(
|
|
| 172 |
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
|
| 173 |
animation: fadeIn 0.8s ease-in-out;
|
| 174 |
}
|
| 175 |
-
|
| 176 |
.warning-box {
|
| 177 |
background: linear-gradient(135deg, rgba(255, 77, 77, 0.8), rgba(255, 165, 0, 0.7)); /* Smooth red-orange gradient */
|
| 178 |
padding: 18px;
|
|
|
|
| 90 |
background-color: #f8f9fa;
|
| 91 |
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 92 |
}
|
|
|
|
| 93 |
.title {
|
| 94 |
color: #ffffff;
|
| 95 |
font-size: 2.4em;
|
|
|
|
| 100 |
text-shadow: 2px 2px 8px rgba(0, 0, 0, 1.0);
|
| 101 |
padding: 10px;
|
| 102 |
}
|
|
|
|
| 103 |
.subtitle {
|
| 104 |
color: #ffff;
|
| 105 |
font-size: 1.3em;
|
|
|
|
| 109 |
text-shadow: 1px 1px 6px rgba(0, 0, 0, 1.0);
|
| 110 |
padding: 5px;
|
| 111 |
}
|
|
|
|
| 112 |
.classify-button {
|
| 113 |
background-color: #3498db;
|
| 114 |
color: white;
|
|
|
|
| 124 |
.classify-button:hover {
|
| 125 |
background-color: #2980b9;
|
| 126 |
}
|
|
|
|
| 127 |
.result-box {
|
| 128 |
+
background: linear-gradient(135deg, #6284FF 30%, #FF0000 70%); /* Blue to Red */
|
| 129 |
padding: 20px;
|
| 130 |
border-radius: 10px;
|
| 131 |
text-align: center;
|
| 132 |
margin-top: 30px;
|
| 133 |
position: relative;
|
| 134 |
overflow: hidden;
|
| 135 |
+
border: 2px solid transparent;
|
| 136 |
+
background-clip: padding-box, border-box;
|
| 137 |
+
border-image: linear-gradient(135deg, #6284FF 30%, #FF0000 70%);
|
| 138 |
+
border-image-slice: 0;
|
| 139 |
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
|
| 140 |
}
|
| 141 |
|
| 142 |
/* Hover Effect */
|
| 143 |
.result-box:hover {
|
| 144 |
transform: scale(1.05);
|
| 145 |
+
box-shadow: 0px 10px 30px rgba(98, 132, 255, 0.8),
|
| 146 |
+
0px 10px 30px rgba(255, 0, 0, 0.8);
|
| 147 |
}
|
| 148 |
+
|
| 149 |
+
|
| 150 |
/* Light Reflection for Glossy Look */
|
| 151 |
.result-box::before {
|
| 152 |
content: "";
|
|
|
|
| 160 |
transform: rotate(-25deg);
|
| 161 |
animation: shine 3s infinite linear;
|
| 162 |
}
|
| 163 |
+
|
| 164 |
/* Shimmer Animation */
|
| 165 |
@keyframes shine {
|
| 166 |
0% { top: -150%; left: -150%; }
|
| 167 |
100% { top: 150%; left: 150%; }
|
| 168 |
}
|
| 169 |
+
|
| 170 |
.result-text {
|
| 171 |
font-size: 1.8em;
|
| 172 |
color: #ffffff; /* Darker color for better visibility */
|
|
|
|
| 174 |
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
|
| 175 |
animation: fadeIn 0.8s ease-in-out;
|
| 176 |
}
|
|
|
|
| 177 |
.warning-box {
|
| 178 |
background: linear-gradient(135deg, rgba(255, 77, 77, 0.8), rgba(255, 165, 0, 0.7)); /* Smooth red-orange gradient */
|
| 179 |
padding: 18px;
|