Skip to content

Commit 356c295

Browse files
committed
added footer
1 parent 95b3c8d commit 356c295

File tree

2 files changed

+82
-10
lines changed

2 files changed

+82
-10
lines changed

index.html

+9-1
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,15 @@ <h2>Wonder Woman</h2>
372372
</section>
373373

374374
<!--******* Footer ******* -->
375-
<footer id="footer">Footer</footer>
375+
<footer id="footer">
376+
<p>All Rights Reserved</p>
377+
<div class="footer__social">
378+
<a href="#" class="footer__social--links"><i class="fab fa-facebook"></i></a>
379+
<a href="#" class="footer__social--links"><i class="fab fa-twitter"></i></a>
380+
<a href="#" class="footer__social--links"><i class="fab fa-linkedin-in"></i></a>
381+
<a href="#" class="footer__social--links"><i class="fab fa-instagram"></i></a>
382+
</div>
383+
</footer>
376384
<script src="app.js"></script>
377385
</body>
378386
</html>

style.css

+73-9
Original file line numberDiff line numberDiff line change
@@ -763,27 +763,24 @@ div.gallery-carousel__img-container {
763763
display: none;
764764
}
765765

766-
767766
section#features-content > div:first-child {
768-
background: linear-gradient(var(--color-secondary-m-light), var(--color-secondary-m-light)), url('img/Features/cocktail.jpg');
769-
border-right: solid .2rem var(--color-secondary);
767+
background: linear-gradient(var(--color-secondary-m-light), var(--color-secondary-m-light)), url("img/Features/cocktail.jpg");
768+
border-right: solid 0.2rem var(--color-secondary);
770769
}
771770

772771
section#features-content > div:last-child {
773-
background: linear-gradient(var(--color-secondary-m-light), var(--color-secondary-m-light)), url('img/Features/surfing.jpg');
774-
border-left: solid .2rem var(--color-secondary);
772+
background: linear-gradient(var(--color-secondary-m-light), var(--color-secondary-m-light)), url("img/Features/surfing.jpg");
773+
border-left: solid 0.2rem var(--color-secondary);
775774
}
776775

777776
section#features-content > div:first-child,
778-
section#features-content > div:last-child{
777+
section#features-content > div:last-child {
779778
background-position: left;
780779
background-size: cover;
781780
}
782781

783-
784782
section#features-text {
785783
background-color: var(--color-secondary);
786-
787784
}
788785

789786
section#testimonials {
@@ -873,11 +870,67 @@ section#testimonials {
873870
.testimonials__card:hover .testimonials__card--back {
874871
transform: perspective(100rem) rotateY(1turn);
875872
}
873+
876874
footer#footer {
877875
background-color: var(--color-primary);
878876
grid-column: container-start / container-end;
877+
padding: 6vh 4vw;
878+
879+
display: grid;
880+
grid-template-columns: repeat(2, 1fr);
881+
place-items: center;
882+
}
883+
884+
.footer__social--links:link,
885+
.footer__social--links:visited {
886+
display: inline-block;
887+
background-color: var(--color-secondary);
888+
border-radius: 4rem;
889+
margin-right: 1rem;
890+
box-shadow: 0.5rem 0.5rem 2rem 0.5rem var(--color-secondary-m-light), -0.5rem -0.5rem 2rem 0.5rem var(--color-secondary-m-light);
891+
transform: scale(0.8);
892+
animation: social 3s linear infinite;
893+
}
894+
895+
.footer__social--links:link:nth-child(1),
896+
.footer__social--links:visited:nth-child(1) {
897+
animation-delay: 0s;
898+
}
899+
900+
.footer__social--links:link:nth-child(2),
901+
.footer__social--links:visited:nth-child(2) {
902+
animation-delay: 0.3s;
903+
}
904+
905+
.footer__social--links:link:nth-child(3),
906+
.footer__social--links:visited:nth-child(3) {
907+
animation-delay: 0.6s;
908+
}
909+
910+
.footer__social--links:link:nth-child(4),
911+
.footer__social--links:visited:nth-child(4) {
912+
animation-delay: 0.9s;
879913
}
880914

915+
@keyframes social {
916+
0% {
917+
opacity: 0;
918+
}
919+
920+
50% {
921+
opacity: 1;
922+
transform: scale(1.2);
923+
}
924+
925+
100% {
926+
opacity: 0;
927+
}
928+
}
929+
930+
.footer__social--links i {
931+
color: var(--color-primary);
932+
font-size: 2rem;
933+
}
881934
/************************** 1000 px screen and below ***************************/
882935
@media screen and (max-width: 1000px) {
883936
a:link,
@@ -921,6 +974,12 @@ footer#footer {
921974
section#villas {
922975
grid-gap: 0;
923976
}
977+
978+
footer#footer {
979+
grid-template-columns: 1fr;
980+
grid-template-rows: repeat(2, 1fr);
981+
row-gap: 3rem;
982+
}
924983
}
925984

926985
/************************** 600 px screen and below ***************************/
@@ -948,6 +1007,7 @@ footer#footer {
9481007
div[class^="villas"] p[class^="villas"],
9491008
section#events-content > div p[class*="para"],
9501009
section#features-content > div p[class*="para"],
1010+
footer#footer > div p[class*="para"],
9511011
.motto__content--para,
9521012
.booking-content__para {
9531013
font-size: 1.5rem;
@@ -984,10 +1044,14 @@ footer#footer {
9841044
.corousel__nav {
9851045
grid-template-columns: repeat(5, 1fr);
9861046
grid-template-rows: repeat(2, 1fr);
987-
grid-row-gap : 3vh;
1047+
grid-row-gap: 3vh;
9881048
grid-column-gap: 8vw;
9891049
height: 12%;
9901050
}
1051+
1052+
footer#footer {
1053+
padding: 4vh 2vw;
1054+
}
9911055
}
9921056

9931057
/************************** 400 px screen and below ***************************/

0 commit comments

Comments
 (0)