From 1ff69fbfb25094ded2e85fd15acbe00431071e29 Mon Sep 17 00:00:00 2001 From: mostafa khedre Date: Mon, 4 Apr 2022 07:59:23 +0200 Subject: [PATCH 1/2] new features add --- package-lock.json | 20 ++ package.json | 1 + src/App.js | 116 ++++--- src/components/Layout/Footer.js | 49 +-- src/components/Products.js | 137 ++++---- yarn.lock | 573 +++++++++++++++++++++++++++++++- 6 files changed, 741 insertions(+), 155 deletions(-) diff --git a/package-lock.json b/package-lock.json index 00547fd..5ca2c66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2684,6 +2684,16 @@ "picomatch": "^2.0.4" } }, + "aos": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/aos/-/aos-2.3.4.tgz", + "integrity": "sha512-zh/ahtR2yME4I51z8IttIt4lC1Nw0ktsFtmeDzID1m9naJnWXhCoARaCgNOGXb5CLy3zm+wqmRAEgMYB5E2HUw==", + "requires": { + "classlist-polyfill": "^1.0.3", + "lodash.debounce": "^4.0.6", + "lodash.throttle": "^4.0.1" + } + }, "aproba": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", @@ -3921,6 +3931,11 @@ } } }, + "classlist-polyfill": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/classlist-polyfill/-/classlist-polyfill-1.2.0.tgz", + "integrity": "sha1-k1vC39lFiodrJ5YXUUY4vKqWSi4=" + }, "classnames": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.1.tgz", @@ -8912,6 +8927,11 @@ "lodash._reinterpolate": "^3.0.0" } }, + "lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=" + }, "lodash.truncate": { "version": "4.4.2", "resolved": "https://registry.npmjs.org/lodash.truncate/-/lodash.truncate-4.4.2.tgz", diff --git a/package.json b/package.json index 5efaad0..38ad5d1 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", + "aos": "^2.3.4", "axios": "^0.21.1", "bootstrap": "^4.6.0", "react": "^17.0.2", diff --git a/src/App.js b/src/App.js index b70184e..449a67d 100644 --- a/src/App.js +++ b/src/App.js @@ -1,63 +1,62 @@ -import Header from './components/Layout/Header'; -import React from 'react'; -import Products from './components/Products'; -import { Switch, Route } from 'react-router-dom'; -import Product from './components/Product'; -import Cart from './components/Cart'; -import Checkout from './components/Checkout'; -import Signin from './components/Signin'; -import Account from './components/Account'; -import Footer from './components/Layout/Footer'; -import Order from './components/Order' -import Payment from './components/Payment'; -import OrderSuccess from './components/OrderSuccess'; -import OrderHistory from './components/OrderHistory'; -import EditProfile from './components/EditProfile'; +import Header from "./components/Layout/Header"; +import React, { useEffect } from "react"; +import Products from "./components/Products"; +import { Switch, Route } from "react-router-dom"; +import Product from "./components/Product"; +import Cart from "./components/Cart"; +import Checkout from "./components/Checkout"; +import Signin from "./components/Signin"; +import Account from "./components/Account"; +import Footer from "./components/Layout/Footer"; +import Order from "./components/Order"; +import Payment from "./components/Payment"; +import OrderSuccess from "./components/OrderSuccess"; +import OrderHistory from "./components/OrderHistory"; +import EditProfile from "./components/EditProfile"; function App() { - return ( - <> -
- - - + return ( + <> +
+ + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -