Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Footer #203

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
74 changes: 65 additions & 9 deletions src/components/shared/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,69 @@
import React from 'react';
import React from "react";
import "../../css/Footer.css";
import { Link, NavLink } from "react-router-dom";

const Footer = () => {
return (
<footer className="footer">
<div className="mx-auto px-4 py-2">
<center><p>&copy; 2024 Chanakya Niti. All rights reserved.</p></center>
const Footer = () => (
<footer className="page-footer font-small blue pt-4 mb-4">
<div className="container-fluid text-center text-md-left">
<div className="row">
<div className="col-md-6 mt-md-0 mt-3 flex flex-row">
<img
src="/logo.webp"
height="220"
alt="footer logo"
className="pt-4"
/>
<h5 className="pt-5 m-0 mt-2 fw-bolder fs-1">चाणक्य नीति</h5>
</div>

<hr className="clearfix w-100 d-md-none pb-0" />

<div className="col-md-3 mb-md-0 mb-3 pt-4">
<h5 className="text-uppercase fw-bold">चाणक्य नीति</h5>
<ul className="list-unstyled">
<li>
<NavLink to="/">Home</NavLink>
</li>
<li>
<NavLink to="/about">About</NavLink>
</li>
<li>
<NavLink to="/contributor">Contributors</NavLink>
</li>
<li>
<NavLink to="/auth/SignIn">Sign-In</NavLink>
</li>
</ul>
</div>

<div className="col-md-3 mb-md-0 mb-3 pt-3">
<h5 className="text-uppercase fw-bold">Resources</h5>
<ul className="list-unstyled">
<li>
<NavLink to="/resources/audio">Audio</NavLink>
</li>
<li>
<NavLink to="/resources/video">Video</NavLink>
</li>
<li>
<NavLink to="/resources/book">Books</NavLink>
</li>
<li>
<NavLink to="/resources/news">News</NavLink>
</li>
<li>
<NavLink to="/resources/quiz">Quiz</NavLink>
</li>
</ul>
</div>
</div>
</footer>
);
};
</div>
<div className="footer-copyright text-center pt-2">
<center>
<p>&copy; 2024 Chanakya Niti. All rights reserved.</p>
</center>
</div>
</footer>
);

export default Footer;
29 changes: 29 additions & 0 deletions src/css/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ul li a {
text-decoration: none;
color: black;
font-size: large;
}
ul li a:hover {
text-decoration: underline;
}

ul {
display: flex;
flex-direction: column;
}

.page-footer {
width: 100%;
margin-top: 3rem;
background-color: rgba(223, 223, 176, 0.479);
color: black;
border-radius: 15px;
}

.dark .page-footer {
background-color: #262626;
color: white;
}
.dark ul li a {
color: white;
}
2 changes: 1 addition & 1 deletion src/css/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
justify-content: center;
gap: 20px;
padding: 20px;
padding-bottom: 100px;
padding-bottom: 50px;
}

.feat-3 img{
Expand Down