├── .env.example ├── .github └── images │ ├── logo-moveit-2.0.svg │ ├── logo.svg │ ├── nlw4-image-documentation.svg │ └── screens-moveit-2.0.svg ├── .gitignore ├── LICENSE.txt ├── README.md ├── challenges.json ├── next-env.d.ts ├── package.json ├── public ├── favicon.png ├── full-logo-blue.svg ├── icons │ ├── alert.svg │ ├── arrow-left.svg │ ├── arrow-right.svg │ ├── award.svg │ ├── body.svg │ ├── check-circle.svg │ ├── close.svg │ ├── error.svg │ ├── eye.svg │ ├── github.svg │ ├── home.svg │ ├── level-up.svg │ ├── level.svg │ ├── levelup.svg │ ├── login.svg │ ├── logo.svg │ ├── logout.svg │ ├── simbolo.svg │ ├── twitter.svg │ ├── union.svg │ └── x.svg ├── logo-full.svg ├── logo.svg ├── notification.mp3 └── success-bell.wav ├── src ├── @types │ ├── global.d.ts │ └── next-auth.d.ts ├── components │ ├── ChallengeBox │ │ ├── index.tsx │ │ └── styles.ts │ ├── CompletedChallenges │ │ ├── index.tsx │ │ └── styles.ts │ ├── Countdown │ │ ├── index.tsx │ │ └── styles.ts │ ├── ExperienceBar │ │ ├── index.tsx │ │ └── styles.ts │ ├── LevelUpModal │ │ ├── index.tsx │ │ └── styles.ts │ ├── Profile │ │ ├── index.tsx │ │ └── styles.ts │ ├── Shimmer │ │ └── LoadingLeaderboard │ │ │ ├── index.tsx │ │ │ └── styles.ts │ ├── Sidebar │ │ ├── index.tsx │ │ └── styles.ts │ ├── Skeleton │ │ └── index.tsx │ ├── ToastContainer │ │ ├── Toast │ │ │ ├── index.tsx │ │ │ └── styles.ts │ │ ├── index.tsx │ │ └── styles.ts │ ├── Unauthenticated │ │ ├── index.tsx │ │ └── styles.ts │ └── UserLeaderboard │ │ ├── index.tsx │ │ └── styles.ts ├── contexts │ ├── ChallengeContext.tsx │ ├── CountdownContext.tsx │ ├── SWRConfigContext.tsx │ └── ToastContext.tsx ├── pages │ ├── [user].tsx │ ├── _app.tsx │ ├── _document.tsx │ ├── api │ │ ├── _lib │ │ │ ├── calculateChallenges.ts │ │ │ └── mongodb.ts │ │ ├── auth │ │ │ └── [...nextauth].ts │ │ ├── challenge │ │ │ ├── [challengeIndex].ts │ │ │ ├── getChallenge.ts │ │ │ └── leaderboard.ts │ │ ├── countdown │ │ │ └── startCountdown.ts │ │ └── users │ │ │ ├── getUpdateUser.ts │ │ │ └── updateNewUser.ts │ ├── index.tsx │ ├── leaderboard.tsx │ └── signin.tsx ├── services │ ├── api.ts │ └── fetcher.ts └── styles │ ├── global.ts │ ├── nprogress.css │ └── pages │ ├── app.ts │ ├── leaderboard.ts │ └── signin.ts ├── static ├── .gitkeep └── levelup_thumbnail.html ├── tsconfig.json └── yarn.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/.env.example -------------------------------------------------------------------------------- /.github/images/logo-moveit-2.0.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/.github/images/logo-moveit-2.0.svg -------------------------------------------------------------------------------- /.github/images/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/.github/images/logo.svg -------------------------------------------------------------------------------- /.github/images/nlw4-image-documentation.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/.github/images/nlw4-image-documentation.svg -------------------------------------------------------------------------------- /.github/images/screens-moveit-2.0.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/.github/images/screens-moveit-2.0.svg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/README.md -------------------------------------------------------------------------------- /challenges.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/challenges.json -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/favicon.png -------------------------------------------------------------------------------- /public/full-logo-blue.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/full-logo-blue.svg -------------------------------------------------------------------------------- /public/icons/alert.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/alert.svg -------------------------------------------------------------------------------- /public/icons/arrow-left.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/arrow-left.svg -------------------------------------------------------------------------------- /public/icons/arrow-right.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/arrow-right.svg -------------------------------------------------------------------------------- /public/icons/award.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/award.svg -------------------------------------------------------------------------------- /public/icons/body.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/body.svg -------------------------------------------------------------------------------- /public/icons/check-circle.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/check-circle.svg -------------------------------------------------------------------------------- /public/icons/close.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/close.svg -------------------------------------------------------------------------------- /public/icons/error.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/error.svg -------------------------------------------------------------------------------- /public/icons/eye.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/eye.svg -------------------------------------------------------------------------------- /public/icons/github.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/github.svg -------------------------------------------------------------------------------- /public/icons/home.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/home.svg -------------------------------------------------------------------------------- /public/icons/level-up.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/level-up.svg -------------------------------------------------------------------------------- /public/icons/level.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/level.svg -------------------------------------------------------------------------------- /public/icons/levelup.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/levelup.svg -------------------------------------------------------------------------------- /public/icons/login.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/login.svg -------------------------------------------------------------------------------- /public/icons/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/logo.svg -------------------------------------------------------------------------------- /public/icons/logout.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/logout.svg -------------------------------------------------------------------------------- /public/icons/simbolo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/simbolo.svg -------------------------------------------------------------------------------- /public/icons/twitter.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/twitter.svg -------------------------------------------------------------------------------- /public/icons/union.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/union.svg -------------------------------------------------------------------------------- /public/icons/x.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/icons/x.svg -------------------------------------------------------------------------------- /public/logo-full.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/logo-full.svg -------------------------------------------------------------------------------- /public/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/logo.svg -------------------------------------------------------------------------------- /public/notification.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/notification.mp3 -------------------------------------------------------------------------------- /public/success-bell.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/public/success-bell.wav -------------------------------------------------------------------------------- /src/@types/global.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/@types/global.d.ts -------------------------------------------------------------------------------- /src/@types/next-auth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/@types/next-auth.d.ts -------------------------------------------------------------------------------- /src/components/ChallengeBox/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/ChallengeBox/index.tsx -------------------------------------------------------------------------------- /src/components/ChallengeBox/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/ChallengeBox/styles.ts -------------------------------------------------------------------------------- /src/components/CompletedChallenges/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/CompletedChallenges/index.tsx -------------------------------------------------------------------------------- /src/components/CompletedChallenges/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/CompletedChallenges/styles.ts -------------------------------------------------------------------------------- /src/components/Countdown/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Countdown/index.tsx -------------------------------------------------------------------------------- /src/components/Countdown/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Countdown/styles.ts -------------------------------------------------------------------------------- /src/components/ExperienceBar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/ExperienceBar/index.tsx -------------------------------------------------------------------------------- /src/components/ExperienceBar/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/ExperienceBar/styles.ts -------------------------------------------------------------------------------- /src/components/LevelUpModal/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/LevelUpModal/index.tsx -------------------------------------------------------------------------------- /src/components/LevelUpModal/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/LevelUpModal/styles.ts -------------------------------------------------------------------------------- /src/components/Profile/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Profile/index.tsx -------------------------------------------------------------------------------- /src/components/Profile/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Profile/styles.ts -------------------------------------------------------------------------------- /src/components/Shimmer/LoadingLeaderboard/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Shimmer/LoadingLeaderboard/index.tsx -------------------------------------------------------------------------------- /src/components/Shimmer/LoadingLeaderboard/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Shimmer/LoadingLeaderboard/styles.ts -------------------------------------------------------------------------------- /src/components/Sidebar/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Sidebar/index.tsx -------------------------------------------------------------------------------- /src/components/Sidebar/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Sidebar/styles.ts -------------------------------------------------------------------------------- /src/components/Skeleton/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Skeleton/index.tsx -------------------------------------------------------------------------------- /src/components/ToastContainer/Toast/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/ToastContainer/Toast/index.tsx -------------------------------------------------------------------------------- /src/components/ToastContainer/Toast/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/ToastContainer/Toast/styles.ts -------------------------------------------------------------------------------- /src/components/ToastContainer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/ToastContainer/index.tsx -------------------------------------------------------------------------------- /src/components/ToastContainer/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/ToastContainer/styles.ts -------------------------------------------------------------------------------- /src/components/Unauthenticated/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Unauthenticated/index.tsx -------------------------------------------------------------------------------- /src/components/Unauthenticated/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/Unauthenticated/styles.ts -------------------------------------------------------------------------------- /src/components/UserLeaderboard/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/UserLeaderboard/index.tsx -------------------------------------------------------------------------------- /src/components/UserLeaderboard/styles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/components/UserLeaderboard/styles.ts -------------------------------------------------------------------------------- /src/contexts/ChallengeContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/contexts/ChallengeContext.tsx -------------------------------------------------------------------------------- /src/contexts/CountdownContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/contexts/CountdownContext.tsx -------------------------------------------------------------------------------- /src/contexts/SWRConfigContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/contexts/SWRConfigContext.tsx -------------------------------------------------------------------------------- /src/contexts/ToastContext.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/contexts/ToastContext.tsx -------------------------------------------------------------------------------- /src/pages/[user].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/[user].tsx -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/_document.tsx -------------------------------------------------------------------------------- /src/pages/api/_lib/calculateChallenges.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/_lib/calculateChallenges.ts -------------------------------------------------------------------------------- /src/pages/api/_lib/mongodb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/_lib/mongodb.ts -------------------------------------------------------------------------------- /src/pages/api/auth/[...nextauth].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/auth/[...nextauth].ts -------------------------------------------------------------------------------- /src/pages/api/challenge/[challengeIndex].ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/challenge/[challengeIndex].ts -------------------------------------------------------------------------------- /src/pages/api/challenge/getChallenge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/challenge/getChallenge.ts -------------------------------------------------------------------------------- /src/pages/api/challenge/leaderboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/challenge/leaderboard.ts -------------------------------------------------------------------------------- /src/pages/api/countdown/startCountdown.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/countdown/startCountdown.ts -------------------------------------------------------------------------------- /src/pages/api/users/getUpdateUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/users/getUpdateUser.ts -------------------------------------------------------------------------------- /src/pages/api/users/updateNewUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/api/users/updateNewUser.ts -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/leaderboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/leaderboard.tsx -------------------------------------------------------------------------------- /src/pages/signin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/pages/signin.tsx -------------------------------------------------------------------------------- /src/services/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/services/api.ts -------------------------------------------------------------------------------- /src/services/fetcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/services/fetcher.ts -------------------------------------------------------------------------------- /src/styles/global.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/styles/global.ts -------------------------------------------------------------------------------- /src/styles/nprogress.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/styles/nprogress.css -------------------------------------------------------------------------------- /src/styles/pages/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/styles/pages/app.ts -------------------------------------------------------------------------------- /src/styles/pages/leaderboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/styles/pages/leaderboard.ts -------------------------------------------------------------------------------- /src/styles/pages/signin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/src/styles/pages/signin.ts -------------------------------------------------------------------------------- /static/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /static/levelup_thumbnail.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/static/levelup_thumbnail.html -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alexandredev3/moveit-nlw04/HEAD/yarn.lock --------------------------------------------------------------------------------