Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
125 lines (123 loc) · 2.04 KB
/
Copy pathstyles.css
File metadata and controls
125 lines (123 loc) · 2.04 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
124
125
{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
line-height: 1.6;
background-color: #f4f4f4;
color: #333;
}
.header {
background-color: #000;
color: #fff;
padding: 1rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 2rem;
font-weight: bold;
}
.nav ul {
display: flex;
list-style: none;
}
.nav ul li {
margin: 0 10px;
}
.nav ul li a {
color: #fff;
text-decoration: none;
}
.nav ul li a:hover {
text-decoration: underline;
}
.featured-news {
padding: 2rem;
text-align: center;
background-color: #fff;
}
.featured-news img {
width: 100%;
max-height: 300px;
object-fit: cover;
border-radius: 10px;
}
.featured-news h1 {
margin-top: 1rem;
font-size: 2rem;
color: #333;
}
.featured-news p {
margin-top: 1rem;
color: #555;
}
.read-more-btn {
margin-top: 1rem;
display: inline-block;
background-color: #ff5733;
color: #fff;
padding: 0.5rem 1rem;
border-radius: 5px;
text-decoration: none;
}
.read-more-btn:hover {
background-color: #cc4629;
}
.news-section {
background-color: #0a0a23;
color: #fff;
padding: 2rem;
}
.news-section h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
}
.news-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
.news-item h3 {
font-size: 1.2rem;
margin-bottom: 0.5rem;
}
.news-item p {
color: #bbb;
}
.popular-section {
padding: 2rem;
background-color: #fff;
}
.popular-section h2 {
color: #ff5733;
font-size: 2rem;
}
.popular-section h3 {
font-size: 1.5rem;
margin-top: 1rem;
}
.popular-section p {
margin-top: 0.5rem;
color: #555;
}
Responsive Design {
@media (max-width: 768px)
}
.news-list {
flex-direction: column;
}
.featured-news {
background-image: url('logo/.png');
background-size: cover;
background-position: center;
}
footer {
text-align: center;
padding: 1rem;
background: #000;
color: #fff;
}