Skip to content

Commit

Permalink
Created the Signature dish manu and styled it.
Browse files Browse the repository at this point in the history
  • Loading branch information
DiksonIvySon committed Jan 18, 2024
1 parent 68a91a1 commit 0fac165
Show file tree
Hide file tree
Showing 10 changed files with 145 additions and 1 deletion.
55 changes: 55 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,61 @@ img {
grid-template-columns: 1fr 1fr;
}

/**/
.signatureDish-container {
max-width: 300px;
margin: 10px;
}

.signatureDish-image {
max-width: 300px;
max-height: 300px;
margin: 0;
border-radius: 20px 20px 0px 0px;
}

.signatureDish-image img {
width: 100%;
height: 100%;
object-fit: cover;
margin: 0;
border-radius: 20px 20px 0px 0px;
}

.signatureDish-info .signatureDish-btn {
margin: 10px 0px;
}

.signatureDish-img-des-info {
display: flex;
flex-direction: column;
justify-content: space-between;
}

.signatureDish-description {
width: 300px;
margin: 0;
}

.signatureDish-img-des-info .priceAndTitle {
display: flex;
justify-content: space-between;
align-items: center;
}

.signatureDish-price h3 {
font-size: 30px;
color: burlywood;
margin: 0;
}

.menu .SignatureDish-menu {
margin: 40px 0px 80px 0px;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}


/*styling the testimonials section */

Expand Down
Binary file added src/Components/assets/Baked_Goat_Cheese.webp
Binary file not shown.
Binary file added src/Components/assets/Garlicky_Braised_Lamb.webp
Binary file not shown.
Binary file added src/Components/assets/Ham_Steaks.webp
Binary file not shown.
Binary file added src/Components/assets/Poached_Eggs.webp
Binary file not shown.
Binary file added src/Components/assets/Seared_Salmon.webp
Binary file not shown.
Binary file added src/Components/assets/Spaghetti.webp
Binary file not shown.
Binary file added src/Components/assets/Swordfish.webp
Binary file not shown.
Binary file added src/Components/assets/Vegetable.webp
Binary file not shown.
91 changes: 90 additions & 1 deletion src/Pages/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ import Eggs_Benedict from '../Components/assets/Eggs_Benedict.webp';
import Cheese_Sandwich from '../Components/assets/Cheese_Sandwich.webp';
import Yogurt_Parfait from '../Components/assets/Yogurt_Parfait.webp';
import French_Toast from '../Components/assets/French_Toast.webp';
import Baked_Goat_Cheese from '../Components/assets/Baked_Goat_Cheese.webp';
import Garlicky_Braised_Lamb from '../Components/assets/Garlicky_Braised_Lamb.webp';
import Ham_Steaks from '../Components/assets/Ham_Steaks.webp';
import Poached_Eggs from '../Components/assets/Poached_Eggs.webp';
import Seared_Salmon from '../Components/assets/Seared_Salmon.webp';
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'
Expand Down Expand Up @@ -85,7 +93,51 @@ const foodTypes = {
image: tacos,
price: 134.72,
description: "Traditional Mexican beef tacos are made with marinated sliced or shredded beef on soft corn tortillas." ,
},

// Signature dishes.

Poached_Eggs: {title: "Poached Eggs",
image: Poached_Eggs,
price: 134.72,
description: "Poached Eggs with Red Wine Sauce" ,
},
Garlicky_Braised_Lamb: {title: "Garlicky Braised Lamb",
image: Garlicky_Braised_Lamb,
price: 134.72,
description: "Garlick Braised Lamb Shank, Sweet Pepper" ,
},
Baked_Goat_Cheese: {title: "Baked Goat Cheese",
image: Baked_Goat_Cheese,
price: 134.72,
description: "Baked Goat Cheese Salad" ,
},
Seared_Salmon: {title: "Seared Salmon",
image: Seared_Salmon,
price: 134.72,
description: "Seared Salmon with Summer Vegetables" ,
},
Swordfish: {title: "Swordfish",
image: Swordfish,
price: 134.72,
description: "Swordfish Sicilian-Style" ,
},
Ham_Steaks: {title: "Ham Steaks",
image: Ham_Steaks,
price: 134.72,
description: "Ham Steaks in Madeira Sauce" ,
},
Spaghetti: {title: "Spaghetti",
image: Spaghetti,
price: 134.72,
description: "Spaghetti with Clams and Braised Greens" ,
},
Vegetable: {title: "Vegetable",
image: Vegetable,
price: 134.72,
description: "Vegetable Hot-and-Sour Soup" ,
}


};

Expand Down Expand Up @@ -128,7 +180,7 @@ const dessertS = {
French_Toast: {title: "French Toast",
image: French_Toast,
price: 115.88,
description: " white, whole wheat, brioche, cinnamon-raisin, Italian, or French! Delicious served hot with butter and maple syrup." ,
description: "white, whole wheat, brioche, cinnamon-raisin, Italian, or French! Delicious served hot with butter and maple syrup." ,
},
}

Expand Down Expand Up @@ -193,6 +245,32 @@ function MenuItem({foods}) {
)
}

function SignatureDish({foods}) {

return (
<div className="signatureDish-container">
<div>
<div className="signatureDish-info">
<div className="signatureDish-image">
<img src={foods.image} alt="food item image"></img>
</div>
<div className='signatureDish-img-des-info'>
<p className="signatureDish-description">{foods.description}</p>
<div className='priceAndTitle'>
<div className="signatureDish-price">
<h3>R{foods.price}</h3>
</div>
<div className='signatureDish-btn'>
<NavLink className='primary-btn' to="/about">Add To Cart</NavLink>
</div>
</div>
</div>
</div>
</div>
</div>
)
}

function DrinkItem({drinks}) {

return (
Expand Down Expand Up @@ -232,6 +310,17 @@ class Menu extends Component {
<main>
<Specials />
<div className='menu'>
<SectionHeader SectionHeader_text="Our Signature Dish Menu"/>
<div className='SignatureDish-menu'>
<SignatureDish foods={foodTypes.Baked_Goat_Cheese}/>
<SignatureDish foods={foodTypes.Garlicky_Braised_Lamb}/>
<SignatureDish foods={foodTypes.Ham_Steaks}/>
<SignatureDish foods={foodTypes.Poached_Eggs}/>
<SignatureDish foods={foodTypes.Seared_Salmon}/>
<SignatureDish foods={foodTypes.Spaghetti}/>
<SignatureDish foods={foodTypes.Swordfish}/>
<SignatureDish foods={foodTypes.Vegetable}/>
</div>
<SectionHeader SectionHeader_text="Traditional Menu"/>
<div className='traditional-menu'>
<MenuItem foods={foodTypes.Bunny_chow}/>
Expand Down

0 comments on commit 0fac165

Please sign in to comment.