Skip to content

Commit

Permalink
Merge pull request #439 from pulkitgarg04/hover-effect-on-icons
Browse files Browse the repository at this point in the history
[Fixed]: Inconsistent hover effect on social media icons in footer
  • Loading branch information
khushi-joshi-05 authored May 25, 2024
2 parents 96088d4 + a0cdb30 commit d74ee14
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 63 deletions.
29 changes: 21 additions & 8 deletions Css-files/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ body {
}

.copyright{
background-color: rgb(66, 16, 16);
padding-top: 10px;
}

Expand Down Expand Up @@ -374,23 +375,35 @@ textarea {
background-color:rgb(196, 89, 89);
}

.social-icons a{
font-size: 1.2rem;
padding: 15px;
text-decoration: none;
color: white;
.social-icons a {
font-size: 1.2rem;
padding: 10px;
margin: 10px;
text-decoration: none;
color: black;
background-color: white;
border-radius: 50%;
transition: .2s;
}

.fa-facebook:hover {
color:#3B5998;
background-color: #3B5998;
color: white;
}

.fa-instagram:hover {
color:#D62976;
background-color: #D62976;
color: white;
}

.fa-twitter:hover {
color:#00B6F1;
background-color: #00B6F1;
color: white;
}

.fa-github:hover {
background-color: #040204;
color: white;
}

/* Cart page styling */
Expand Down
15 changes: 11 additions & 4 deletions Html-files/cart.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,26 @@ <h3>Contact Us!</h3>
<div class="foot_panel4">
<div class="pages">
<h4>Follow Us</h4>

<div class="social-icons">
<i class="fa-brands fa-facebook"></i>
<i class="fa-brands fa-instagram"></i>
<i class="fa-brands fa-twitter"></i>
<a class="fa-brands fa-facebook" href="https://facebook.com" target="_blank"></a>
<a class="fa-brands fa-instagram" href="https://instagram.com" target="_blank"></a>
<a class="fa-brands fa-twitter" href="https://twitter.com" target="_blank"></a>
<a class="fa-brands fa-github" href="https://github.com" target="_blank"></a>
</div>
<p>Stay connected with us on social media for the latest updates, recipes, and foodie adventures.
</p>
<div class="copyright">
&copy; 2024 Foodies . All Rights Reserved. | <span id="author">
&copy; 2024 Foodies - All Rights Reserved | <span id="author">
<a href="https://www.linkedin.com/in/khushi-joshi-95a587256/" target="_blank">Khushi Joshi</a>
</span></p>




</div>
</div>
</div>
</footer>


Expand Down
17 changes: 7 additions & 10 deletions Html-files/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FoodOrderingWebsite</title>
<title>Contact Us - Food Ordering Website</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
Expand Down Expand Up @@ -167,23 +167,20 @@ <h3>Contact Us!</h3>
<h4>Follow Us</h4>

<div class="social-icons">
<i class="fa-brands fa-facebook"></i>
<i class="fa-brands fa-instagram"></i>
<i class="fa-brands fa-twitter"></i>
<a class="fa-brands fa-facebook" href="https://facebook.com" target="_blank"></a>
<a class="fa-brands fa-instagram" href="https://instagram.com" target="_blank"></a>
<a class="fa-brands fa-twitter" href="https://twitter.com" target="_blank"></a>
<a class="fa-brands fa-github" href="https://github.com" target="_blank"></a>
</div>
<p>Stay connected with us on social media for the latest updates, recipes, and foodie adventures.
</p>
<div class="copyright">

&copy; 2024 Foodies . All Rights Reserved. | Developed by <span id="author">
&copy; 2024 Foodies - All Rights Reserved | <span id="author">
<a href="https://www.linkedin.com/in/khushi-joshi-95a587256/" target="_blank">Khushi Joshi</a>
</span></p>
</div>



</div>
</div>
</div>
</footer>
</body>

Expand Down
11 changes: 6 additions & 5 deletions Html-files/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,15 @@ <h3>Contact Us!</h3>
<h4>Follow Us</h4>

<div class="social-icons">
<a class="fa-brands fa-facebook" href="https://facebook.com" target="_blank"></a>
<a class="fa-brands fa-instagram" href="https://instagram.com" target="_blank"></a>
<a class="fa-brands fa-twitter" href="https://twitter.com" target="_blank"></a>
<a class="fa-brands fa-facebook" href="https://facebook.com" target="_blank"></a>
<a class="fa-brands fa-instagram" href="https://instagram.com" target="_blank"></a>
<a class="fa-brands fa-twitter" href="https://twitter.com" target="_blank"></a>
<a class="fa-brands fa-github" href="https://github.com" target="_blank"></a>
</div>
<p>Stay connected with us on social media for the latest updates, recipes, and foodie adventures.
</p>
<div class="copyright">

&copy; 2024 Foodies . All Rights Reserved. | Developed by <span id="author">
&copy; 2024 Foodies - All Rights Reserved | <span id="author">
<a href="https://www.linkedin.com/in/khushi-joshi-95a587256/" target="_blank">Khushi Joshi</a>
</span></p>

Expand All @@ -392,6 +392,7 @@ <h4>Follow Us</h4>

</div>
</div>
</div>
</footer>

<script src="menu.js"></script>
Expand Down
13 changes: 4 additions & 9 deletions Html-files/services.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FoodOrderingWebsite</title>
<title>Services - Food Ordering Website</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"
integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
Expand Down Expand Up @@ -243,25 +243,20 @@ <h3>Contact Us!</h3>
<h4>Follow Us</h4>

<div class="social-icons">
<div class="social-icons">
<a class="fa-brands fa-facebook" href="https://facebook.com" target="_blank"></a>
<a class="fa-brands fa-instagram" href="https://instagram.com" target="_blank"></a>
<a class="fa-brands fa-twitter" href="https://twitter.com" target="_blank"></a>
</div>
<a class="fa-brands fa-github" href="https://github.com" target="_blank"></a>
</div>
<p>Stay connected with us on social media for the latest updates, recipes, and foodie adventures.
</p>
<div class="copyright">

&copy; 2024 Foodies . All Rights Reserved. | <span id="author">
&copy; 2024 Foodies - All Rights Reserved | <span id="author">
<a href="https://www.linkedin.com/in/khushi-joshi-95a587256/" target="_blank">Khushi Joshi</a>
</span></p>




</div>
</div>
</div>
</footer>


Expand Down
19 changes: 8 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -390,24 +390,21 @@ <h3>Contact Us!</h3>
<div class="foot_panel4">
<div class="pages">
<h4>Follow Us</h4>

<div class="social-icons">


<a class="fa-brands fa-facebook" href="https://facebook.com"></a>
<a class="fa-brands fa-instagram" href="https://instagram.com"></a>
<a class="fa-brands fa-twitter" href="https://twitter.com"></a>

<a class="fa-brands fa-facebook" href="https://facebook.com" target="_blank"></a>
<a class="fa-brands fa-instagram" href="https://instagram.com" target="_blank"></a>
<a class="fa-brands fa-twitter" href="https://twitter.com" target="_blank"></a>
<a class="fa-brands fa-github" href="https://github.com" target="_blank"></a>
</div>
<p>Stay connected with us on social media for the latest updates, recipes, and foodie adventures.
</p>
<div class="copyright">

&copy; 2024 Foodies . All Rights Reserved. | Developed by <span id="author">
<a href="https://www.linkedin.com/in/khushi-joshi-95a587256/" target="_blank">Khushi
Joshi</a>
&copy; 2024 Foodies - All Rights Reserved | <span id="author">
<a href="https://www.linkedin.com/in/khushi-joshi-95a587256/" target="_blank">Khushi Joshi</a>
</span></p>
</div>
</div>
</div>
</footer>

</div>
Expand Down
35 changes: 19 additions & 16 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,7 @@ ul a {
}

.copyright {
background-color: rgb(66, 16, 16);
padding-top: 10px;
}

Expand Down Expand Up @@ -570,31 +571,33 @@ textarea {

.social-icons a {
font-size: 1.2rem;
padding: 8px;
margin: 15px;
padding: 10px;
margin: 10px;
text-decoration: none;
color: white;
color: black;
background-color: white;
border-radius: 50%;
transition: .2s;
}

.social-icons a:hover {
color: brown;
background-color: wheat;
border-radius: 50px;
.fa-facebook:hover {
background-color: #3B5998;
color: white;
}

.fb {
color: #1877f2;
cursor: pointer;
.fa-instagram:hover {
background-color: #D62976;
color: white;
}

.instagram {
color: #dd4c8d;
cursor: pointer;
.fa-twitter:hover {
background-color: #00B6F1;
color: white;
}

.twitter {
color: #1da1f2;
cursor: pointer;
.fa-github:hover {
background-color: #040204;
color: white;
}

#author {
Expand Down

0 comments on commit d74ee14

Please sign in to comment.