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

Footer section Added #165

Merged
merged 4 commits into from
May 19, 2024
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
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Web Master Log - Website of All type of Projects</title>
</head>
Expand Down
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import './App.css';
import SideBar from './components/Sidebar/SideBar';
import Links from './components/Links';
import MainPage from './components/Pages/MainPage';
import Footer from './components/Footer/Footer';

const categories = ['angular', '', 'frontend', 'next', 'node', 'react', 'vanilla', 'vue'];
const routes = Links();
Expand All @@ -27,6 +28,7 @@ function App() {
</SideBar>

</Router>
<Footer/>
</div>
);
}
Expand Down
24 changes: 24 additions & 0 deletions src/components/Footer/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
footer {
position: fixed;
background-color: black;
bottom: 0;
left: 0;
right: 0;
padding: 8px;
text-align: center;
width: 100%;

border-top: 2px solid white;
}
.social-section {
display: flex;
flex-direction: row;
justify-content: space-around;
}
.social ul li {
display: inline;
padding-left: 30px;
}
.shoutout {
padding-right: 5px;
}
38 changes: 38 additions & 0 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import "./Footer.css";
const Footer = () => {
const year = new Date().getFullYear();

return (
<footer>
<div class="social-section">
<div>
<div>
<b>Made with ♡ by Avdhesh </b>
</div>
</div>
<div class="social">
<ul>
<li>
<a href="https://www.linkedin.com/in/avdhesh-varshney-5314a4233/">
<i class="fa-brands fa-linkedin fa-lg"></i>
</a>
</li>
<li>
<a href="https://twitter.com/__Avdhesh__">
<i class="fa-brands fa-square-x-twitter fa-lg"></i>
</a>
</li>
<li>
<a href="https://github.com/Avdhesh-Varshney">
<i class="fa-brands fa-square-github fa-lg"></i>
</a>
</li>
</ul>
</div>
</div>
<div>{`Copyright © Web Master Log ${year}`}</div>
</footer>
);
};

export default Footer;