Skip to content

Commit c2f0f27

Browse files
committed
Complete the blog with footer adding
1 parent 2724bf6 commit c2f0f27

File tree

3 files changed

+120
-33
lines changed

3 files changed

+120
-33
lines changed

css/style.css

Lines changed: 60 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -470,25 +470,26 @@ th {
470470
background-size: cover;
471471
height: 45.938rem;
472472
overflow: auto;
473+
display: flex;
474+
justify-content: center;
475+
align-items: center;
473476
}
474477

475478
.intro__content {
476-
margin-top: 7.875rem;
477-
padding: none;
479+
padding: 0;
478480
color: #1d1e21;
479-
text-align: center;
481+
display: flex;
482+
flex-direction: column;
480483
}
481484

482485
.intro__h1, .intro__h3 {
483486
color: white;
484-
text-align: center;
485487
font-weight: 300;
486-
margin-top: 17.5rem;
487488
font-size: 3.125rem;
489+
margin-bottom: 1rem;
488490
}
489491

490492
.intro__h3 {
491-
margin-top: 1.25rem;
492493
font-size: 1.563rem;
493494
}
494495

@@ -572,5 +573,58 @@ button:hover {
572573
background-color: #fff;
573574
overflow: auto;
574575
padding-bottom: 9.375rem;
576+
display: flex;
577+
justify-content: center;
578+
align-items: center;
579+
}
580+
581+
.social__content {
582+
width: 60%;
583+
flex-direction: column;
584+
}
585+
586+
.social__content > hr {
587+
border: 0;
588+
border-top: 1px solid #eaebec;
589+
margin: 1.313rem 0;
590+
}
591+
592+
.social__collections {
593+
display: flex;
594+
justify-content: center;
595+
align-items: center;
596+
flex-direction: column;
597+
}
598+
599+
.social__icons > li {
600+
border-radius: 1.25rem;
601+
width: 2.5rem;
602+
height: 2.5rem;
603+
display: inline-block;
604+
margin: 1.25rem 5px;
605+
border: 1px solid #eaebec;
606+
padding: 0.625rem 0;
575607
text-align: center;
576608
}
609+
610+
.social__icons > li:hover {
611+
cursor: pointer;
612+
}
613+
614+
.social__twitter {
615+
color: #55acee;
616+
}
617+
618+
.social__facebook {
619+
color: #4c66a4;
620+
}
621+
622+
.social__instagram {
623+
color: #3f729b;
624+
}
625+
626+
.social .copy {
627+
font-size: 0.9rem;
628+
font-weight: 300;
629+
color: #838994;
630+
}

css/style.scss

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,21 @@
6868
background-size: cover;
6969
height: 45.938rem;
7070
overflow: auto;
71+
@include flx-center;
7172
&__content {
72-
margin-top: 7.875rem;
73-
padding: none;
73+
padding: 0;
7474
color: #1d1e21;
75-
text-align: center;
75+
display: flex;
76+
flex-direction: column;
7677
}
7778
&__h1{
7879
color: white;
79-
text-align: center;
8080
font-weight: 300;
81-
margin-top: 17.5rem;
8281
font-size: 3.125rem;
82+
margin-bottom: 1rem;
8383
}
8484
&__h3{
8585
@extend .intro__h1;
86-
margin-top: 1.25rem;
8786
font-size: 1.563rem;
8887
}
8988
&__buttons {
@@ -160,23 +159,54 @@ button:hover {
160159
// Footer
161160
.social {
162161
background-color: #fff;
162+
// background-color: blue;
163163
overflow: auto;
164164
padding-bottom: 9.375rem;
165-
text-align: center;
165+
// display: flex;
166+
// width: 65%;
167+
@include flx-center;
166168
&__content{
167-
169+
width: 60%;
170+
flex-direction: column;
171+
// background-color: green;
172+
&>hr{
173+
border: 0;
174+
border-top: 1px solid #eaebec;
175+
margin: 1.313rem 0;
176+
}
177+
}
178+
&__collections{
179+
@include flx-center;
180+
flex-direction: column;
168181
}
169182
&__icons{
170-
183+
&>li{
184+
border-radius: 1.25rem;
185+
width: 2.5rem;
186+
height: 2.5rem;
187+
display: inline-block;
188+
margin: 1.25rem 5px;
189+
border: 1px solid #eaebec;
190+
padding: 0.625rem 0;
191+
text-align: center;
192+
&:hover{
193+
cursor: pointer;
194+
}
195+
}
171196
}
172197
&__twitter{
173-
198+
color: #55acee;
174199
}
175200
&__facebook{
176-
201+
color: #4c66a4;
177202
}
178203
&__instagram{
179-
204+
color: #3f729b;
205+
}
206+
.copy {
207+
font-size: 0.9rem;
208+
font-weight: 300;
209+
color: #838994;
180210
}
181211
}
182212

index.html

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,24 @@ <h3>Pay as You Go</h3>
7070
<footer class="social">
7171
<div class="social__content">
7272
<hr>
73-
<h5>Join us on</h5>
74-
<ul class="social__icons">
75-
<li class="social__twitter">
76-
<i class="fa fa-twitter"></i>
77-
</li>
78-
<li class="social__facebook">
79-
<i class="fa fa-facebook"></i>
80-
</li>
81-
<li class="social__instagram">
82-
<i class="fa fa-instagram"></i>
83-
</li>
84-
</ul>
85-
<span class="copy">
86-
&copy; Karma Mobility, Inc.
87-
</span>
73+
<div class="social__collections">
74+
<h5>Join us on</h5>
75+
<ul class="social__icons">
76+
<li class="social__twitter">
77+
<i class="fa fa-twitter"></i>
78+
</li>
79+
<li class="social__facebook">
80+
<i class="fa fa-facebook"></i>
81+
</li>
82+
<li class="social__instagram">
83+
<i class="fa fa-instagram"></i>
84+
</li>
85+
</ul>
86+
<span class="copy">
87+
&copy; Karma Mobility, Inc.
88+
</span>
89+
</div>
90+
8891
</div>
8992
</footer>
9093
</body>

0 commit comments

Comments
 (0)