Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix los mas vendidos #157

Merged
merged 2 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { brands } from '~/mockData/mockBrands';
import { TopSellers } from '~/components/containerCards/containerCards';
import { createIconsTypes } from '~/utils/createIcons';
import { ContainerPage } from './container_page';
import CategoryCategory from '~/components/containerCards/containerCardsCategoty';
// import CategoryCategory from '~/components/containerCards/containerCardsCategoty';
// import { category } from '~/mockData/mockCategory';
import BrandCategory from '~/components/containerCards/containerCardsBrands';
import PaymentMethodsList from '~/components/paymentMethod/paymentMethodsList';
Expand All @@ -17,8 +17,8 @@ export default function Home() {
return (
<ContainerPage header={<MainCarousel />}>
{/* <CategoryCategory category={category} /> */}
<BrandCarrousel />
<TopSellers />
<BrandCarrousel />
<BrandCategory brand={brands} />
<Banner />
<ReviewsContainer reviwes={reviews} />
Expand Down
10 changes: 5 additions & 5 deletions src/components/cards/ProductCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ export function ProductCard({
const [favorite, setFavorite] = useState(false);
const handleFavorite = () => setFavorite((cur) => !cur);
return (
<div className="p-6 shadow-md hover:shadow-xl rounded-md overflow-hidden bg-white w-[250px] min-h-[330px] relative space-y-3">
<div className="px-10 py-6 shadow-md hover:shadow-xl rounded-md overflow-hidden bg-white w-[270px] min-h-[415px] relative space-y-3 dark:text-text-lm">
<Image
src={imageSrc}
alt="Cubre Volante"
width={245}
height={154}
className="w-[200px] h-[200px]"
width={500}
height={500}
className="w-full aspect-square"
/>
<div>
<h3 className="font-semibold mb-2 line-clamp-3">{title}</h3>
Expand All @@ -41,7 +41,7 @@ export function ProductCard({
</div>
<button
onClick={handleFavorite}
className="group absolute right-2 top-0 w-8 aspect-square rounded-full bg-white p-0.5 grid place-content-center"
className="group absolute right-1 top-1 w-8 aspect-square rounded-full p-0.5 grid place-content-center"
>
<Heart
className={
Expand Down