Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Added progress bar/spinner on route change
- Loading branch information
1 parent
b6faef7
commit 9fcf527
Showing
4 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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,89 @@ | ||
| /* | ||
| IMPORTANT - WE HAVE CUSTOMIZED THESE VALUES FOR OUR CUSTOM THEME | ||
| 1. UPDATED THE COLORS | ||
| 2. UPDATE PLACEMENT OF SPINNER | ||
| 2.1. SHOW THE BAR AT THE TOP OF THE PAGE AND THE SPINNER AT THE BOTTOM | ||
| */ | ||
|
|
||
| /* Make clicks pass-through */ | ||
| #nprogress { | ||
| pointer-events: none; | ||
| } | ||
|
|
||
| #nprogress .bar { | ||
| background: #26a4ff; | ||
|
|
||
| position: fixed; | ||
| z-index: 1031; | ||
| top: 0; | ||
| left: 0; | ||
|
|
||
| width: 100%; | ||
| height: 4px; | ||
| } | ||
|
|
||
| /* Fancy blur effect */ | ||
| #nprogress .peg { | ||
| display: block; | ||
| position: absolute; | ||
| right: 0px; | ||
| width: 100px; | ||
| height: 100%; | ||
| box-shadow: 0 0 10px #26a4ff, 0 0 5px #26a4ff; | ||
| opacity: 1; | ||
|
|
||
| -webkit-transform: rotate(3deg) translate(0px, -4px); | ||
| -ms-transform: rotate(3deg) translate(0px, -4px); | ||
| transform: rotate(3deg) translate(0px, -4px); | ||
| } | ||
|
|
||
| /* Remove these to get rid of the spinner */ | ||
| #nprogress .spinner { | ||
| display: block; | ||
| position: fixed; | ||
| z-index: 1031; | ||
| bottom: 15px; | ||
| right: 25px; | ||
| } | ||
|
|
||
| #nprogress .spinner-icon { | ||
| width: 25px; | ||
| height: 25px; | ||
| box-sizing: border-box; | ||
|
|
||
| border: solid 2px transparent; | ||
| border-top-color: #26a4ff; | ||
| border-left-color: #26a4ff; | ||
| border-radius: 50%; | ||
|
|
||
| -webkit-animation: nprogress-spinner 400ms linear infinite; | ||
| animation: nprogress-spinner 400ms linear infinite; | ||
| } | ||
|
|
||
| .nprogress-custom-parent { | ||
| overflow: hidden; | ||
| position: relative; | ||
| } | ||
|
|
||
| .nprogress-custom-parent #nprogress .spinner, | ||
| .nprogress-custom-parent #nprogress .bar { | ||
| position: absolute; | ||
| } | ||
|
|
||
| @-webkit-keyframes nprogress-spinner { | ||
| 0% { | ||
| -webkit-transform: rotate(0deg); | ||
| } | ||
| 100% { | ||
| -webkit-transform: rotate(360deg); | ||
| } | ||
| } | ||
| @keyframes nprogress-spinner { | ||
| 0% { | ||
| transform: rotate(0deg); | ||
| } | ||
| 100% { | ||
| transform: rotate(360deg); | ||
| } | ||
| } |
9fcf527There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
useaffiliates – ./
useaffiliates-twankruiswijk.vercel.app
useaffiliates-git-main-twankruiswijk.vercel.app
useaffiliates.com
www.useaffiliates.com
useaffiliates.vercel.app