-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mentorlist): add mainloader to mentorlist page
- Loading branch information
Showing
3 changed files
with
86 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import React from "react"; | ||
|
||
const MainLoader = () => { | ||
return ( | ||
<div style={styles.newPreloaderContainer}> | ||
<div style={styles.newLoaderBackground}></div> | ||
<div id="new-preloader-active" style={styles.newPreloaderActive}> | ||
<div style={styles.newPreloader}> | ||
<div style={styles.newPreloaderInner}> | ||
<div style={styles.newPreloaderCircle}></div> | ||
<div style={styles.newPreloaderImg}> | ||
<div style={styles.newImgWrapper}> | ||
<img src="faviconn.png" alt="Loading" style={styles.newImg} /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters