Skip to content

Commit 402155b

Browse files
authored
New changes - User Interface III
1 parent 4cc7187 commit 402155b

File tree

1 file changed

+116
-38
lines changed

1 file changed

+116
-38
lines changed

great-idea-website/css/index.css

Lines changed: 116 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,24 @@ p {
104104
}
105105

106106
.top-navigation {
107-
width: 1024px;
108-
margin: 0 auto;
109-
height: 50px;
110-
top: 0;
107+
display: flex;
108+
width: 1000px;
109+
height: 50px;
110+
margin: 0 auto;
111111
}
112+
112113
.nav-bar {
113-
display: inline-block;
114-
vertical-align: middle;
114+
flex-grow: 2;
115+
align-self: center;
115116
}
116117

117-
.top-navigation nav {
118-
width: 74%;
119-
text-align: justify;
120-
}
121-
.top-navigation nav ul li {
122-
display: inline-block;
123-
118+
119+
.top-navigation nav ul {
120+
display: flex;
121+
justify-content: space-evenly;
124122
}
125123

124+
126125
.top-navigation nav ul li a {
127126
text-decoration: none;
128127
color: #636363;
@@ -134,26 +133,25 @@ p {
134133
border-bottom: 2px solid #636363;
135134
}
136135

136+
.top-navigation .top-logo {
137+
width: 220px;
138+
text-align: right;
139+
}
140+
137141
.top-navigation .logo {
138-
width: 15%;
142+
max-width: 190px;
139143
margin-top: 5px;
140-
max-width: 150px;
141144
}
142145

143146
/* end navigation */
144147

145148
/* header */
146149

147150
header {
148-
display: inline-block;
149-
width: 100%;
151+
display: flex;
150152
margin: 70px auto;
151153
}
152154

153-
header .half {
154-
display: inline-block;
155-
margin: 0 auto;
156-
}
157155

158156
.header-title {
159157
width: 450px;
@@ -191,11 +189,12 @@ header .half {
191189
background-size: cover;
192190
background-attachment: fixed;
193191
height: 450px;
194-
padding-top: 150px;
192+
padding-top: 150px;
193+
width: 100%;
195194
}
196195

197196
.about-header h1 {
198-
color: white;
197+
color:black;
199198
font-size: 72px;
200199
width: 600px;
201200
text-align: center;
@@ -205,8 +204,24 @@ header .half {
205204
border-bottom: 2px solid #636363;
206205
}
207206

207+
/* services header */
208+
209+
.header-services img {
210+
width: 100%;
211+
height: auto;
212+
}
213+
214+
.header-services figcaption {
215+
margin-top: 50px;
216+
}
217+
218+
.header-services figcaption h1 {
219+
font-size: 25px;
220+
}
221+
208222
/* end header */
209223

224+
210225
/* main */
211226

212227
main {
@@ -216,11 +231,13 @@ main {
216231
margin-bottom: 20px;
217232
}
218233

234+
.main-top {
235+
display: flex;
236+
}
237+
219238
.box-top {
220-
display: inline-block;
221-
width: 485px;
222-
margin: 0 auto;
223239
padding: 10px;
240+
flex-wrap: wrap;
224241
}
225242

226243

@@ -233,18 +250,15 @@ main {
233250
height: auto;
234251
}
235252

253+
.main-bottom {
254+
display: flex;
255+
}
236256

237257
.box-bottom {
238-
display: inline-block;
239-
width: 325px;
240-
margin: 0 auto;
241258
padding: 10px;
242259
}
243260

244261
.box-bottom-about {
245-
display: inline-block;
246-
width: 325px;
247-
margin: 0 auto;
248262
padding: 10px;
249263
}
250264

@@ -259,12 +273,17 @@ main {
259273
}
260274

261275
/* about page */
276+
.main-top-about {
277+
display: flex;
278+
flex-wrap: wrap;
279+
justify-content: space-around;
280+
}
281+
282+
283+
262284
.box-top-about {
263-
display: inline-block;
264-
width: 485px;
265-
margin: 0 auto;
266-
padding: 0 30px 20px;
267-
margin-bottom: 50px;
285+
margin: 35px 0px;
286+
width: 48%;
268287
box-shadow: 0 2px 2px 0 #D6D6D6;
269288
}
270289

@@ -283,11 +302,17 @@ main {
283302
margin: 0 auto;
284303
}
285304

305+
.box-top-about p {
306+
padding: 20px;
307+
}
308+
286309
.more-content {
287310
margin-top: 50px;
288311
text-align: center;
289312
color: #636363;
290313
font-size: 72px;
314+
flex-grow: 3;
315+
291316
}
292317

293318
.more-content h2 {
@@ -296,8 +321,40 @@ main {
296321

297322
hr {
298323
background: #636363;
324+
299325
}
300326

327+
/* main services */
328+
329+
.main-services {
330+
display: flex;
331+
justify-content: space-evenly;
332+
flex-wrap: wrap;
333+
}
334+
335+
.main-services .box-services {
336+
width: 45%;
337+
margin: 20px;
338+
padding: 20px;
339+
background-color: #f4f3f4;
340+
border: 1px solid black;
341+
}
342+
343+
.main-services .box-services h2 {
344+
font-weight: 700;
345+
font-size: 18px;
346+
}
347+
.main-services .box-services button {
348+
display: block;
349+
margin-top: 20px;
350+
background-color: white;
351+
border: 1px solid black;
352+
border-radius: 3px;
353+
padding: 5px 15px;
354+
cursor: pointer;
355+
}
356+
357+
301358
/* end main */
302359

303360
/* footer */
@@ -317,7 +374,7 @@ footer address a {
317374

318375
footer h6 {
319376
text-align: center;
320-
margin-bottom: 50px;
377+
margin: 50px 0;
321378
}
322379

323380

@@ -332,4 +389,25 @@ footer h6 {
332389
}
333390

334391

392+
.footer-services {
393+
display: flex;
394+
justify-content: space-between;
395+
}
396+
397+
.footer-services section {
398+
padding-right: 30px;
399+
}
400+
401+
.footer-services section ul {
402+
margin-top: 50px;
403+
list-style-type: square;
404+
list-style-position: inside;
405+
}
406+
407+
.footer-services section ul li {
408+
line-height: 2;
409+
}
410+
411+
412+
335413
/* end footer */

0 commit comments

Comments
 (0)