big commerce logo

This commit is contained in:
Guillaume Bibeau-Laviolette 2022-06-06 14:24:32 -04:00
parent 4f71b2f017
commit 00b3663a6d
4 changed files with 26 additions and 1 deletions

View File

@ -0,0 +1,6 @@
import type { Brand } from '@vercel/commerce/types'
import { Logo } from './logo'
export const brand: Brand.Config = {
Logo,
}

View File

@ -0,0 +1,15 @@
export const Logo = ({ className = '', ...props }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={32}
height={32}
fill="#fff"
className={className}
viewBox="0 0 75 75"
{...props}
>
<path d="M33.72 36.432h8.073c2.296 0 3.75-1.263 3.75-3.3 0-1.913-1.454-3.3-3.75-3.3H33.72c-.268 0-.497.23-.497.46v5.663c.038.268.23.46.497.46zm0 13.048h8.34c2.564 0 4.094-1.3 4.094-3.597 0-2-1.454-3.597-4.094-3.597h-8.34c-.268 0-.497.23-.497.46v6.237c.038.306.23.497.497.497zM63.257.16l-23.875 23.8h3.903c6.084 0 9.68 3.826 9.68 7.997 0 3.3-2.22 5.7-4.6 6.772-.383.153-.383.7.038.842 2.755 1.07 4.706 3.94 4.706 7.308 0 4.744-3.176 8.532-9.336 8.532H26.87c-.268 0-.497-.23-.497-.46V36.93L.164 63.023c-.344.344-.115.957.383.957h63.016c.23 0 .42-.2.42-.42V.505c.115-.42-.42-.65-.727-.344z" />
</svg>
)
}

View File

@ -1,3 +1,5 @@
import { brand } from './brand'
import { handler as useCart } from './cart/use-cart'
import { handler as useAddItem } from './cart/use-add-item'
import { handler as useUpdateItem } from './cart/use-update-item'
@ -18,6 +20,7 @@ import fetcher from './fetcher'
export const bigcommerceProvider = {
locale: 'en-us',
brand,
cartCookie: 'bc_cartId',
fetcher,
cart: { useCart, useAddItem, useUpdateItem, useRemoveItem },

View File

@ -4,9 +4,10 @@ export const Logo = ({ className = '', ...props }) => (
width={32}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 89 101"
{...props}
>
<path
fill="var(--primary)"
fill="#fff"
d="M63.305 100.258l25.313-6.29S77.719 20.285 77.65 19.779c-.07-.505-.511-.786-.878-.816-.364-.03-7.49-.14-7.49-.14s-4.344-4.218-5.977-5.815v87.25zM60.55 12.167l-2.994.927a20.986 20.986 0 00-1.433-3.521c-2.122-4.05-5.23-6.191-8.985-6.197h-.014c-.261 0-.52.025-.78.048a11.357 11.357 0 00-.34-.392C44.37 1.282 42.273.43 39.76.505c-4.85.138-9.68 3.64-13.596 9.862-2.755 4.377-4.852 9.876-5.446 14.134-5.568 1.724-9.462 2.93-9.548 2.958-2.811.883-2.9.969-3.267 3.619C7.627 33.08.273 89.947.273 89.947L61.289 100.5V12.042c-.3.02-.57.075-.74.125zM46.46 16.53l-10.29 3.185c.994-3.807 2.88-7.598 5.197-10.084.86-.925 2.066-1.955 3.494-2.544 1.34 2.8 1.633 6.763 1.6 9.443zM39.853 3.732c1.139-.025 2.097.225 2.916.764-1.31.68-2.577 1.658-3.766 2.932-3.08 3.305-5.44 8.435-6.382 13.384-2.936.909-5.808 1.8-8.452 2.617 1.67-7.79 8.199-19.48 15.684-19.697zM30.418 48.11c.328 5.19 13.984 6.324 14.75 18.483.603 9.565-5.073 16.109-13.253 16.625-9.818.62-15.222-5.174-15.222-5.174l2.08-8.851s5.44 4.105 9.796 3.83c2.844-.18 3.86-2.494 3.757-4.13-.427-6.771-11.548-6.371-12.25-17.497-.592-9.363 5.557-18.85 19.124-19.706 5.227-.33 7.905 1.006 7.905 1.006l-3.103 11.606s-3.46-1.575-7.562-1.316c-6.019.38-6.083 4.174-6.022 5.124zm19.267-32.578c-.036-2.455-.328-5.872-1.472-8.824 3.68.697 5.49 4.86 6.257 7.343-1.42.437-3.036.936-4.785 1.48z"
/>
</svg>