Skip to content

Commit

Permalink
UI/UX complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Satyabrat-Ojha committed May 7, 2023
1 parent bf6beab commit 6c8da63
Show file tree
Hide file tree
Showing 10 changed files with 210 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pages/cart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Cart = () => {
<div className={styles.left}>
<table className={styles.table}>
<tbody>
<tr className={styles.tr}>
<tr className={styles.trTitle}>
<th>Product</th>
<th>Name</th>
<th>Extras</th>
Expand Down
4 changes: 2 additions & 2 deletions pages/orders/[id].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ const Order = () => {
<div className={styles.row}>
<table className={styles.table}>
<tbody>
<tr>
<tr className={styles.trTitle}>
<th>Order ID</th>
<th>Customer</th>
<th>Address</th>
<th>Total</th>
</tr>
<tr>
<tr className={styles.tr}>
<td>
<span className={styles.id}>36270086720</span>
</td>
Expand Down
55 changes: 55 additions & 0 deletions styles/Cart.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,58 @@
cursor: pointer;
margin-top: 20px;
}

@media screen and (max-width: 480px) {
.container {
flex-direction: column;
padding: 20px;
}

.table {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.trTitle {
display: none;
}

.tr {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 20px;
}

.imgContainer {
width: 35vw;
height: 35vw;
}

.name,
.total {
font-size: 24px;
}

.extras,
.price,
.quantity {
font-size: 22px;
}

.price::before {
content: "Price: ";
font-weight: 500;
}
.quantity::before {
content: "Quantity: ";
font-weight: 500;
}
.total::before {
content: "Total: ";
font-weight: 500;
}
}
9 changes: 8 additions & 1 deletion styles/Featured.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.container {
height: calc(100vh - 100px);
background-color: #d1411e;
overflow-x: hidden;
overflow: hidden;
position: relative;
}

.arrowContainer {
Expand All @@ -27,3 +28,9 @@
height: 100%;
position: relative;
}

@media screen and (max-width: 480px) {
.container {
height: 40vh;
}
}
19 changes: 19 additions & 0 deletions styles/Footer.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,22 @@
.motto {
color: rgb(211, 211, 211);
}

@media screen and (max-width: 480px) {
.container {
height: auto;
text-align: center;
}

.item:first-child {
display: none;
}

.item {
flex-direction: column;
}

.title {
font-size: 30px;
}
}
9 changes: 9 additions & 0 deletions styles/Navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,12 @@
font-weight: bold;
color: #d1411e;
}

@media screen and (max-width: 480px) {
.item:nth-child(1) {
flex: 3;
}
.item:nth-child(2) {
display: none;
}
}
52 changes: 52 additions & 0 deletions styles/Order.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,55 @@
margin-top: 20px;
border: none;
}

@media screen and (max-width: 480px) {
.container {
flex-direction: column;
}

.trTitle {
display: none;
}

.tr {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 20px;
}

.id::before {
content: "Order ID: ";
font-weight: 500;
}
.name::before {
content: "Customer: ";
font-weight: 500;
}
.address::before {
content: "Address: ";
font-weight: 500;
}
.total::before {
content: "Total: ";
font-weight: 500;
}

.row:last-child {
width: 100%;
flex-direction: column;
align-items: center;
justify-content: center;
}

.done,
.undone,
.inProgress {
margin-bottom: 20px;
}

.wrapper {
width: 100%;
}
}
15 changes: 15 additions & 0 deletions styles/PizzaCard.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@
text-align: center;
color: #777;
}

@media screen and (max-width: 480px) {
.container {
width: 100%;
}

.title {
font-size: 30px;
}

.price,
.desc {
font-size: 24px;
}
}
11 changes: 11 additions & 0 deletions styles/PizzaList.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,14 @@
justify-content: center;
flex-wrap: wrap;
}

@media screen and (max-width: 480px) {
.title {
text-align: center;
}

.desc {
width: 90%;
text-align: center;
}
}
38 changes: 38 additions & 0 deletions styles/Product.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,41 @@
font-weight: 500;
cursor: pointer;
}

@media screen and (max-width: 480px) {
.container {
height: auto;
text-align: center;
flex-direction: column;
margin-top: 30px;
}

.imgContainer {
width: 70vw;
height: 70vw;
}

.title {
margin: 5px;
}

.sizes {
width: 100%;
padding: 0 20px;
}

.ingredients {
flex-direction: column;
}

.option {
margin: 10px;
font-size: 18px;
}

.quantity,
.button {
padding: 10px;
height: 50px;
}
}

0 comments on commit 6c8da63

Please sign in to comment.