Add loading between pages

This commit is contained in:
Hazem Krimi
2021-08-16 15:42:21 +01:00
parent 9a39e89f48
commit 07c97a29b5
4 changed files with 43 additions and 0 deletions
+11
View File
@@ -48,6 +48,17 @@ const Global = createGlobalStyle<Props>`
color: ${({ dark, theme }) => (dark ? theme.colors.dark.text : theme.colors.light.text)};
transition: color 250ms ease-in-out, background 250ms ease-in-out;
scroll-behavior: smooth;
#nprogress .bar {
background: ${({ dark, theme }) =>
dark ? theme.colors.dark.text : theme.colors.light.text} !important;
}
#nprogress .peg {
box-shadow: 0 0 10px ${({ dark, theme }) =>
dark ? theme.colors.dark.text : theme.colors.light.text}, 0 0 5px ${({ dark, theme }) =>
dark ? theme.colors.dark.text : theme.colors.light.text} !important;
}
}
body::-webkit-scrollbar {