Skip to content

Commit af68df0

Browse files
committed
Categories design changed
1 parent c5cef7b commit af68df0

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

public/categories.json

Whitespace-only changes.

src/Pages/Catagories/CatagoriesCard/CatagoriesCard.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1+
import { style } from "@mui/system";
12
import React from "react";
23
import { Link } from "react-router-dom";
34

4-
const CatagoriesCard = ({category}) => {
5-
6-
const {catagoriesCode,catagoriesDescription, catagoriesIcon, catagoriesName } = category
5+
const CatagoriesCard = ({ category }) => {
6+
const {
7+
catagoriesCode,
8+
catagoriesDescription,
9+
catagoriesIcon,
10+
catagoriesName,
11+
} = category;
712

813
return (
9-
<Link to={`/category/${category?._id}`}>
10-
<div className="rounded-xl bg-gradient-to-r text-center from-green-300 via-blue-500 to-primary p-0.5 shadow-xl transition hover:shadow-sm">
11-
<div className="rounded-[10px] bg-white p-4 !pt-10 sm:p-6">
12-
13-
<div>
14-
<img className="w-28 mx-auto" src={catagoriesIcon} alt="" />
15-
</div>
16-
<div>
17-
<h3 className="text-3xl font-semibold text-neutral">{catagoriesName}</h3>
18-
{/* <p className="text-">{catagoriesDescription}</p> */}
19-
</div>
20-
14+
<Link
15+
to={`/category/${category?._id}`}
16+
className="relative block overflow-hidden rounded-xl bg-cover bg-center bg-no-repeat"
17+
style={{ backgroundImage: `url(${catagoriesIcon})` }}
18+
>
19+
<div class="relative bg-black bg-opacity-40 p-8 pt-40 text-white">
20+
<h3 class="text-2xl font-bold">{catagoriesName}</h3>
2121

22-
</div>
22+
2323
</div>
2424
</Link>
2525
);

0 commit comments

Comments
 (0)