From 125cbea98cfce31d665ac09e1a2f06c95518d32b Mon Sep 17 00:00:00 2001 From: Jatin Yadav Date: Tue, 2 Jan 2024 20:37:06 +0530 Subject: [PATCH 1/7] Font and Folder Structure Updated, Preloader Removed --- components/{ => AdBanner}/AdBanner.js | 0 components/App.js | 21 +- components/{ => Error}/Error404.js | 0 components/{ => Error}/NoResults.js | 2 +- components/{ => Footer}/Footer.js | 12 +- components/{ => Home}/Landingpage.js | 14 +- components/Layout.js | 16 +- .../ReactPaginateComponent.js | 0 components/Preloader.js | 75 --- components/ThemeToggle.js | 91 --- components/{ => TopButton}/Backtotop.js | 0 .../Ambassador-Data.js => data/ambassador.js} | 0 .../Backend-Data.js => data/backend.js} | 0 .../{games/Games-Data.js => data/games.js} | 0 .../JSToolkits-Data.js => data/jstoolkits.js} | 0 .../Programs-Data.js => data/programs.js} | 0 .../Web-dev-data.js => data/webdev.js} | 0 components/{ => navbar}/Menu.js | 0 package-lock.json | 575 ++++++++++++++---- package.json | 9 +- pages/ambassador.js | 6 +- pages/backend.js | 6 +- pages/games.js | 6 +- pages/index.js | 6 +- pages/programs.js | 6 +- pages/results.js | 14 +- pages/webdev.js | 6 +- styles/globals.css | 16 +- 28 files changed, 514 insertions(+), 367 deletions(-) rename components/{ => AdBanner}/AdBanner.js (100%) rename components/{ => Error}/Error404.js (100%) rename components/{ => Error}/NoResults.js (85%) rename components/{ => Footer}/Footer.js (56%) rename components/{ => Home}/Landingpage.js (92%) rename components/{ => Pagination}/ReactPaginateComponent.js (100%) delete mode 100644 components/Preloader.js delete mode 100644 components/ThemeToggle.js rename components/{ => TopButton}/Backtotop.js (100%) rename components/{ambassador/Ambassador-Data.js => data/ambassador.js} (100%) rename components/{backend/Backend-Data.js => data/backend.js} (100%) rename components/{games/Games-Data.js => data/games.js} (100%) rename components/{js-toolkits/JSToolkits-Data.js => data/jstoolkits.js} (100%) rename components/{programs/Programs-Data.js => data/programs.js} (100%) rename components/{web-dev/Web-dev-data.js => data/webdev.js} (100%) rename components/{ => navbar}/Menu.js (100%) diff --git a/components/AdBanner.js b/components/AdBanner/AdBanner.js similarity index 100% rename from components/AdBanner.js rename to components/AdBanner/AdBanner.js diff --git a/components/App.js b/components/App.js index 9fce71c5..03744167 100644 --- a/components/App.js +++ b/components/App.js @@ -1,27 +1,16 @@ -import React, { useState, useEffect } from "react"; +import React from "react"; import "../sass/style.css"; -import Footer from "./Footer"; -import BackToTop from "./Backtotop"; -import Navbar from "./Menu"; -import Preloader from "./Preloader"; +import Footer from "./Footer/Footer"; +import BackToTop from "./TopButton/Backtotop"; +import Navbar from "./Navbar/Menu"; const App = () => { - const [loading, setLoading] = useState(true); - useEffect(() => { - setTimeout(() => { - setLoading(false); - }, 3200); - }, []); - return loading ? ( - - ) : ( - <> + return <>