Repository navigation
Expand file tree
/
Copy pathnews.css
More file actions
123 lines (104 loc) · 1.85 KB
/
Copy pathnews.css
File metadata and controls
123 lines (104 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background-color: #f4f7fa;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container {
width: 100%;
max-width: 800px;
padding: 20px;
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
header {
text-align: center;
margin-bottom: 20px;
}
h1 {
font-size: 2.5rem;
color: #333;
}
p {
font-size: 1.1rem;
color: #555;
}
.search-container {
display: flex;
justify-content: center;
margin-bottom: 30px;
}
#search-query {
width: 70%;
padding: 10px;
font-size: 1.1rem;
border: 2px solid #ddd;
border-radius: 5px;
margin-right: 10px;
}
button {
padding: 10px 15px;
background-color: #007bff;
border: none;
color: white;
border-radius: 5px;
cursor: pointer;
font-size: 1.1rem;
}
button:hover {
background-color: #0056b3;
}
.news-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
}
.news-card {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s ease-in-out;
}
.news-card:hover {
transform: translateY(-5px);
}
.news-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.news-card .content {
padding: 15px;
}
.news-card h2 {
font-size: 1.4rem;
color: #333;
margin-bottom: 10px;
}
.news-card p {
color: #777;
font-size: 1rem;
}
.news-card a {
display: block;
margin-top: 10px;
color: #007bff;
text-decoration: none;
}
.news-card a:hover {
text-decoration: underline;
}
@media (max-width: 600px) {
#search-query {
width: 100%;
}
}