From 410b363883cc8b441bc2a858825ade07d72a19ca Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Tue, 1 Nov 2022 10:40:36 +0700 Subject: Add progress bar and performance optimization --- src/components/header.js | 7 ++++--- src/components/productCard.js | 6 +++++- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'src/components') diff --git a/src/components/header.js b/src/components/header.js index baebbd3a..3d5d0f84 100644 --- a/src/components/header.js +++ b/src/components/header.js @@ -3,6 +3,7 @@ import Link from "next/link"; import ShoppingCartIcon from "../icons/shopping-cart.svg"; import SearchIcon from "../icons/search.svg"; import MenuIcon from "../icons/menu.svg"; +import ChevronRightIcon from "../icons/chevron-right.svg"; import { useState } from "react"; @@ -23,19 +24,19 @@ export default function Header() { Brand
- +
Blog
- +
diff --git a/src/components/productCard.js b/src/components/productCard.js index 6e703670..f51473ad 100644 --- a/src/components/productCard.js +++ b/src/components/productCard.js @@ -1,13 +1,17 @@ import Link from "next/link"; import currencyFormat from "../helpers/currencyFormat"; import { createSlug } from "../helpers/slug"; +import { LazyLoadImage } from "react-lazy-load-image-component"; + +import 'react-lazy-load-image-component/src/effects/blur.css'; + export default function productCard({ data }) { let product = data; return (
- {product.name} +
-- cgit v1.2.3