-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #749 from IkkiOcean/agro-shop-frontend
Implemented Dynamic Banner loading at Category Page and Improved Homepage Responsiveness
- Loading branch information
Showing
5 changed files
with
80 additions
and
55 deletions.
There are no files selected for viewing
39 changes: 17 additions & 22 deletions
39
frontend/src/AgroShopAI/components/BottomCardContainer.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
import DisplayCard from "./DisplayCard"; | ||
|
||
const BottomCardContainer = ({items,text}) => { | ||
return ( | ||
<div className="h-fit w-full pr-2 bg-white mx-2 mt-4"> | ||
<div className="border-b-2 bg-green-200 border-green-600"> | ||
|
||
<h1 className="font-semibold py-1 ml-8 text-2xl text-black text-center">{text}</h1> | ||
</div> | ||
<div className="grid grid-cols-4 gap-4 p-6 mt-2 bg-green-100"> | ||
{items.slice(0, 12).map((item, index) => { // Calculate savings | ||
return ( | ||
<div className="justify-center mx-auto" key={index}> | ||
|
||
<DisplayCard item= {item}/> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
const BottomCardContainer = ({ items, text }) => { | ||
return ( | ||
<div className="h-fit w-full pr-2 bg-white mx-2 mt-4"> | ||
<div className="border-b-2 bg-green-200 border-green-600"> | ||
<h1 className="font-semibold py-1 ml-8 text-2xl text-black text-center">{text}</h1> | ||
</div> | ||
<div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4 p-6 mt-2 bg-green-100"> | ||
{items.slice(0, 12).map((item, index) => ( | ||
<div className="justify-center mx-auto" key={index}> | ||
<DisplayCard item={item} /> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
}; | ||
export default BottomCardContainer; | ||
</div> | ||
); | ||
}; | ||
|
||
export default BottomCardContainer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters