Spaces:
Running
Running
Update static/style.css
Browse files- static/style.css +207 -16
static/style.css
CHANGED
@@ -1,34 +1,225 @@
|
|
|
|
1 |
body {
|
2 |
-
font-family:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
max-width: 1200px;
|
4 |
margin: 0 auto;
|
5 |
-
padding: 20px;
|
|
|
|
|
|
|
6 |
}
|
7 |
|
8 |
.news-card {
|
9 |
-
|
10 |
border-radius: 8px;
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
14 |
}
|
15 |
|
16 |
.news-card h3 {
|
17 |
-
margin
|
18 |
-
|
|
|
19 |
}
|
20 |
|
21 |
-
.
|
22 |
-
margin:
|
|
|
|
|
23 |
}
|
24 |
|
25 |
-
.
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
}
|
29 |
|
|
|
30 |
.chat-box {
|
31 |
-
|
32 |
-
|
33 |
-
padding
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
|
|
1 |
+
/* General Styles */
|
2 |
body {
|
3 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
4 |
+
line-height: 1.6;
|
5 |
+
color: #333;
|
6 |
+
background-color: #f5f7fa;
|
7 |
+
margin: 0;
|
8 |
+
padding: 0;
|
9 |
+
}
|
10 |
+
|
11 |
+
h1, h2, h3 {
|
12 |
+
color: #2c3e50;
|
13 |
+
}
|
14 |
+
|
15 |
+
/* Header Styles */
|
16 |
+
h1 {
|
17 |
+
text-align: center;
|
18 |
+
margin: 30px 0;
|
19 |
+
font-size: 2.5rem;
|
20 |
+
background: linear-gradient(90deg, #3498db, #2ecc71);
|
21 |
+
-webkit-background-clip: text;
|
22 |
+
background-clip: text;
|
23 |
+
color: transparent;
|
24 |
+
padding-bottom: 10px;
|
25 |
+
border-bottom: 2px solid #ecf0f1;
|
26 |
+
}
|
27 |
+
|
28 |
+
/* Search Box */
|
29 |
+
.search-box {
|
30 |
+
max-width: 800px;
|
31 |
+
margin: 0 auto 40px;
|
32 |
+
padding: 20px;
|
33 |
+
background: white;
|
34 |
+
border-radius: 10px;
|
35 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
36 |
+
}
|
37 |
+
|
38 |
+
.search-box form {
|
39 |
+
display: flex;
|
40 |
+
gap: 10px;
|
41 |
+
}
|
42 |
+
|
43 |
+
.search-box input {
|
44 |
+
flex: 1;
|
45 |
+
padding: 12px 15px;
|
46 |
+
border: 1px solid #ddd;
|
47 |
+
border-radius: 5px;
|
48 |
+
font-size: 1rem;
|
49 |
+
transition: all 0.3s;
|
50 |
+
}
|
51 |
+
|
52 |
+
.search-box input:focus {
|
53 |
+
outline: none;
|
54 |
+
border-color: #3498db;
|
55 |
+
box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
|
56 |
+
}
|
57 |
+
|
58 |
+
.search-box button {
|
59 |
+
padding: 12px 25px;
|
60 |
+
background: #3498db;
|
61 |
+
color: white;
|
62 |
+
border: none;
|
63 |
+
border-radius: 5px;
|
64 |
+
cursor: pointer;
|
65 |
+
font-size: 1rem;
|
66 |
+
transition: background 0.3s;
|
67 |
+
}
|
68 |
+
|
69 |
+
.search-box button:hover {
|
70 |
+
background: #2980b9;
|
71 |
+
}
|
72 |
+
|
73 |
+
/* News Container */
|
74 |
+
.news-container {
|
75 |
max-width: 1200px;
|
76 |
margin: 0 auto;
|
77 |
+
padding: 0 20px;
|
78 |
+
display: grid;
|
79 |
+
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
80 |
+
gap: 25px;
|
81 |
}
|
82 |
|
83 |
.news-card {
|
84 |
+
background: white;
|
85 |
border-radius: 8px;
|
86 |
+
overflow: hidden;
|
87 |
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
|
88 |
+
transition: transform 0.3s, box-shadow 0.3s;
|
89 |
+
}
|
90 |
+
|
91 |
+
.news-card:hover {
|
92 |
+
transform: translateY(-5px);
|
93 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
94 |
}
|
95 |
|
96 |
.news-card h3 {
|
97 |
+
margin: 0;
|
98 |
+
padding: 20px 20px 10px;
|
99 |
+
font-size: 1.3rem;
|
100 |
}
|
101 |
|
102 |
+
.news-card p {
|
103 |
+
margin: 0;
|
104 |
+
padding: 0 20px 10px;
|
105 |
+
color: #7f8c8d;
|
106 |
}
|
107 |
|
108 |
+
.news-card p strong {
|
109 |
+
color: #3498db;
|
110 |
+
}
|
111 |
+
|
112 |
+
.news-card a {
|
113 |
+
display: inline-block;
|
114 |
+
margin: 15px 20px 20px;
|
115 |
+
padding: 8px 15px;
|
116 |
+
background: #ecf0f1;
|
117 |
+
color: #3498db;
|
118 |
+
text-decoration: none;
|
119 |
+
border-radius: 5px;
|
120 |
+
font-weight: 500;
|
121 |
+
transition: all 0.3s;
|
122 |
+
}
|
123 |
+
|
124 |
+
.news-card a:hover {
|
125 |
+
background: #3498db;
|
126 |
+
color: white;
|
127 |
}
|
128 |
|
129 |
+
/* Chat Box */
|
130 |
.chat-box {
|
131 |
+
max-width: 800px;
|
132 |
+
margin: 50px auto;
|
133 |
+
padding: 25px;
|
134 |
+
background: white;
|
135 |
+
border-radius: 10px;
|
136 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
137 |
+
}
|
138 |
+
|
139 |
+
.chat-box h2 {
|
140 |
+
margin-top: 0;
|
141 |
+
color: #2ecc71;
|
142 |
+
font-size: 1.8rem;
|
143 |
+
padding-bottom: 15px;
|
144 |
+
border-bottom: 1px solid #ecf0f1;
|
145 |
+
}
|
146 |
+
|
147 |
+
#chat-container {
|
148 |
+
height: 300px;
|
149 |
+
overflow-y: auto;
|
150 |
+
margin-bottom: 20px;
|
151 |
+
padding: 15px;
|
152 |
+
background: #f9f9f9;
|
153 |
+
border-radius: 5px;
|
154 |
+
border: 1px solid #eee;
|
155 |
+
}
|
156 |
+
|
157 |
+
#chat-container p {
|
158 |
+
margin: 0 0 10px 0;
|
159 |
+
padding: 8px 12px;
|
160 |
+
border-radius: 5px;
|
161 |
+
}
|
162 |
+
|
163 |
+
#chat-container p:nth-child(odd) {
|
164 |
+
background: #e3f2fd;
|
165 |
+
margin-right: 20%;
|
166 |
+
}
|
167 |
+
|
168 |
+
#chat-container p:nth-child(even) {
|
169 |
+
background: #f1f8e9;
|
170 |
+
margin-left: 20%;
|
171 |
+
}
|
172 |
+
|
173 |
+
#user-input {
|
174 |
+
width: calc(100% - 110px);
|
175 |
+
padding: 12px 15px;
|
176 |
+
border: 1px solid #ddd;
|
177 |
+
border-radius: 5px;
|
178 |
+
font-size: 1rem;
|
179 |
+
}
|
180 |
+
|
181 |
+
.chat-box button {
|
182 |
+
width: 90px;
|
183 |
+
padding: 12px 0;
|
184 |
+
background: #2ecc71;
|
185 |
+
color: white;
|
186 |
+
border: none;
|
187 |
+
border-radius: 5px;
|
188 |
+
cursor: pointer;
|
189 |
+
font-size: 1rem;
|
190 |
+
transition: background 0.3s;
|
191 |
+
margin-left: 10px;
|
192 |
+
}
|
193 |
+
|
194 |
+
.chat-box button:hover {
|
195 |
+
background: #27ae60;
|
196 |
+
}
|
197 |
+
|
198 |
+
/* Responsive Design */
|
199 |
+
@media (max-width: 768px) {
|
200 |
+
.news-container {
|
201 |
+
grid-template-columns: 1fr;
|
202 |
+
}
|
203 |
+
|
204 |
+
.search-box form {
|
205 |
+
flex-direction: column;
|
206 |
+
}
|
207 |
+
|
208 |
+
.search-box button {
|
209 |
+
width: 100%;
|
210 |
+
}
|
211 |
+
|
212 |
+
.chat-box {
|
213 |
+
margin: 30px 20px;
|
214 |
+
}
|
215 |
+
|
216 |
+
#user-input {
|
217 |
+
width: calc(100% - 20px);
|
218 |
+
margin-bottom: 10px;
|
219 |
+
}
|
220 |
+
|
221 |
+
.chat-box button {
|
222 |
+
width: 100%;
|
223 |
+
margin-left: 0;
|
224 |
+
}
|
225 |
}
|