Skip to content

Commit

Permalink
starting Meals Comp
Browse files Browse the repository at this point in the history
  • Loading branch information
HMP1993 committed Dec 30, 2022
1 parent 07e7e20 commit c4cdb1b
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/components/Meals/AvailableMeals.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import React from 'react'


const DUMMY_MEALS = [
{
id: "m1",
name: "Sushi",
description: "Finest fish and veggies",
price: 22.99,
},
{
id: "m2",
name: "Schnitzel",
description: "A german specialty!",
price: 16.5,
},
{
id: "m3",
name: "Barbecue Burger",
description: "American, raw, meaty",
price: 12.99,
},
{
id: "m4",
name: "Green Bowl",
description: "Healthy...and green...",
price: 18.99,
},
];
const AvailableMeals = () => {
return (
<section>

</section>
)
}

export default AvailableMeals
Empty file.
9 changes: 9 additions & 0 deletions src/components/Meals/Meals.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const Meals = props => {
return (
<div>Meals</div>
)
}

export default Meals
19 changes: 19 additions & 0 deletions src/components/Meals/MealsSummary.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import classes from "./MealsSummary.module.css";

const MealsSummary = () => {
return (
<section className={classes.summary}>
<h2>Delicious Food, Delivered To You</h2>
<p>
Choose your favorite meal from our broad selection of available meals
and enjoy a delicious lunch or dinner at home.
</p>
<p>
All our meals are cooked with high-quality ingredients, just-in-time and
of course by experienced chefs!
</p>
</section>
);
};

export default MealsSummary;
18 changes: 18 additions & 0 deletions src/components/Meals/MealsSummary.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.summary {
text-align: center;
max-width: 45rem;
width: 90%;
margin: auto;
margin-top: -10rem;
position: relative;
background-color: #383838;
color: white;
border-radius: 14px;
padding: 1rem;
box-shadow: 0 1px 18px 10px rgba(0, 0, 0, 0.25);
}

.summary h2 {
font-size: 2rem;
margin-top: 0;
}

0 comments on commit c4cdb1b

Please sign in to comment.