diff --git a/.env.example b/.env.example index dc6582eb5..75213ad42 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,4 @@ +COMPANY_NAME="Vercel Inc." TWITTER_CREATOR="@vercel" TWITTER_SITE="https://nextjs.org/commerce" SITE_NAME="Next.js Commerce" diff --git a/README.md b/README.md index bc43e9428..9233751aa 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fcommerce&project-name=commerce&repo-name=commerce&demo-title=Next.js%20Commerce&demo-url=https%3A%2F%2Fdemo.vercel.store&demo-image=https%3A%2F%2Fbigcommerce-demo-asset-ksvtgfvnd.vercel.app%2Fbigcommerce.png&env=SHOPIFY_REVALIDATION_SECRET,SHOPIFY_STOREFRONT_ACCESS_TOKEN,SHOPIFY_STORE_DOMAIN,SITE_NAME,TWITTER_CREATOR,TWITTER_SITE) +[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fcommerce&project-name=commerce&repo-name=commerce&demo-title=Next.js%20Commerce&demo-url=https%3A%2F%2Fdemo.vercel.store&demo-image=https%3A%2F%2Fbigcommerce-demo-asset-ksvtgfvnd.vercel.app%2Fbigcommerce.png&env=COMPANY_NAME,SHOPIFY_REVALIDATION_SECRET,SHOPIFY_STORE_DOMAIN,SHOPIFY_STOREFRONT_ACCESS_TOKEN,SITE_NAME,TWITTER_CREATOR,TWITTER_SITE) # Next.js Commerce diff --git a/components/grid/tile.tsx b/components/grid/tile.tsx index 5ee714a2b..f46b944d3 100644 --- a/components/grid/tile.tsx +++ b/components/grid/tile.tsx @@ -36,7 +36,6 @@ export function GridTileImage({ 'transition duration-300 ease-in-out hover:scale-105': isInteractive })} {...props} - alt={props.title || ''} /> ) : null} {labels ? ( diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index 55b83125d..e28947b99 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -6,17 +6,18 @@ import LogoSquare from 'components/logo-square'; import { getMenu } from 'lib/shopify'; import { Suspense } from 'react'; -const { SITE_NAME } = process.env; +const { COMPANY_NAME, SITE_NAME } = process.env; export default async function Footer() { const currentYear = new Date().getFullYear(); const copyrightDate = 2023 + (currentYear > 2023 ? `-${currentYear}` : ''); const skeleton = 'w-full h-6 animate-pulse rounded bg-neutral-200 dark:bg-neutral-700'; const menu = await getMenu('next-js-frontend-footer-menu'); + const copyrightName = COMPANY_NAME || SITE_NAME || ''; return (