Skip to content

Commit

Permalink
Done working 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 9a6cee9 commit ec1d0a5
Show file tree
Hide file tree
Showing 19 changed files with 56 additions and 94 deletions.
26 changes: 21 additions & 5 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,6 @@ img {
margin: 10px auto;
}

.menu {
margin-left: var(--main-side-margin);
margin-right: var(--main-side-margin);
}

.foodItem-img-des {
display: flex;
gap: 20px;
Expand Down Expand Up @@ -479,6 +474,13 @@ img {
flex-wrap: wrap;
}

.drinkItem-container {
min-width: 310px;
max-width: 700px;
flex: 1;
margin-inline: 20px;
}

.drinkItem-container hr {
height: 1px;
border: none;
Expand Down Expand Up @@ -515,10 +517,24 @@ img {
}

.menu .drinks-section {
background: linear-gradient(135deg, rgba(135, 140, 146, 0.1), rgb(70, 69, 69));
text-align: center;
margin-bottom: 80px;
padding: 40px 0px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.menu .drinks-section > div {
text-align: center;
margin-bottom: 20px;
display: flex;
flex-wrap: wrap;
}


/*styling the testimonials section */

.testimonials {
Expand Down
1 change: 1 addition & 0 deletions src/Components/Main.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
background-color: transparent;
border: 1px solid #495E57;
border-radius: 0px;
max-height: 39px;
text-decoration: none;
padding: 5px 15px;
font-size: 20px;
Expand Down
1 change: 0 additions & 1 deletion src/Components/Story.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { NavLink } from "react-router-dom";
import restaurant from './assets/restaurant.jpg';
import breakfast1 from '../images/breakfast1.png';
import salad1 from '../images/salad1.png';
import MarioAndAdrianB from './assets/MarioAndAdrianB.jpg';

function story() {
return (
Expand Down
3 changes: 0 additions & 3 deletions src/Components/assets/Basket.svg

This file was deleted.

9 changes: 0 additions & 9 deletions src/Components/assets/Logo .svg

This file was deleted.

9 changes: 0 additions & 9 deletions src/Components/assets/Logo.svg

This file was deleted.

Binary file removed src/Components/assets/MarioAndAdrianA.jpg
Binary file not shown.
Binary file removed src/Components/assets/MarioAndAdrianB.jpg
Binary file not shown.
3 changes: 0 additions & 3 deletions src/Components/assets/basket .svg

This file was deleted.

Binary file removed src/Components/assets/blackLabol.jpeg
Binary file not shown.
Binary file removed src/Components/assets/cock_pepsi.jpeg
Binary file not shown.
Binary file removed src/Components/assets/cock_pepsi.jpg
Binary file not shown.
Binary file removed src/Components/assets/heineken.jpeg
Binary file not shown.
Binary file removed src/Components/assets/redbull.jpeg
Binary file not shown.
Binary file removed src/Components/assets/restaurant chef B.jpg
Binary file not shown.
41 changes: 0 additions & 41 deletions src/Components/info.js

This file was deleted.

1 change: 0 additions & 1 deletion src/Components/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import './Main.css';

import Specials from "./specials";
import Testimonials from "./testimonials";
import Info from "./info";
import Story from "./Story";
import SectionHeader from "./SectionHeader";
import MenuIntro from "./MenuIntro";
Expand Down
3 changes: 1 addition & 2 deletions src/Pages/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, {Component} from 'react';
import Nav from '../Components/nav';
import Header from '../Components/homeHeader';
import Footer from '../Components/footer';
import Info from '../Components/info';


class About extends Component {
Expand All @@ -23,7 +22,7 @@ class About extends Component {
<div className="header-heading">
<h1>About</h1>
</div>
<Info/>

</main>
<footer className='footer'>
<Footer />
Expand Down
53 changes: 33 additions & 20 deletions src/Pages/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@ import Spaghetti from '../Components/assets/Spaghetti.webp';
import Swordfish from '../Components/assets/Swordfish.webp';
import Vegetable from '../Components/assets/Vegetable.webp';

/* dinks images */
import cock_pepsi from '../Components/assets/cock_pepsi.jpg'
import grap_apple from '../Components/assets/grap_apple.jpeg'
import redbull from '../Components/assets/redbull.jpeg'
import blackLabol from '../Components/assets/blackLabol.jpeg'
import corona from '../Components/assets/corona.jpeg'
import heineken from '../Components/assets/heineken.jpeg'
/* drinks images */


const foodTypes = {
greekSalad: {title: "Greek Salad",
Expand Down Expand Up @@ -187,27 +182,35 @@ const dessertS = {
},
}

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

pepsi: {title: "Pepsi",
price: 18,
},

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

redbull: {title: "Redbull",
appletiser: {title: "Appletiser",
price: 23,
},

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

blackLabol: {title: "Black Labol",
Orange_Juice: {title: "Orange Juice",
price: 35,
},
corona: {title: "Corona",
Apple_Juice: {title: "Apple Juice",
price: 37,
},

heineken: {title: "Heineken",
Aloe_vera: {title: "Aloe Vera",
price: 26,
},
}
Expand Down Expand Up @@ -309,7 +312,7 @@ class Menu extends Component {
<OfferMenu />
<div className='menu'>
<SectionHeader SectionHeader_text="Our Signature Dish Menu"/>
<div className='SignatureDish-menu'>
<div className='SignatureDish-menu section-margin'>
<SignatureDish foods={foodTypes.Baked_Goat_Cheese}/>
<SignatureDish foods={foodTypes.Garlicky_Braised_Lamb}/>
<SignatureDish foods={foodTypes.Ham_Steaks}/>
Expand All @@ -319,15 +322,25 @@ class Menu extends Component {
<SignatureDish foods={foodTypes.Swordfish}/>
<SignatureDish foods={foodTypes.Vegetable}/>
</div>
<SectionHeader SectionHeader_text="Drinks"/>
<div className='drinks-section'>
<SectionHeader SectionHeader_text="Drinks"/>
<div className='section-margin'>
<DrinkItem drinks={drinksType.Apple_Juice}/>
<DrinkItem drinks={drinksType.Orange_Juice}/>
<DrinkItem drinks={drinksType.Aloe_vera}/>
<DrinkItem drinks={drinksType.cock}/>
<DrinkItem drinks={drinksType.pepsi}/>
<DrinkItem drinks={drinksType.appletiser}/>
<DrinkItem drinks={drinksType.grapetiser}/>
<DrinkItem drinks={drinksType.redbull}/>
</div>
<p>
Please note that drinks are only available on seat in and no online orders
Please note that alcohol drinks are only available on seat in and no online orders.
</p>
<NavLink className='primary-btn2' to="/about">Add To Cart</NavLink>
<NavLink className='primary-btn2' to="/about">Open Alcohol Menu</NavLink>
</div>
<SectionHeader SectionHeader_text="Traditional Menu"/>
<div className='traditional-menu'>
<div className='traditional-menu section-margin'>
<MenuItem foods={foodTypes.Bunny_chow}/>
<MenuItem foods={foodTypes.Braai_Shisa_nyama}/>
<MenuItem foods={foodTypes.Bobotie}/>
Expand All @@ -341,7 +354,7 @@ class Menu extends Component {
</div>
<Specials />
<SectionHeader SectionHeader_text="Desserts and Breakfast"/>
<div className='dessertsAndBreakfast'>
<div className='dessertsAndBreakfast section-margin'>
<div className='Desserts'>
<h2>Desserts</h2>
<MenuItem foods={dessertS.Melktert}/>
Expand Down

0 comments on commit ec1d0a5

Please sign in to comment.