Skip to content

Commit

Permalink
Merge pull request #410 from mansi066/main
Browse files Browse the repository at this point in the history
Enhance the footer #404
  • Loading branch information
iamparas0 authored Oct 29, 2024
2 parents 06065e6 + be2ac90 commit ebecc22
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 35 deletions.
58 changes: 58 additions & 0 deletions paras/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions paras/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"paras": "file:",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.27.0",
Expand Down
72 changes: 61 additions & 11 deletions paras/public/first.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
footer {
position: fixed;
bottom: 0;
width: 100%;
background-color: #333;
color: #fff;
text-align: center;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
position: relative;
bottom: -320px;
width: 100%;
background-color: #333;
color: #fff;
text-align: center;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}




}

.footer-container {
max-width: 800px;
Expand Down Expand Up @@ -38,9 +41,56 @@ footer {
}

.social-links a:hover {
color: #ccc;
color: #f39c12;
}

.fa {
font-size: 24px;
}
}

.footer-content {
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
flex-direction: row;
margin-left: 0px;
margin: 33px;
}

.footer-section {
flex: 1;
min-width: 200px;
margin: 5px;
}

.footer-section h3 {
margin-bottom: 15px;
}

.footer-section ul {
list-style-type: none;
padding: 0;
}

.footer-section ul li {
margin: 5px 0;
}

.footer-section ul li a {
color: white;
text-decoration: none;
}

.footer-section ul li a:hover {
text-decoration: underline;
color:blue;
}

.footer-bottom {
border-top: 1px solid #444;
padding-top: 10px;
margin-top: 20px;
}


51 changes: 43 additions & 8 deletions paras/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@



To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->


<style>
.voting-button {
display: inline-block;
Expand Down Expand Up @@ -179,14 +176,52 @@
<div class="button-container">
<a href="voting_system.html" class="voting-button">Voting System</a>
</div>
<p>&copy; 2024 Tic-Tac-Toe Game</p>

<div class="footer-content">
<div class="footer-section about">
<h3>About Tic-Tac-Toe 2024</h3>
<p>Welcome to the best online Tic-Tac-Toe experience! Play against friends, challenge the AI, and enjoy the fun!</p>
</div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">

<div class="footer-section links">
<h3>Quick Links</h3>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#how-to-play">About</a></li>
<li><a href="#leaderboard">Rules</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
<div class="footer-section legal">
<h3>Legal</h3>
<ul>
<li><a href="#privacy-policy">Privacy Policy</a></li>
<li><a href="#terms-conditions">Terms & Conditions</a></li>
<li><a href="#cookie-policy">Cookie Policy</a></li>
</ul>
</div>
<div class="footer-section contact">
<h3>Contact Us</h3>
<ul>
<li><a href="mailto:support@tictactoe2024.com">support@tictactoe2024.com</a></li>
<li><a href="tel:+1234567890">+1 234 567 890</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<p>&copy; 2024 Tic-Tac-Toe Game. All rights reserved.</p>
</div>


<ul class="social-links">
<li><a href="#" target="_blank"><i class="fa fa-facebook"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="#" target="_blank"><i class="fa fa-instagram"></i></a></li>
<li><a href="https://www.linkedin.com/in/iamparas0/" target="_blank"><i class="fab fa-linkedin"></i></a></li>
<li><a href="https://x.com/iamparas0" target="_blank"><i class="fab fa-twitter"></i></a></li>
<li><a href="https://www.instagram.com/iamparas.0/" target="_blank"><i class="fab fa-instagram"></i></a></li>
</ul>
</div>
</footer>

</body>

</html>
34 changes: 18 additions & 16 deletions paras/vercel.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{

"rewrites":[
{"source" : "./(.*)", "destination" : "/"}
]

"version": 2,
"builds": [
{
"src": "index.html",
"use": "@vercel/static"
}
],
"rewrites": [
{
"source": "/(.*)",
"destination": "/"
}
],
"git": {
"deploymentEnabled": {
"main": false
}
}
}

"rewrites":[
{"source" : "./(.*)", "destination" : "/"}
],
"git": {
"deploymentEnabled": {
"main": false
}
}
}

0 comments on commit ebecc22

Please sign in to comment.