Skip to content

Commit

Permalink
Merge pull request #25 from canopas/change-menus-flow
Browse files Browse the repository at this point in the history
Refactor restaurants categories UI
  • Loading branch information
cp-dharti-r authored Jun 3, 2024
2 parents f455133 + 85db02c commit e4a1e50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion website/pages/category/[category].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const Category = ({
<SectionTitle
title={categoryData.name}
paragraph={categoryData.description}
customClass={`mx-auto mb-16 mt-20 ${
customClass={`mx-auto mb-10 sm:mb-16 mt-20 ${
!isPageReset ? "animated-fade-y" : ""
}`}
/>
Expand Down
12 changes: 5 additions & 7 deletions website/pages/category/restaurant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const Restaurant = ({
return (
<>
{restaurantsData && restaurantsData.length > 0 ? (
<div className="mt-12 flex flex-col gap-5">
<p className="text-2xl font-bold">Restaurants to explore</p>
<div className="h-full flex flex-col gap-12 sm:gap-20">
<div className="flex flex-col gap-5">
<p className="text-3xl font-bold sm:mb-5">Restaurants to explore</p>
<div className="h-full flex flex-col gap-12 sm:gap-24">
{restaurantsData.map((item, index) => (
<div key={"explore-restaurant-" + index}>
<Swiper
Expand Down Expand Up @@ -91,9 +91,7 @@ const Restaurant = ({
>
<Image
src={data.image}
className={`h-96 object-cover rounded-2xl ${
item.menu.length > 1 ? "w-96" : "w-full"
}`}
className="h-96 w-96 object-cover rounded-2xl"
alt="item-image"
height={100}
width={100}
Expand All @@ -120,7 +118,7 @@ const Restaurant = ({
!isPageReset ? "animated-fade-y" : ""
}`}
>
<p className="w-full bg-black bg-opacity-50 py-2 pl-5 font-extrabold capitalize text-white dark:border-white sm:text-2xl">
<p className="w-full rounded-b-2xl bg-black bg-opacity-50 py-2 pl-5 font-extrabold capitalize text-white dark:border-white sm:text-xl">
{data.name}
</p>
</div>
Expand Down

0 comments on commit e4a1e50

Please sign in to comment.