Skip to content

Commit

Permalink
feat: add next N progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Andrade committed Feb 26, 2022
1 parent abf1df1 commit 485729c
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 109 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@heroicons/react": "^1.0.5",
"axios": "^0.26.0",
"next": "12.1.0",
"nextjs-progressbar": "^0.0.13",
"nookies": "^2.5.2",
"react": "17.0.2",
"react-dom": "17.0.2",
Expand Down
7 changes: 7 additions & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'styles/globals.css'
import type { AppProps } from 'next/app'
import Head from 'next/head'
import NextNProgress from 'nextjs-progressbar'

function MyApp({ Component, pageProps }: AppProps) {
return (
Expand All @@ -17,6 +18,12 @@ function MyApp({ Component, pageProps }: AppProps) {
content="This is a project that will show artists and musics based in the recommendation from Spotify"
/>
</Head>
<NextNProgress
color="#171717"
startPosition={0.3}
stopDelayMs={200}
height={3}
/>
<Component {...pageProps} />
</>
)
Expand Down
5 changes: 3 additions & 2 deletions src/templates/home/non-authenticated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ export const NonAuthenticated = () => {
</div>
<div className="p-4">
<div className="flex justify-center">
{/* TODO: IMPROVE THIS!!!! */}
<Link href="/api/login">
<a
className="w-20 text-slate-50 rounded-full
text-center bg-gray-800 p-1"
className="w-20 text-slate-50 rounded-full text-center bg-gray-800 p-1"
aria-label="login button"
>
Login
</a>
Expand Down
Loading

1 comment on commit 485729c

@vercel
Copy link

@vercel vercel bot commented on 485729c Feb 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.