Skip to content

Commit c38ff2c

Browse files
committed
responsive
1 parent f882f6b commit c38ff2c

File tree

1 file changed

+79
-3
lines changed

1 file changed

+79
-3
lines changed

index.html

Lines changed: 79 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,17 @@
1818
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
1919
color: #222;
2020
line-height: 1.5;
21-
padding: 80px 40px 40px 40px;
22-
/* Increased top padding from 40px to 80px */
21+
padding: 80px 20px 40px 20px;
2322
max-width: 1200px;
2423
margin: 0 auto;
2524
}
2625

2726
/* Layout */
2827
.container {
2928
display: flex;
29+
flex-direction: row;
3030
gap: 80px;
3131
margin-top: 40px;
32-
/* Added additional top margin to the container */
3332
}
3433

3534
/* Sidebar */
@@ -177,6 +176,83 @@
177176
.arrow-icon {
178177
font-size: 20px;
179178
}
179+
180+
/* Responsive styles */
181+
@media (max-width: 768px) {
182+
body {
183+
padding: 60px 15px 30px 15px;
184+
}
185+
186+
.container {
187+
flex-direction: column;
188+
gap: 40px;
189+
}
190+
191+
.sidebar {
192+
width: 100%;
193+
text-align: center;
194+
}
195+
196+
.logo {
197+
margin-bottom: 20px;
198+
}
199+
200+
.logo img {
201+
max-width: 120px;
202+
}
203+
204+
.nav {
205+
flex-direction: row;
206+
justify-content: center;
207+
flex-wrap: wrap;
208+
}
209+
210+
.hero-title {
211+
font-size: 36px;
212+
}
213+
214+
.section-title {
215+
font-size: 28px;
216+
}
217+
218+
.section-text {
219+
font-size: 16px;
220+
}
221+
222+
.divider {
223+
margin: 40px 0;
224+
}
225+
}
226+
227+
@media (max-width: 480px) {
228+
body {
229+
padding: 40px 10px 20px 10px;
230+
}
231+
232+
.container {
233+
gap: 30px;
234+
margin-top: 20px;
235+
}
236+
237+
.hero-title {
238+
font-size: 28px;
239+
}
240+
241+
.section-title {
242+
font-size: 24px;
243+
}
244+
245+
img {
246+
width: 100% !important;
247+
height: auto !important;
248+
}
249+
}
250+
251+
/* Make all images responsive by default */
252+
img {
253+
max-width: 100%;
254+
height: auto;
255+
}
180256
</style>
181257
</head>
182258

0 commit comments

Comments
 (0)