Skip to content

Commit

Permalink
ReFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-Raza764 committed Apr 16, 2024
1 parent 62d033c commit 4f42397
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/(root)/about/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const About = () => {
"h-[12rem] w-[25%] border border-gray-400 rounded-md p-3 " +
item.style
}
key={item.stat}
>
<div className="flex flex-col items-center gap-4">
<div className="icon p-2 rounded-full bg-gray-400">
Expand Down
6 changes: 5 additions & 1 deletion components/feed/CategorySideBar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ const CategorySideBar = ({ children }) => {
<div className="flex items-center w-full py-4">
<div className="w-1/5 border-r border-gray-500 hidden md:flex flex-col md:py-8 gap-y-2">
{categories.map((category) => (
<CategoryItem name={category.name} link={category.link} />
<CategoryItem
name={category.name}
link={category.link}
key={categories.name}
/>
))}
</div>
<div className="w-full flex items-center justify-center">{children}</div>
Expand Down
4 changes: 2 additions & 2 deletions components/feed/ItemsCarousel/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Carousel from "./Carousel";

const index = ({ children, title, text }) => {
const index = ({ children, title, text }) => {
return (
<div className="w-full h-max flex flex-col gap-y-3 relative">
<div className="title text-red-500 font-bold text-xl flex items-center gap-x-3">
Expand All @@ -11,7 +11,7 @@ const index = ({ children, title, text }) => {
<h2 className="text-3xl md:text-4xl font-bold">{text}</h2>
</div>

<Carousel children={children} />
<Carousel>{children}</Carousel>
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion components/feed/OurSpeciality/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const OurSpeciality = () => {
<div className="services flex flex-col md:flex-row items-center justify-center w-full md:px-12 px-3 my-8">
{servicesData.map((item) => {
return (
<div className="md:h-[12rem] w-full md:w-[30%] rounded-md p-3 flex items-center flex-col justify-center text-center gap-3">
<div className="md:h-[12rem] w-full md:w-[30%] rounded-md p-3 flex items-center flex-col justify-center text-center gap-3" key={item.title}>
<div className="icon p-2 rounded-full bg-gray-400 w-max">
<div className="p-2 rounded-full bg-black">
<item.icon size={35} className="text-white bg-transparent" />
Expand Down

0 comments on commit 4f42397

Please sign in to comment.