-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblog.css
More file actions
195 lines (158 loc) · 3.13 KB
/
Copy pathblog.css
File metadata and controls
195 lines (158 loc) · 3.13 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
:root {
--secondary: #a29bfe;
--accent: #fd79a8;
--dark: #2d3436;
--light: #f5f6fa;
--text: #2d3436;
--text-light: #636e72;
}
/* Hero Section */
.blog-hero {
padding: 6rem 0;
text-align: center;
background: linear-gradient(rgba(108, 92, 231, 0.1), rgba(108, 92, 231, 0.05));
}
.blog-hero h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
color: var(--primary);
}
.blog-hero p {
font-size: 1.2rem;
max-width: 700px;
margin: 0 auto;
color: var(--text);
}
/* blog post section */
.blog-posts {
padding: 3rem 3rem;
}
.blog-container {
display: flex;
height: 18rem;
background: rgb(232, 245, 255);
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
transition: transform 0.3s ease, box-shadow 0.3s ease;
margin-bottom: 2rem;
}
.blog-container:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.blog-image-container {
width: 40%;
overflow: hidden;
border-top-left-radius: 8px;
border-bottom-left-radius: 10px;
}
.blog-image {
width: 100%;
height: 100%;
object-fit: cover;
}
.blog-content {
flex: 1;
padding: 2rem 3rem;
}
.blog-content h1 {
font-size: 1.8rem;
margin-bottom: 1rem;
color: var(--primary);
}
.blog-content h1 a {
text-decoration: none;
color: var(--primary);
}
.blog-content h1 a:hover {
text-decoration: underline;
}
.blog-content p a {
text-decoration: none;
color: var(--primary);
}
.blog-content p a:hover {
text-decoration: underline;
}
.blog-content p {
color: var(--text-light);
}
.title {
display: flex;
gap: 3rem;
padding: 10px 0;
}
.category {
background-color: rgb(241, 150, 150);
padding: 2px;
border-radius: 3px;
text-align: center;
}
/* newletter */
.newsletter-form {
display: flex;
flex-direction: column;
gap: 1rem;
}
.newsletter-form input {
padding: 0.8rem 1rem;
border: 1px solid #ddd;
border-radius: 5px;
font-family: 'Poppins', sans-serif;
}
.newsletter-form button {
background-color: var(--primary);
color: white;
border: none;
padding: 0.8rem;
border-radius: 5px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.newsletter-form button:hover {
background-color: var(--secondary);
}
/* Responsive Styles */
@media (max-width: 992px) {
.blog-container {
flex-direction: column;
height: auto;
}
.blog-image-container {
width: 100%;
height: 100%;
overflow: hidden;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
}
.blog-image {
width: 100%;
height: 100%;
object-fit: cover;
}
.title {
font-size: 10px;
gap: 2rem;
padding-top: 20px;
}
}
@media (max-width: 768px) {
.blog-hero {
padding: 6rem 0 2rem;
}
.blog-hero h1 {
font-size: 2rem;
}
}
@media (max-width: 480px) {
.blog-hero h1 {
font-size: 1.8rem;
}
.blog-hero p {
font-size: 1rem;
}
.blog-content h1 {
font-size: 1.5rem;
}
}