Created
June 4, 2023 13:29
-
-
Save popeating/673218dcd87c354402612bb361b0b542 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Header from './components/Header'; | |
import { products } from '../lib/products'; | |
import Product from './components/Product'; | |
export default function Home() { | |
console.log(products); | |
return ( | |
<> | |
<Header /> | |
<div className="container mx-auto pt-4"> | |
<div className="pb-4">PRODUCTS</div> | |
<div className="grid grid-cols-1 gap-y-10 sm:grid-cols-2 gap-x-6 lg:grid-cols-3 xl:grid-cols-4 xl:gap-x-8"> | |
{products.map((product, i) => ( | |
<Product key={product.id} product={product} /> | |
))} | |
</div> | |
</div> | |
</> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment