Implement Shopify Provider

This commit is contained in:
cond0r
2021-02-04 13:23:44 +02:00
parent c06d9dae3a
commit 14c3f961b3
61 changed files with 16405 additions and 20 deletions

View File

@@ -122,7 +122,7 @@ const CartSidebarView: FC = () => {
<span>{total}</span>
</div>
</div>
<Button href="/checkout" Component="a" width="100%">
<Button href={data.webUrl} Component="a" width="100%">
Proceed to Checkout
</Button>
</div>

View File

@@ -19,7 +19,7 @@ const Head: FC<Props> = ({ categories, brands, products = [] }) => {
<ul className="mb-10">
<li className="py-1 text-base font-bold tracking-wide">
<Link href={getCategoryPath('')}>
<a>All Categories</a>
<a>All Collections</a>
</Link>
</li>
{categories.map((cat: any) => (
@@ -30,20 +30,6 @@ const Head: FC<Props> = ({ categories, brands, products = [] }) => {
</li>
))}
</ul>
<ul className="">
<li className="py-1 text-base font-bold tracking-wide">
<Link href={getDesignerPath('')}>
<a>All Designers</a>
</Link>
</li>
{brands.flatMap(({ node }: any) => (
<li key={node.path} className="py-1 text-accents-8 text-base">
<Link href={getDesignerPath(node.path)}>
<a>{node.name}</a>
</Link>
</li>
))}
</ul>
</div>
</div>
<div className="flex-1">

View File

@@ -25,6 +25,9 @@ const Navbar: FC = () => (
<Link href="/search?q=accessories">
<a className={s.link}>Accessories</a>
</Link>
<Link href="/search?q=shoes">
<a className={s.link}>Shoes</a>
</Link>
</nav>
</div>

View File

@@ -132,5 +132,5 @@
}
.productImage {
@apply transform transition-transform duration-500 object-cover scale-120;
@apply transform transition-transform duration-500 object-cover;
}