diff --git a/components/core/UserNav/UserNav.tsx b/components/core/UserNav/UserNav.tsx index 3a288fd87..812c2a413 100644 --- a/components/core/UserNav/UserNav.tsx +++ b/components/core/UserNav/UserNav.tsx @@ -16,8 +16,8 @@ const countItems = (count: number, items: any[]) => items.reduce(countItem, count) const UserNav: FC = ({ className }) => { - const { openSidebar, closeSidebar, displaySidebar } = useUI() const { data } = useCart() + const { openSidebar, closeSidebar, displaySidebar } = useUI() const itemsCount = Object.values(data?.line_items ?? {}).reduce(countItems, 0) return ( diff --git a/components/product/ProductCard/ProductCard.module.css b/components/product/ProductCard/ProductCard.module.css index f91c7873b..b8329a94f 100644 --- a/components/product/ProductCard/ProductCard.module.css +++ b/components/product/ProductCard/ProductCard.module.css @@ -66,8 +66,26 @@ } .productTitle { - @apply p-3 h-14 bg-primary text-base font-bold text-xl truncate leading-8 inline-flex; - max-width: calc(100% - 50px); + /* @apply p-3 h-14 bg-primary text-base font-bold text-xl truncate leading-8 inline-flex; */ + /* max-width: calc(100% - 50px); */ + line-height: 1.3; + padding: 2px 0; + border-left: 20px solid #c0c; + width: 400px; + margin: 20px auto; + + & h2 { + background-color: #c0c; + padding: 4px 0; + color: #fff; + display: inline; + margin: 0; + + & .strong { + position: relative; + left: -10px; + } + } @screen lg { @apply text-2xl; diff --git a/components/product/ProductCard/ProductCard.tsx b/components/product/ProductCard/ProductCard.tsx index 2effe27eb..2637b8a76 100644 --- a/components/product/ProductCard/ProductCard.tsx +++ b/components/product/ProductCard/ProductCard.tsx @@ -48,7 +48,11 @@ const ProductCard: FC = ({ className, node: p, variant }) => {
- {p.name} + +

+ {p.name} +

+
${p.prices.price.value}