Adding Assets
@ -12,9 +12,10 @@ import {
|
|||||||
|
|
||||||
interface ProductSidebarProps {
|
interface ProductSidebarProps {
|
||||||
product: Product
|
product: Product
|
||||||
|
className?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const ProductSidebar: FC<ProductSidebarProps> = ({ product }) => {
|
const ProductSidebar: FC<ProductSidebarProps> = ({ product, className }) => {
|
||||||
const addItem = useAddItem()
|
const addItem = useAddItem()
|
||||||
const { openSidebar } = useUI()
|
const { openSidebar } = useUI()
|
||||||
const [loading, setLoading] = useState(false)
|
const [loading, setLoading] = useState(false)
|
||||||
@ -40,7 +41,7 @@ const ProductSidebar: FC<ProductSidebarProps> = ({ product }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<div className={className}>
|
||||||
<ProductOptions
|
<ProductOptions
|
||||||
options={product.options}
|
options={product.options}
|
||||||
selectedOptions={selectedOptions}
|
selectedOptions={selectedOptions}
|
||||||
@ -51,7 +52,7 @@ const ProductSidebar: FC<ProductSidebarProps> = ({ product }) => {
|
|||||||
html={product.descriptionHtml || product.description}
|
html={product.descriptionHtml || product.description}
|
||||||
/>
|
/>
|
||||||
<div className="flex flex-row justify-between items-center">
|
<div className="flex flex-row justify-between items-center">
|
||||||
<Rating value={2} />
|
<Rating value={4} />
|
||||||
<div className="text-accent-6 pr-1 font-medium text-sm">36 reviews</div>
|
<div className="text-accent-6 pr-1 font-medium text-sm">36 reviews</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -79,7 +80,7 @@ const ProductSidebar: FC<ProductSidebarProps> = ({ product }) => {
|
|||||||
to COVID-19.
|
to COVID-19.
|
||||||
</Collapse>
|
</Collapse>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,9 +77,8 @@ const ProductView: FC<ProductViewProps> = ({ product, relatedProducts }) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={s.sidebar}>
|
|
||||||
<ProductSidebar product={product} />
|
<ProductSidebar product={product} className={s.sidebar} />
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<hr className="mt-7 border-accent-2" />
|
<hr className="mt-7 border-accent-2" />
|
||||||
<section className="py-12 px-6 mb-10">
|
<section className="py-12 px-6 mb-10">
|
||||||
|
BIN
public/assets/beanie-4.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
public/assets/bomber-jacket-0.png
Normal file
After Width: | Height: | Size: 568 KiB |
BIN
public/assets/bomber-jacket-1.png
Normal file
After Width: | Height: | Size: 896 KiB |
BIN
public/assets/drop-shirt-0.png
Normal file
After Width: | Height: | Size: 280 KiB |
BIN
public/assets/jacket-0.png
Normal file
After Width: | Height: | Size: 354 KiB |
BIN
public/assets/jacket-1.png
Normal file
After Width: | Height: | Size: 363 KiB |
BIN
public/assets/jacket-2.png
Normal file
After Width: | Height: | Size: 744 KiB |
BIN
public/assets/lightwight-jacket-0.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
public/assets/lightwight-jacket-1.png
Normal file
After Width: | Height: | Size: 7.5 MiB |
BIN
public/assets/lightwight-jacket-2.png
Normal file
After Width: | Height: | Size: 5.1 MiB |
BIN
public/assets/lightwight-jacket-3.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
public/assets/lightwight-jacket-4.png
Normal file
After Width: | Height: | Size: 4.9 MiB |
BIN
public/assets/lightwight-jacket-5.png
Normal file
After Width: | Height: | Size: 1.5 MiB |
BIN
public/assets/short-sleeve-0.png
Normal file
After Width: | Height: | Size: 540 KiB |
BIN
public/assets/short-sleeve-1.png
Normal file
After Width: | Height: | Size: 532 KiB |
BIN
public/assets/short-sleeve-2.png
Normal file
After Width: | Height: | Size: 454 KiB |
BIN
public/assets/short-sleeve-3.png
Normal file
After Width: | Height: | Size: 542 KiB |
BIN
public/assets/short-sleeve-t-shirt-0.png
Normal file
After Width: | Height: | Size: 777 KiB |
BIN
public/assets/short-sleeve-t-shirt-1.png
Normal file
After Width: | Height: | Size: 777 KiB |
BIN
public/assets/short-sleeve-t-shirt-2.png
Normal file
After Width: | Height: | Size: 812 KiB |
BIN
public/assets/short-sleeve-t-shirt-3.png
Normal file
After Width: | Height: | Size: 810 KiB |
BIN
public/assets/short-sleeve-t-shirt-4.png
Normal file
After Width: | Height: | Size: 872 KiB |
BIN
public/assets/skinny-unisex-joggers-0.png
Normal file
After Width: | Height: | Size: 233 KiB |
BIN
public/assets/skinny-unisex-joggers-1.png
Normal file
After Width: | Height: | Size: 294 KiB |
BIN
public/assets/skinny-unisex-joggers-2.png
Normal file
After Width: | Height: | Size: 218 KiB |
BIN
public/assets/skinny-unisex-joggers-3.png
Normal file
After Width: | Height: | Size: 201 KiB |
BIN
public/assets/t-shirt-0.png
Normal file
After Width: | Height: | Size: 406 KiB |
BIN
public/assets/t-shirt-1.png
Normal file
After Width: | Height: | Size: 330 KiB |
BIN
public/assets/t-shirt-2.png
Normal file
After Width: | Height: | Size: 420 KiB |
BIN
public/assets/t-shirt-3.png
Normal file
After Width: | Height: | Size: 972 KiB |
BIN
public/assets/t-shirt-4.png
Normal file
After Width: | Height: | Size: 356 KiB |
BIN
public/assets/t-shirt-5.png
Normal file
After Width: | Height: | Size: 839 KiB |
BIN
public/assets/unisex-joggers-0.png
Normal file
After Width: | Height: | Size: 376 KiB |
BIN
public/assets/unisex-joggers-1.png
Normal file
After Width: | Height: | Size: 364 KiB |
BIN
public/assets/unisex-joggers-2.png
Normal file
After Width: | Height: | Size: 262 KiB |