Skip to content

Commit

Permalink
home page style completed
Browse files Browse the repository at this point in the history
  • Loading branch information
PIYUSH JAIN committed Jan 30, 2022
1 parent 0a758c9 commit 2c9c709
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions frontend/package-lock.json

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

19 changes: 11 additions & 8 deletions frontend/src/components/Navigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,39 @@ import { Link } from "react-router-dom";

const Navigation = () => {
const cartStyle = {
background: "#F59E0D",
display: "flex",
borderRadius: "50px",
padding: "6px 12px",
};
return (
<>
<nav className="container mx-auto flex items-center justify-between py-4">
<div >
<Link className="flex items-center justify-between" to="/">
<div className="ml-12">
<Link className="flex items-center justify-between ml-6" to="/">
<img
src="/images/logo.png"
alt="logo"
style={{ width: 45, height: 45 }}
/>
<p className="px-2">Just Burger</p>
<p className="px-2 font-bold">Just Burger</p>
</Link>
</div>
<ul className="flex items-center">
<li className="ml-6">
<li>
<Link to="/">Home</Link>
</li>
<li className="ml-6">
<Link to="/products">Products</Link>
</li>
<li className="ml-6">
<li className="ml-6 mr-6">
<Link to="/cart">
<div className="items-center justify-between" style={cartStyle}>
<div
style={cartStyle}
className="items-center justify-between bg-yellow-400 hover:bg-yellow-600"
>
<span>10</span>
<img className="ml-2"
<img
className="ml-2"
src="/images/shopping-cart.png"
alt="cart-icon"
style={{ width: 35, height: 35 }}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Home() {
<>
<div className="hero py-16">
<div className="container mx-auto flex items-center justify-between">
<div className="w-1/2">
<div className="w-1/2 m-12">
<h6 className="text-lg">
<em>Are You Hungry?</em>
</h6>
Expand Down

0 comments on commit 2c9c709

Please sign in to comment.