From 4a9ad835bb66d24298d7211ea950e7aae91229f0 Mon Sep 17 00:00:00 2001 From: hosead6168 Date: Mon, 21 Mar 2022 04:35:10 -0500 Subject: [PATCH] fix(*): added new logo --- src/Components/Footer/Footer.jsx | 65 +++++++++++++++++++++++++++- src/Components/Loading/ProLoader.css | 43 ++++++++++++++++++ src/Components/Loading/ProLoader.jsx | 17 ++++++++ src/Components/Product/Products.jsx | 4 +- 4 files changed, 125 insertions(+), 4 deletions(-) create mode 100644 src/Components/Loading/ProLoader.css create mode 100644 src/Components/Loading/ProLoader.jsx diff --git a/src/Components/Footer/Footer.jsx b/src/Components/Footer/Footer.jsx index 934ca1fe..2fb7466b 100755 --- a/src/Components/Footer/Footer.jsx +++ b/src/Components/Footer/Footer.jsx @@ -4,9 +4,70 @@ import {StyledHr} from '../../Layout/Hr/styledHr'; import SocialMediaTags from '../SocialMediaTags/SocialMediaTags'; -const Footer = () => { +const Footer = (isHome) => { - const year = new Date().getFullYear() + const year = new Date().getFullYear(); + + if (isHome) { + return ( + <> + + + ) +} return ( <> diff --git a/src/Components/Loading/ProLoader.css b/src/Components/Loading/ProLoader.css new file mode 100644 index 00000000..18843709 --- /dev/null +++ b/src/Components/Loading/ProLoader.css @@ -0,0 +1,43 @@ +.loading-screen { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100vh; + background: #f5f5f5; + display: flex; + align-items: center; + justify-content: center; + text-align: center; + z-index: 99; +} + +.logo-loader { + height: 35rem; + width: 35rem; +} + +.loading-bar { + width: 30rem; + height: 2px; + background: #cfcfcf; + margin: 22px; + position: relative; + overflow: hidden; +} + +.loading-bar::before { + content: ""; + width: 68px; + height: 2px; + background: #050a30; + position: absolute; + left: -34px; + animation: bluebar 1.5s infinite ease; +} + +@keyframes bluebar { + 50% { + left: 25rem; + } +} diff --git a/src/Components/Loading/ProLoader.jsx b/src/Components/Loading/ProLoader.jsx new file mode 100644 index 00000000..5bd9d4f8 --- /dev/null +++ b/src/Components/Loading/ProLoader.jsx @@ -0,0 +1,17 @@ +import React from 'react'; +import './ProLoader.css'; +import logo from '../../Assets/Images/newLogo.png'; + +const ProLoader = () => { + return ( +
+
+ Linkedin logo + {/* Linkedin logo */} +
+
+
+ ) +} + +export default ProLoader; diff --git a/src/Components/Product/Products.jsx b/src/Components/Product/Products.jsx index 72f9d3a3..ce64106a 100644 --- a/src/Components/Product/Products.jsx +++ b/src/Components/Product/Products.jsx @@ -3,7 +3,7 @@ import React, { useContext, useState } from 'react'; import axios from 'axios' import LoadMore from './LoadMore' import Masonry from 'react-masonry-css' -import Loading from '../Loading/Loading'; +import Loading from '../Loading/ProLoader'; import ProductItem from './ProductItem'; import { GlobalState } from '../../GlobalState'; import './Products.css'; @@ -65,7 +65,7 @@ const Products = () => { 900: 1 }; - if (loading) return
+ if (loading) return
console.log(products) return ( <>