mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 22:16:58 +00:00
tile merge
This commit is contained in:
parent
f8cb9be5af
commit
51431f7fa3
@ -33,7 +33,7 @@ const inter = Inter({
|
|||||||
export default async function RootLayout({ children }: { children: ReactNode }) {
|
export default async function RootLayout({ children }: { children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" className={inter.variable}>
|
<html lang="en" className={inter.variable}>
|
||||||
<body className="bg-gray-50 text-black selection:bg-teal-300 dark:bg-dark dark:text-white dark:selection:bg-fuchsia-600 dark:selection:text-white">
|
<body className="text-black bg-gray-50 selection:bg-teal-300 dark:bg-dark dark:text-white dark:selection:bg-fuchsia-600 dark:selection:text-white">
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<Suspense>
|
<Suspense>
|
||||||
<main>{children}</main>
|
<main>{children}</main>
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
import { getCollectionProducts } from 'lib/shopify';
|
import { getCollectionProducts } from 'lib/shopify';
|
||||||
import Image from 'next/image';
|
import Image from 'next/image';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
|
<<<<<<< HEAD
|
||||||
import Label from './label';
|
import Label from './label';
|
||||||
|
=======
|
||||||
|
import Price from './price';
|
||||||
|
>>>>>>> 27a839e (home page updated UI design)
|
||||||
|
|
||||||
export async function Carousel() {
|
export async function Carousel() {
|
||||||
// Collections that start with `hidden-*` are hidden from the search page.
|
// Collections that start with `hidden-*` are hidden from the search page.
|
||||||
@ -10,8 +14,8 @@ export async function Carousel() {
|
|||||||
if (!products?.length) return null;
|
if (!products?.length) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative w-full overflow-hidden pb-6">
|
<div className="relative w-full pb-6 overflow-hidden">
|
||||||
<div className="flex animate-carousel space-x-4">
|
<div className="flex space-x-4 animate-carousel">
|
||||||
{[...products, ...products].map((product, i) => (
|
{[...products, ...products].map((product, i) => (
|
||||||
<Link
|
<Link
|
||||||
key={`${product.handle}${i}`}
|
key={`${product.handle}${i}`}
|
||||||
@ -21,7 +25,7 @@ export async function Carousel() {
|
|||||||
{product.featuredImage ? (
|
{product.featuredImage ? (
|
||||||
<Image
|
<Image
|
||||||
alt={product.title}
|
alt={product.title}
|
||||||
className="h-full object-contain"
|
className="object-contain h-full"
|
||||||
fill
|
fill
|
||||||
sizes="33vw"
|
sizes="33vw"
|
||||||
src={product.featuredImage.url}
|
src={product.featuredImage.url}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user