-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathShoppingPage.tsx
35 lines (32 loc) · 945 Bytes
/
ShoppingPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { ProductButtons, ProductCard, ProductImage, ProductTitle } from "../components"
const product = {
id: '1',
title: 'Coffee Mug - Card',
img: './coffee-mug.png'
}
export const ShoppindPage = () =>{
return (
<div>
<h1>Shoppieng Page</h1>
<hr/>
<div
style={{
display: 'flex',
flexDirection: 'row',
flexWrap: 'wrap'
}}
>
<ProductCard product={product}>
<ProductCard.Image/>
<ProductCard.Title/>
<ProductCard.Buttons/>
</ProductCard>
<ProductCard product={product}>
<ProductImage/>
<ProductTitle title="Hola mundo"/>
<ProductButtons/>
</ProductCard>
</div>
</div>
)
}