Skip to content

Commit

Permalink
Worked on the drinks section.
Browse files Browse the repository at this point in the history
  • Loading branch information
DiksonIvySon committed Jan 19, 2024
1 parent e64ee3f commit 9a6cee9
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 33 deletions.
39 changes: 39 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,45 @@ img {
flex-wrap: wrap;
}

.drinkItem-container hr {
height: 1px;
border: none;
margin-top: 0px ;
background-color: black;
}

.drinkItem-container .drinkItem {
display: flex;
justify-content: space-between;
align-items: center;
}

.drinkItem-container .drinkItem div {
display: flex;
align-items: center;
gap: 15px;
}

.drinkItem-container .drinkItem .drinkItem-price {
display: flex;
align-items: center;
}

.drinkItem .drinkItem-price .addDrink {
background-color: #495E57;
border: 2px solid black;
border-radius: 50%;
margin: 5px;
padding: 5px;
font-size: 25px;
width: 30px;
height: 30px;
}

.menu .drinks-section {
text-align: center;
margin-bottom: 80px;
}

/*styling the testimonials section */

Expand Down
17 changes: 17 additions & 0 deletions src/Components/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,21 @@
background-color: burlywood;
border: 1px solid burlywood;
color: black;
}

.primary-btn2 {
background-color: transparent;
border: 1px solid #495E57;
border-radius: 0px;
text-decoration: none;
padding: 5px 15px;
font-size: 20px;
color: #495E57;
transition: 0.4s;
}

.primary-btn2:hover {
background-color: #495E57;
border: 1px solid #495E57;
color: burlywood;
}
59 changes: 26 additions & 33 deletions src/Pages/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import SectionHeader from '../Components/SectionHeader';
import OfferMenu from '../Components/OfferMenu';

import { NavLink } from "react-router-dom";
import { IoAdd } from "react-icons/io5";


/* food images */
import greekSalad from '../Components/assets/greekSalad.jpg';
Expand Down Expand Up @@ -187,27 +189,25 @@ const dessertS = {

const drinks = {
cock_pepsi: {title: "Coka Cola or Pepsi",
image: cock_pepsi,
price: 18,
},

grap_apple: {title: "Grapetiser or Appletiser",
image: grap_apple,
price: 23,
},

redbull: {title: "Redbull",
image: redbull,
price: 26,
},

blackLabol: {title: "Black Labol",
image: blackLabol,
price: 35,
},
corona: {title: "Corona",
image: corona,
price: 37,
},

heineken: {title: "Heineken",
image: heineken,
price: 26,
},
}
Expand Down Expand Up @@ -275,22 +275,19 @@ function SignatureDish({foods}) {
function DrinkItem({drinks}) {

return (
<div className="foodItem-container">
<div>
<div className="foodItem-info">
<div className="foodItem-image">
<img src={drinks.image} alt="food item image"></img>
</div>
<div className="foodItem-price">
<h3>R{drinks.price}</h3>
</div>
</div>
<div>
<h4 className="menuItem-title">{drinks.title}</h4>
</div>
</div>
<hr></hr>
</div>
<div className="drinkItem-container">
<div className='drinkItem'>
<div>
<h4 className="drinkItem-title">{drinks.title}</h4>
<h3>|</h3>
<div className="drinkItem-price">
<h3>R{drinks.price}</h3>
</div>
</div>
<NavLink className='primary-btn2' to="/about">Add To Cart</NavLink>
</div>
<hr />
</div>
)
}

Expand Down Expand Up @@ -322,6 +319,13 @@ class Menu extends Component {
<SignatureDish foods={foodTypes.Swordfish}/>
<SignatureDish foods={foodTypes.Vegetable}/>
</div>
<SectionHeader SectionHeader_text="Drinks"/>
<div className='drinks-section'>
<p>
Please note that drinks are only available on seat in and no online orders
</p>
<NavLink className='primary-btn2' to="/about">Add To Cart</NavLink>
</div>
<SectionHeader SectionHeader_text="Traditional Menu"/>
<div className='traditional-menu'>
<MenuItem foods={foodTypes.Bunny_chow}/>
Expand Down Expand Up @@ -353,17 +357,6 @@ class Menu extends Component {
<MenuItem foods={dessertS.French_Toast}/>
</div>
</div>
<SectionHeader SectionHeader_text="Drinks"/>
<h2>SOFT DRINKS</h2>
<div>
<DrinkItem drinks={drinks.cock_pepsi} />
<DrinkItem drinks={drinks.grap_apple} />
<DrinkItem drinks={drinks.redbull} />
</div>
<h2>BEERS</h2>
<DrinkItem drinks={drinks.blackLabol} />
<DrinkItem drinks={drinks.corona} />
<DrinkItem drinks={drinks.heineken} />
</div>
</main>
<footer className='footer'>
Expand Down

0 comments on commit 9a6cee9

Please sign in to comment.