Skip to content

Commit

Permalink
Merge pull request #251 from zalabhavy/footer
Browse files Browse the repository at this point in the history
Added Hover Style and tilt on footer
  • Loading branch information
Avdhesh-Varshney committed Jul 28, 2024
2 parents c3a5cf4 + 931367e commit 0a16086
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/shared/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { NavLink } from "react-router-dom";
import { Context } from "../../context/Context";
import Visitors from "./Visitors";
import { FaGithub, FaHome, FaInfoCircle, FaUser, FaSignInAlt, FaMusic, FaVideo, FaBook, FaNewspaper, FaQuestionCircle, FaRobot } from "react-icons/fa";
import Tilt from 'react-parallax-tilt';
import "../../css/Footer.css";

const Footer = () => {
const { isDarkMode } = useContext(Context);
Expand All @@ -13,10 +15,12 @@ const Footer = () => {
<div className="row">
<div className="col-md-6 d-flex">
<figure className="figure">
<img src="logo.webp" height="200" alt="Chanakya Image" />
<Tilt>
<img src="logo.webp" height="200" alt="Chanakya Image" />
</Tilt>
<figcaption className="figure-caption text-center">चाणक्य नीति</figcaption>
</figure>
<div className="my-auto">
<div className="my-auto star-btn">
<a href="https://github.com/Avdhesh-Varshney/chanakya-niti" target="_blank" rel="noopener noreferrer" className="text-white bg-dark p-2 rounded text-decoration-none d-inline-block">
<FaGithub className="me-2" /> Star Us ⭐
</a>
Expand Down
21 changes: 21 additions & 0 deletions src/css/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.star-btn a {
transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.star-btn a:hover {
transform: scale(1.1);
}

.list-unstyled li {
margin-bottom: 0.5rem;
}

.list-unstyled li a {
transition: transform 0.3s ease-in-out;
display: inline-block;
}

.list-unstyled li a:hover {
transform: scale(1.1);
}

0 comments on commit 0a16086

Please sign in to comment.