Skip to content

Commit 72f584e

Browse files
committed
UI IMprovements
Changes with respect to issue Anandsg#292
1 parent b8470f1 commit 72f584e

File tree

3 files changed

+7554
-7531
lines changed

3 files changed

+7554
-7531
lines changed

src/components/RestruarantCards.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@ const RestruarantCards = (props) => {
1717
aggregatedDiscountInfo,
1818
} = resData;
1919
return (
20-
<div className="overflow-hidden shadow-md md:shadow-none py-4 px-4 md:py-2 hover:shadow-xl rounded flex flex-col gap-1 text-[0.7rem] text-[#535665] ">
21-
<Link to={"/restaurants/" + id}>
20+
<Link
21+
className="shadow-md md:shadow-none hover:shadow-xl ease-in duration-200 rounded"
22+
to={"/restaurants/" + id}
23+
>
24+
<div className="overflow-hidden py-4 px-4 md:py-2 flex flex-col gap-1 text-[0.7rem] text-[#535665] ">
2225
<div className="relative">
2326
<img
2427
src={
@@ -82,8 +85,8 @@ const RestruarantCards = (props) => {
8285
</span>
8386
</div>
8487
</div>
85-
</Link>
86-
</div>
88+
</div>
89+
</Link>
8790
);
8891
};
8992

src/components/ScrollToTop.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const ScrollToTop = () => {
4040
onClick={scrollToTop}
4141
style={{ display: isVisible ? "block" : "none" }}
4242
>
43-
<div className="w-10 h-10 rounded-full relative cursor-pointer">
43+
<div className="w-10 h-10 rounded-full relative cursor-pointer hover:shadow-xl ease-in duration-200 hover:scale-105">
4444
<div
4545
className="w-full h-full rounded-full"
4646
style={{
@@ -58,6 +58,3 @@ const ScrollToTop = () => {
5858
};
5959

6060
export default ScrollToTop;
61-
62-
63-

0 commit comments

Comments
 (0)