Skip to content

Commit 7704008

Browse files
committed
Fix index.html and styles.css
1 parent e13fdf0 commit 7704008

File tree

2 files changed

+241
-32
lines changed

2 files changed

+241
-32
lines changed

assets/css/styles.css

Lines changed: 186 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,17 @@ header {
2121
background: white;
2222
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
2323
position: fixed;
24-
width: 100%;
25-
max-width: 1100px;
24+
width: 90%;
25+
max-width: 1000px; /* Matched to other sections */
2626
top: 0;
2727
left: 50%;
2828
transform: translateX(-50%);
2929
z-index: 1000;
30+
border-radius: 0 0 15px 15px;
3031
}
3132

3233
.logo {
33-
height: 70px;
34+
height: 50px;
3435
}
3536

3637
nav {
@@ -51,6 +52,25 @@ nav a:hover {
5152
transform: translateY(-2px);
5253
}
5354

55+
/* Mobile nav adjustments */
56+
@media (max-width: 768px) {
57+
header {
58+
flex-direction: column;
59+
padding: 10px;
60+
}
61+
62+
nav {
63+
margin-top: 15px;
64+
flex-wrap: wrap;
65+
justify-content: center;
66+
}
67+
68+
nav a {
69+
padding: 8px 12px;
70+
font-size: 0.9rem;
71+
}
72+
}
73+
5474
/* Hero Section */
5575
.hero {
5676
text-align: center;
@@ -67,20 +87,29 @@ nav a:hover {
6787
max-width: 1000px;
6888
margin-top: 140px;
6989
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
90+
box-sizing: border-box; /* Ensures padding doesn't affect width */
7091
}
7192

7293
.hero h1 {
7394
font-size: 2.5rem;
7495
font-weight: 800;
75-
margin-bottom: 10px;
96+
margin-bottom: 20px;
7697
max-width: 850px;
7798
}
7899

79100
.hero p {
80-
font-size: 1rem;
81-
margin-bottom: 20px;
101+
font-size: 1.1rem;
102+
margin-bottom: 30px;
82103
opacity: 0.9;
83104
max-width: 850px;
105+
line-height: 1.6;
106+
}
107+
108+
.button-group {
109+
display: flex;
110+
gap: 15px;
111+
flex-wrap: wrap;
112+
justify-content: center;
84113
}
85114

86115
button {
@@ -91,7 +120,6 @@ button {
91120
border-radius: 8px;
92121
cursor: pointer;
93122
transition: 0.3s;
94-
margin: 10px;
95123
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
96124
}
97125

@@ -107,39 +135,85 @@ button:last-of-type {
107135

108136
button:hover {
109137
opacity: 0.85;
138+
transform: translateY(-2px);
139+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
110140
}
111141

112142
/* Sections Alignment Fix */
113143
section {
114144
padding: 40px 5%;
115145
max-width: 1000px;
116-
margin: auto;
146+
margin: 20px auto;
117147
display: flex;
118148
flex-direction: column;
119149
align-items: center;
120150
text-align: center;
151+
width: 90%;
152+
box-sizing: border-box; /* Ensures consistent width calculations */
121153
}
122154

123155
.info, .how-it-works, .faq, .blog {
124156
background: white;
125157
padding: 30px;
126158
border-radius: 15px;
127-
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
128-
margin-bottom: 30px;
159+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
129160
transition: transform 0.2s ease-in-out;
130-
width: 90%;
131-
max-width: 900px;
161+
width: 100%;
162+
max-width: 1000px; /* Match max-width with other sections */
132163
border-left: 6px solid #6b00b6;
133164
display: flex;
134165
flex-direction: column;
135166
align-items: center;
167+
box-sizing: border-box; /* Ensures consistent width calculations */
136168
}
137169

138170
.info:hover, .how-it-works:hover, .faq:hover, .blog:hover {
139171
transform: translateY(-3px);
172+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
173+
}
174+
175+
/* Feature list styling */
176+
.feature-list {
177+
list-style: none;
178+
padding: 0;
179+
width: 100%;
180+
max-width: 600px;
181+
margin: 20px auto;
182+
text-align: left;
183+
}
184+
185+
.feature-list li {
186+
display: flex;
187+
align-items: center;
188+
margin-bottom: 15px;
189+
font-size: 1.05rem;
190+
}
191+
192+
.feature-list li i {
193+
margin-right: 15px;
194+
color: #6b00b6;
195+
stroke-width: 2.5;
196+
}
197+
198+
/* Architecture diagram */
199+
.diagram-container {
200+
width: 100%;
201+
max-width: 600px;
202+
margin: 20px 0;
203+
overflow: hidden;
204+
}
205+
206+
.architecture-diagram {
207+
width: 100%;
208+
height: auto;
209+
border-radius: 10px;
140210
}
141211

142212
/* FAQ */
213+
.faq {
214+
align-items: stretch;
215+
}
216+
143217
details {
144218
background: #f9f9f9;
145219
padding: 15px;
@@ -148,36 +222,127 @@ details {
148222
cursor: pointer;
149223
transition: 0.3s;
150224
border-left: 4px solid #6b00b6;
151-
font-weight: 600;
152225
width: 100%;
153-
max-width: 800px;
226+
text-align: left;
154227
}
155228

156229
details:hover {
157230
background: #f1f1f1;
158231
}
159232

160233
details summary {
161-
font-weight: bold;
234+
font-weight: 600;
162235
font-size: 1rem;
163236
cursor: pointer;
237+
display: flex;
238+
align-items: center;
239+
}
240+
241+
details summary i {
242+
margin-right: 12px;
243+
color: #6b00b6;
164244
}
165245

166246
details p {
167247
margin-top: 10px;
168248
font-size: 1rem;
169-
font-weight: normal;
249+
padding-left: 26px;
250+
line-height: 1.6;
251+
}
252+
253+
/* Blog section improvements */
254+
.blog-preview {
255+
display: flex;
256+
flex-wrap: wrap;
257+
justify-content: center;
258+
gap: 20px;
259+
width: 100%;
260+
}
261+
262+
.blog-preview article {
263+
background: #f9f9f9;
264+
border-radius: 12px;
265+
overflow: hidden;
266+
width: 100%;
267+
max-width: 350px;
268+
transition: 0.3s;
269+
border: 1px solid #eee;
270+
}
271+
272+
.blog-preview article:hover {
273+
transform: translateY(-5px);
274+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
275+
}
276+
277+
.blog-thumbnail {
278+
height: 180px;
279+
background: linear-gradient(45deg, #6b00b6, #1e90ff);
280+
display: flex;
281+
align-items: center;
282+
justify-content: center;
283+
}
284+
285+
.blog-icon {
286+
width: 80px;
287+
height: 80px;
288+
color: white;
289+
stroke-width: 1.5;
290+
}
291+
292+
.blog-preview h3 {
293+
padding: 0 20px;
294+
margin: 20px 0 10px;
295+
font-size: 1.2rem;
296+
}
297+
298+
.blog-preview p {
299+
padding: 0 20px;
300+
margin: 10px 0;
301+
opacity: 0.8;
302+
}
303+
304+
.read-more {
305+
display: inline-block;
306+
margin: 15px 20px 20px;
307+
color: #6b00b6;
308+
font-weight: 600;
309+
text-decoration: none;
310+
transition: 0.3s;
311+
}
312+
313+
.read-more:hover {
314+
color: #1e90ff;
315+
transform: translateX(3px);
170316
}
171317

172318
/* Footer */
173319
footer {
174320
text-align: center;
175-
padding: 20px;
176-
background: #111;
321+
padding: 30px 20px;
322+
background: linear-gradient(135deg, #6b00b6, #1e90ff); /* Match hero section gradient */
177323
color: white;
178324
font-size: 0.9rem;
179-
margin-top: auto;
180-
border-radius: 0 0 10px 10px;
181-
width: 100%;
325+
margin-top: 40px;
326+
border-radius: 15px 15px 0 0;
327+
width: 90%; /* Match other sections */
182328
max-width: 1000px;
329+
box-sizing: border-box; /* Ensures padding doesn't affect width */
330+
}
331+
332+
.footer-nav {
333+
margin-top: 15px;
334+
justify-content: center;
335+
}
336+
337+
.footer-nav a {
338+
color: white;
339+
margin: 0 10px;
340+
text-decoration: none;
341+
transition: 0.3s;
342+
font-weight: 600;
343+
}
344+
345+
.footer-nav a:hover {
346+
color: white;
347+
transform: translateY(0);
183348
}

0 commit comments

Comments
 (0)