Skip to content

Commit

Permalink
Improved the footer styling and layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
DiksonIvySon committed Jan 16, 2024
1 parent ad28909 commit fff3ab2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
19 changes: 18 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,14 @@ img {
}

/* styling the footer ..................................................................................................*/
.footer {
padding: 30px;
}

.footer .footer-logo {
display: flex;
justify-content: center;
}

.inFooter-container {
display: flex;
Expand All @@ -214,6 +221,10 @@ img {
border-radius: 15px;
}

.footer div h4 {
margin-top: 0;
}

.footer div ul {
margin-left: 0px;
padding-left: 0px;
Expand All @@ -229,7 +240,13 @@ img {
}

.footer div ul li a:hover {
color: #F4CE14;
color: burlywood;
}

.footer hr {
height: 10px;
background-color: burlywood;
border: none;
}

/* styling the main section .................................................................................................................................*/
Expand Down
10 changes: 9 additions & 1 deletion src/Components/footer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {Component} from "react";
import { NavLink } from "react-router-dom";
import Logo from "./Logo";
import restaurant from './assets/restaurant.jpg'

class Footer extends Component {
Expand All @@ -11,6 +12,9 @@ class Footer extends Component {
render() {
return(
<footer className="footer">
<div className="footer-logo">
<Logo />
</div>
<div className="inFooter-container">
<div className="footer-img">
<img src={restaurant}></img>
Expand All @@ -22,7 +26,7 @@ class Footer extends Component {
<li><NavLink to="/about">About</NavLink></li>
<li><NavLink to="/menu">Menu</NavLink></li>
<li><NavLink to="/bookingPage">Reservation</NavLink></li>
{/*<li><NavLink to="/orderOnline">Order Online</NavLink></li>*/}
<li><NavLink to="/orderOnline">Open cart</NavLink></li>
<li><NavLink to="/login">Login</NavLink></li>
</ul>
</div>
Expand All @@ -43,6 +47,10 @@ class Footer extends Component {
</ul>
</div>
</div>
<hr />
<div>
<p>Copyright @ 2024 Dikson Thabo Manganye All rights reserved</p>
</div>
</footer>
);
}
Expand Down

0 comments on commit fff3ab2

Please sign in to comment.