From 5a2af4ef1cb24522981db1c8c00c9f4000d672f9 Mon Sep 17 00:00:00 2001 From: Jacob Delgado Date: Wed, 14 Aug 2024 11:57:10 -0700 Subject: [PATCH] changed numbers and card text layout --- frontend/public/batch1/files_list.json | 2 +- frontend/src/app/page.tsx | 1 + .../src/components/ui/MenuCard/MenuCard.tsx | 17 +++++++++-------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/frontend/public/batch1/files_list.json b/frontend/public/batch1/files_list.json index 82f9f07..8dbe018 100644 --- a/frontend/public/batch1/files_list.json +++ b/frontend/public/batch1/files_list.json @@ -15,7 +15,7 @@ "photo": "batch1/Mockup 134.jpg", "price": 25, "size": "Youth-S/M/L/2XL | Adult-S/M/L/2XL", - "inStock": "yes", + "inStock": "no", "favorite": "no", "description": "It's not an option.." }, diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 3adc04f..1f3e1a5 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -11,6 +11,7 @@ import { Poppins } from "next/font/google"; const Popp = Poppins({ weight: "400", subsets: ["latin"] }); +// improve to drag & drop side cart for more fun export default function Home() { const [isOpen, setIsOpen] = React.useState(false); diff --git a/frontend/src/components/ui/MenuCard/MenuCard.tsx b/frontend/src/components/ui/MenuCard/MenuCard.tsx index 0c3c3eb..0117d11 100644 --- a/frontend/src/components/ui/MenuCard/MenuCard.tsx +++ b/frontend/src/components/ui/MenuCard/MenuCard.tsx @@ -43,20 +43,21 @@ const MenuCard = ({ Menu }: any) => {
{/* title and description of item */} -
+
{/* title and photo */} -
+

- {menu_item.name} + {menu_item.id}

-
+
{menu_item.inStock === "yes" ? ( In Stock! ) : ( - Out of Stock + Out of Stock )} + {/* Check if item is a favorite */} {menu_item.favorite === "yes" ? ( {
{/* description text */} -
+ {/*

{menu_item.description}

-
+
*/}