diff --git a/.env b/.env index ce3b170b..98fb1807 100644 --- a/.env +++ b/.env @@ -1,15 +1,12 @@ -#Connected to demo backend so our main backend database do not affected -# NEXT_PUBLIC_BACKEND_URL=https://grabtern-backend-demo.vercel.app -# NEXT_PUBLIC_FRONTEND_URL=https://grabtern.com +# Environment variables for the demo backend to prevent affecting the main backend database +NEXT_PUBLIC_BACKEND_URL=https://demoapi.grabtern.in +NEXT_PUBLIC_FRONTEND_URL=https://grabtern.com NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=grabtern-demo -NEXT_PUBLIC_ENCRYPTION_SECRET_KEY = "encryptionSecretKey" +NEXT_PUBLIC_ENCRYPTION_SECRET_KEY="encryptionSecretKey" NEXT_PUBLIC_GOOGLE_CLIENT_ID="secured h" -## If you backend server running on localhost you can this one. +# Uncomment the following line if your backend server is running on localhost # NEXT_PUBLIC_BACKEND_URL=http://localhost:8000 -NEXT_PUBLIC_BACKEND_URL=https://demoapi.grabtern.in -#up is the prod. link -## To use production one please uncomment this one( this is for OSS community) -# NEXT_PUBLIC_BACKEND_URL=https://grabtern-backend-demo.vercel.app -NEXT_PUBLIC_FORNTEND_URL=http://localhost:3000 +# Uncomment the following line to use the production backend. +# NEXT_PUBLIC_BACKEND_URL=ttps://api.grabtern.in diff --git a/components/UI/MainLoader.js b/components/UI/MainLoader.js new file mode 100644 index 00000000..ae1e85b2 --- /dev/null +++ b/components/UI/MainLoader.js @@ -0,0 +1,77 @@ +import React from "react"; + +const MainLoader = () => { + return ( +
+
+
+
+
+
+
+
+ Loading +
+
+
+
+
+
+ ); +}; + +const styles = { + newPreloaderContainer: { + position: "relative", + width: "100%", + height: "100%", + }, + newLoaderBackground: { + // Add necessary styles for new loader background + }, + newPreloaderActive: { + transition: "all 0.5s", + display: "flex", + alignItems: "center", + justifyContent: "center", + height: "100%", + }, + newPreloader: { + display: "flex", + alignItems: "center", + justifyContent: "center", + }, + newPreloaderInner: { + display: "flex", + alignItems: "center", + justifyContent: "center", + position: "relative", + }, + newPreloaderCircle: { + width: "80px", + height: "80px", + border: "5px solid #f0f0f0", + borderTop: "5px solid purple", + borderRadius: "50%", + animation: "spin 1s linear infinite", + }, + newPreloaderImg: { + position: "absolute", + }, + newImgWrapper: { + backgroundColor: "white", + width: "80px", + height: "80px", + borderRadius: "50%", + display: "flex", + alignItems: "center", + justifyContent: "center", + }, + newImg: { + width: "55px", + height: "55px", + borderRadius: "50%", + }, +}; + +export default MainLoader; diff --git a/pages/mentorList.page.js b/pages/mentorList.page.js index abcc9ecf..18769af5 100644 --- a/pages/mentorList.page.js +++ b/pages/mentorList.page.js @@ -6,6 +6,7 @@ import { useApi } from "../hook/useAPi"; import { Section, Input } from "../components/UI"; import Loader from "../components/loader"; import { ToastContainer, toast } from "react-toastify"; +import MainLoader from "../components/UI/MainLoader"; const Header = dynamic(() => import("../components/layout/Header")); const SimpleBanner = dynamic(() => import("../components/basic/SimpleBanner")); @@ -57,7 +58,7 @@ function Mentors() { {/* mentors cards */}
{isLoading ? ( - + ) : filteredMentors.length === 0 ? (

No match found