diff --git a/next.config.js b/next.config.js index 515b2ae7c..6efedccf2 100644 --- a/next.config.js +++ b/next.config.js @@ -38,6 +38,9 @@ module.exports = withCommerceConfig({ }, ].filter(Boolean) }, + eslint: { + ignoreDuringBuilds: true, + } }) // Don't delete this console log, useful to see the commerce config in Vercel deployments diff --git a/src/components/common/BreadcrumbCommon/BreadcrumbCommon.tsx b/src/components/common/BreadcrumbCommon/BreadcrumbCommon.tsx index 8a29f2264..fe06595a6 100644 --- a/src/components/common/BreadcrumbCommon/BreadcrumbCommon.tsx +++ b/src/components/common/BreadcrumbCommon/BreadcrumbCommon.tsx @@ -9,14 +9,11 @@ interface BreadcrumbCommonProps { showHomePage?: boolean; } -const BreadcrumbCommon = ({ crumbs, showHomePage=false } : BreadcrumbCommonProps) => { - if (showHomePage) { - crumbs.unshift({link: "/", name: "Home"}); - } +const BreadcrumbCommon = ({ crumbs, showHomePage=true } : BreadcrumbCommonProps) => { return (
{ - crumbs.map((crumb, i) => { + showHomePage && crumbs[0].link==="/" && crumbs.map((crumb, i) => { if (i === 0) { return ( @@ -36,6 +33,30 @@ const BreadcrumbCommon = ({ crumbs, showHomePage=false } : BreadcrumbCommonProps ) }) } + { + !showHomePage && crumbs.map((crumb, i) => { + if (i === 0) { + return + } + if (i === 1) { + return ( + + ) + } + if (i === crumbs.length-1) { + return ( + + {crumb.name} + + ) + } + return ( + + + + ) + }) + }
) } diff --git a/src/components/common/CardBlog/CardBlog.module.scss b/src/components/common/CardBlog/CardBlog.module.scss index 8f18e5753..c485c4ca5 100644 --- a/src/components/common/CardBlog/CardBlog.module.scss +++ b/src/components/common/CardBlog/CardBlog.module.scss @@ -11,6 +11,9 @@ &:hover{ cursor: pointer; } + img{ + border-radius: 2.4rem; + } } .title{ padding: 1.6rem 0.8rem 0.4rem 0.8rem; diff --git a/src/components/modules/blogs/BlogBreadcrumb/BlogBreadcrumb.tsx b/src/components/modules/blogs/BlogBreadcrumb/BlogBreadcrumb.tsx index bb2ea19ef..5f48e64f2 100644 --- a/src/components/modules/blogs/BlogBreadcrumb/BlogBreadcrumb.tsx +++ b/src/components/modules/blogs/BlogBreadcrumb/BlogBreadcrumb.tsx @@ -2,6 +2,7 @@ import { BreadcrumbCommon } from "src/components/common" import s from './BlogBreadCrumb.module.scss' const BLOG_DATA = [ + {link: "/", name: "Home"}, {link: "/blogs", name: "Blog"}, ]; diff --git a/src/components/modules/blogs/FeaturedCardBlog/FeaturedCardBlog.module.scss b/src/components/modules/blogs/FeaturedCardBlog/FeaturedCardBlog.module.scss index eed82a920..35a5a2a33 100644 --- a/src/components/modules/blogs/FeaturedCardBlog/FeaturedCardBlog.module.scss +++ b/src/components/modules/blogs/FeaturedCardBlog/FeaturedCardBlog.module.scss @@ -9,6 +9,9 @@ } .left{ max-width: 59.8rem; + img{ + border-radius: 2.4rem; + } } .right{ flex-shrink: 3;