From 776b1f2229d5b8901c170b4540149811d57baa06 Mon Sep 17 00:00:00 2001 From: DiksonIvySon <120308018+DiksonIvySon@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:09:00 +0300 Subject: [PATCH] Made some styling changes for responsive design. --- src/App.css | 43 +++++++++++++++++++++----------------- src/Components/specials.js | 8 +------ src/Pages/menu.js | 2 +- 3 files changed, 26 insertions(+), 27 deletions(-) diff --git a/src/App.css b/src/App.css index 47de665..dc8eb76 100644 --- a/src/App.css +++ b/src/App.css @@ -259,19 +259,22 @@ img { .main-tittle h1 { font-size: 20pt; + font-family: 'Times New Roman', Times, serif; } .card { - width: 370px; - height: 360px; - background-color: #EDEFEE; + min-width: 310px; + max-width: 500px; + height: 400px; + background-color: #495E57; border-radius: 15px 15px 0px 0px ; margin-bottom: 20px; + flex: 1; } .card-image { - width: 370px; - height: 220px; + width: 100%; + height: 240px; border-radius: 15px 15px 0px 0px; } @@ -292,7 +295,7 @@ img { .card-tittle h4 { font-size: 20px; - margin: 5px 0px; + margin: 5px 10px; } .card .card-price { @@ -300,15 +303,10 @@ img { } .card .card-description { - margin: 10px; + margin: 10px 20px; font-size: 11pt; } -.card .card-delivery { - margin: 10px; - padding-bottom: 10px; -} - .card .card-delivery:hover { color: #F4CE14; cursor: pointer; @@ -316,7 +314,7 @@ img { .food-card { display: flex; - justify-content: space-between; + justify-content: space-around; flex-wrap: wrap; gap: 30px; } @@ -328,6 +326,7 @@ img { /* Styling the food menu */ .foodItem-container { max-width: 500px; + min-width: 300px; margin: 10px; border: 2px solid burlywood; border-radius: 20px; @@ -383,7 +382,7 @@ img { } .foodItem-description { - width: 300px; + max-width: 300px; margin: 0; } @@ -402,8 +401,9 @@ img { .menu .traditional-menu { margin: 40px auto; max-width: 1100px; - display: grid; - grid-template-columns: 1fr 1fr; + display: flex; + justify-content: center; + flex-wrap: wrap; } .menu h2 { @@ -414,11 +414,15 @@ img { .dessertsAndBreakfast { margin: 40px auto; + min-width: 300px; max-width: 1100px; - display: grid; - grid-template-columns: 1fr 1fr; + display: flex; + justify-content: center; + flex-wrap: wrap; } + + /**/ .signatureDish-container { max-width: 300px; @@ -468,7 +472,8 @@ img { } .menu .SignatureDish-menu { - margin: 40px 0px 80px 0px; + margin-top: 40px; + margin-bottom: 80px; display: flex; justify-content: space-around; flex-wrap: wrap; diff --git a/src/Components/specials.js b/src/Components/specials.js index 143b4f7..3d91530 100644 --- a/src/Components/specials.js +++ b/src/Components/specials.js @@ -40,7 +40,6 @@ function FoodCard({foods}) {
{foods.description}
- {/*+
Please note that alcohol drinks are only available on seat in and no online orders.