├── .editorconfig ├── .eslintignore ├── .eslintrc.json ├── .github ├── logo.png └── preview.png ├── .gitignore ├── README.md ├── docker-compose.yml ├── env.example ├── next-env.d.ts ├── next-sitemap.config.js ├── next.config.js ├── package.json ├── prettier.config.js ├── public ├── background-author-card.png ├── favicon.ico ├── grid.svg ├── robots.txt ├── sitemap-0.xml └── sitemap.xml ├── src ├── components │ ├── Accordion │ │ ├── index.tsx │ │ └── styles.module.scss │ ├── AvatarMenu │ │ ├── index.tsx │ │ └── styles.module.scss │ ├── Challenge │ │ ├── AuthorCard │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── Card │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── Header │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── HeaderSimple │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── Navigation │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ └── index.tsx │ ├── Form │ │ ├── ErrorMessage │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── Filter │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── Input │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── Radio │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── RadioGroup │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ └── index.tsx │ ├── Layout │ │ ├── Footer │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── Header │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ ├── index.tsx │ │ └── styles.module.scss │ ├── Modal │ │ ├── SolutionForm │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ └── index.tsx │ ├── SEO │ │ └── index.tsx │ ├── SVG │ │ ├── calendar.tsx │ │ ├── check.tsx │ │ ├── chevron-right.tsx │ │ ├── clock.tsx │ │ ├── close.tsx │ │ ├── figma.tsx │ │ ├── github.tsx │ │ ├── google.tsx │ │ ├── heart.tsx │ │ ├── index.tsx │ │ ├── info.tsx │ │ ├── linkedin.tsx │ │ ├── logo.tsx │ │ ├── pencil.tsx │ │ ├── person.tsx │ │ ├── plus.tsx │ │ ├── update.tsx │ │ └── youtube.tsx │ ├── SolutionCard │ │ ├── components │ │ │ ├── Footer │ │ │ │ ├── index.tsx │ │ │ │ └── styles.module.scss │ │ │ └── Header │ │ │ │ ├── index.tsx │ │ │ │ └── styles.module.scss │ │ ├── index.tsx │ │ └── styles.module.scss │ ├── Toast │ │ ├── icons │ │ │ ├── CheckmarkIcon │ │ │ │ ├── index.tsx │ │ │ │ └── styles.module.scss │ │ │ └── ErrorIcon │ │ │ │ ├── index.tsx │ │ │ │ └── styles.module.scss │ │ ├── index.tsx │ │ └── styles.module.scss │ └── Tooltip │ │ ├── index.tsx │ │ └── styles.module.scss ├── hooks │ ├── index.tsx │ ├── useChallenge.tsx │ └── useToast.tsx ├── pages │ ├── _app.tsx │ ├── _document.tsx │ ├── api │ │ ├── auth │ │ │ └── [...nextauth].tsx │ │ ├── challenge │ │ │ └── [id] │ │ │ │ ├── index.ts │ │ │ │ ├── participants.ts │ │ │ │ ├── participate.ts │ │ │ │ └── solution.ts │ │ ├── like.ts │ │ └── user │ │ │ └── update.ts │ ├── desafio │ │ └── [slug] │ │ │ ├── index.tsx │ │ │ ├── participantes │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ │ ├── solucao │ │ │ ├── index.tsx │ │ │ └── styles.module.scss │ │ │ └── styles.module.scss │ ├── index.tsx │ ├── login │ │ ├── index.tsx │ │ └── styles.module.scss │ ├── sobre │ │ ├── index.tsx │ │ └── styles.module.scss │ └── usuario │ │ └── perfil │ │ ├── index.tsx │ │ └── styles.module.scss ├── service │ ├── api.ts │ ├── mongoose.ts │ └── prismic.ts ├── styles │ ├── components │ │ └── button.scss │ ├── globals.scss │ └── home.module.scss ├── types │ ├── author.ts │ ├── challenge.ts │ ├── index.ts │ ├── like.ts │ ├── next-auth.d.ts │ ├── solution.ts │ └── user.ts └── utils │ ├── constants.ts │ ├── data │ ├── challenges.json │ └── quetions.json │ ├── format │ ├── challenge.ts │ ├── date.ts │ ├── index.ts │ └── solution.ts │ ├── mock.ts │ ├── schemas │ ├── challenge.ts │ ├── index.ts │ ├── like.ts │ ├── solution.ts │ └── user.ts │ └── zod │ ├── index.ts │ ├── solution.ts │ └── user.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .next 3 | /*.js -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/.github/logo.png -------------------------------------------------------------------------------- /.github/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/.github/preview.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/env.example -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/next-env.d.ts -------------------------------------------------------------------------------- /next-sitemap.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/next-sitemap.config.js -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/prettier.config.js -------------------------------------------------------------------------------- /public/background-author-card.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/public/background-author-card.png -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/grid.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/public/grid.svg -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/public/robots.txt -------------------------------------------------------------------------------- /public/sitemap-0.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/public/sitemap-0.xml -------------------------------------------------------------------------------- /public/sitemap.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/public/sitemap.xml -------------------------------------------------------------------------------- /src/components/Accordion/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Accordion/index.tsx -------------------------------------------------------------------------------- /src/components/Accordion/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Accordion/styles.module.scss -------------------------------------------------------------------------------- /src/components/AvatarMenu/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/AvatarMenu/index.tsx -------------------------------------------------------------------------------- /src/components/AvatarMenu/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/AvatarMenu/styles.module.scss -------------------------------------------------------------------------------- /src/components/Challenge/AuthorCard/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/AuthorCard/index.tsx -------------------------------------------------------------------------------- /src/components/Challenge/AuthorCard/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/AuthorCard/styles.module.scss -------------------------------------------------------------------------------- /src/components/Challenge/Card/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/Card/index.tsx -------------------------------------------------------------------------------- /src/components/Challenge/Card/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/Card/styles.module.scss -------------------------------------------------------------------------------- /src/components/Challenge/Header/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/Header/index.tsx -------------------------------------------------------------------------------- /src/components/Challenge/Header/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/Header/styles.module.scss -------------------------------------------------------------------------------- /src/components/Challenge/HeaderSimple/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/HeaderSimple/index.tsx -------------------------------------------------------------------------------- /src/components/Challenge/HeaderSimple/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/HeaderSimple/styles.module.scss -------------------------------------------------------------------------------- /src/components/Challenge/Navigation/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/Navigation/index.tsx -------------------------------------------------------------------------------- /src/components/Challenge/Navigation/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/Navigation/styles.module.scss -------------------------------------------------------------------------------- /src/components/Challenge/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Challenge/index.tsx -------------------------------------------------------------------------------- /src/components/Form/ErrorMessage/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/ErrorMessage/index.tsx -------------------------------------------------------------------------------- /src/components/Form/ErrorMessage/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/ErrorMessage/styles.module.scss -------------------------------------------------------------------------------- /src/components/Form/Filter/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/Filter/index.tsx -------------------------------------------------------------------------------- /src/components/Form/Filter/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/Filter/styles.module.scss -------------------------------------------------------------------------------- /src/components/Form/Input/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/Input/index.tsx -------------------------------------------------------------------------------- /src/components/Form/Input/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/Input/styles.module.scss -------------------------------------------------------------------------------- /src/components/Form/Radio/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/Radio/index.tsx -------------------------------------------------------------------------------- /src/components/Form/Radio/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/Radio/styles.module.scss -------------------------------------------------------------------------------- /src/components/Form/RadioGroup/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/RadioGroup/index.tsx -------------------------------------------------------------------------------- /src/components/Form/RadioGroup/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/RadioGroup/styles.module.scss -------------------------------------------------------------------------------- /src/components/Form/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Form/index.tsx -------------------------------------------------------------------------------- /src/components/Layout/Footer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Layout/Footer/index.tsx -------------------------------------------------------------------------------- /src/components/Layout/Footer/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Layout/Footer/styles.module.scss -------------------------------------------------------------------------------- /src/components/Layout/Header/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Layout/Header/index.tsx -------------------------------------------------------------------------------- /src/components/Layout/Header/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Layout/Header/styles.module.scss -------------------------------------------------------------------------------- /src/components/Layout/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Layout/index.tsx -------------------------------------------------------------------------------- /src/components/Layout/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Layout/styles.module.scss -------------------------------------------------------------------------------- /src/components/Modal/SolutionForm/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Modal/SolutionForm/index.tsx -------------------------------------------------------------------------------- /src/components/Modal/SolutionForm/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Modal/SolutionForm/styles.module.scss -------------------------------------------------------------------------------- /src/components/Modal/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Modal/index.tsx -------------------------------------------------------------------------------- /src/components/SEO/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SEO/index.tsx -------------------------------------------------------------------------------- /src/components/SVG/calendar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/calendar.tsx -------------------------------------------------------------------------------- /src/components/SVG/check.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/check.tsx -------------------------------------------------------------------------------- /src/components/SVG/chevron-right.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/chevron-right.tsx -------------------------------------------------------------------------------- /src/components/SVG/clock.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/clock.tsx -------------------------------------------------------------------------------- /src/components/SVG/close.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/close.tsx -------------------------------------------------------------------------------- /src/components/SVG/figma.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/figma.tsx -------------------------------------------------------------------------------- /src/components/SVG/github.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/github.tsx -------------------------------------------------------------------------------- /src/components/SVG/google.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/google.tsx -------------------------------------------------------------------------------- /src/components/SVG/heart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/heart.tsx -------------------------------------------------------------------------------- /src/components/SVG/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/index.tsx -------------------------------------------------------------------------------- /src/components/SVG/info.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/info.tsx -------------------------------------------------------------------------------- /src/components/SVG/linkedin.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/linkedin.tsx -------------------------------------------------------------------------------- /src/components/SVG/logo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/logo.tsx -------------------------------------------------------------------------------- /src/components/SVG/pencil.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/pencil.tsx -------------------------------------------------------------------------------- /src/components/SVG/person.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/person.tsx -------------------------------------------------------------------------------- /src/components/SVG/plus.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/plus.tsx -------------------------------------------------------------------------------- /src/components/SVG/update.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/update.tsx -------------------------------------------------------------------------------- /src/components/SVG/youtube.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SVG/youtube.tsx -------------------------------------------------------------------------------- /src/components/SolutionCard/components/Footer/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SolutionCard/components/Footer/index.tsx -------------------------------------------------------------------------------- /src/components/SolutionCard/components/Footer/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SolutionCard/components/Footer/styles.module.scss -------------------------------------------------------------------------------- /src/components/SolutionCard/components/Header/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SolutionCard/components/Header/index.tsx -------------------------------------------------------------------------------- /src/components/SolutionCard/components/Header/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SolutionCard/components/Header/styles.module.scss -------------------------------------------------------------------------------- /src/components/SolutionCard/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SolutionCard/index.tsx -------------------------------------------------------------------------------- /src/components/SolutionCard/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/SolutionCard/styles.module.scss -------------------------------------------------------------------------------- /src/components/Toast/icons/CheckmarkIcon/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Toast/icons/CheckmarkIcon/index.tsx -------------------------------------------------------------------------------- /src/components/Toast/icons/CheckmarkIcon/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Toast/icons/CheckmarkIcon/styles.module.scss -------------------------------------------------------------------------------- /src/components/Toast/icons/ErrorIcon/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Toast/icons/ErrorIcon/index.tsx -------------------------------------------------------------------------------- /src/components/Toast/icons/ErrorIcon/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Toast/icons/ErrorIcon/styles.module.scss -------------------------------------------------------------------------------- /src/components/Toast/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Toast/index.tsx -------------------------------------------------------------------------------- /src/components/Toast/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Toast/styles.module.scss -------------------------------------------------------------------------------- /src/components/Tooltip/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Tooltip/index.tsx -------------------------------------------------------------------------------- /src/components/Tooltip/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/components/Tooltip/styles.module.scss -------------------------------------------------------------------------------- /src/hooks/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/hooks/index.tsx -------------------------------------------------------------------------------- /src/hooks/useChallenge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/hooks/useChallenge.tsx -------------------------------------------------------------------------------- /src/hooks/useToast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/hooks/useToast.tsx -------------------------------------------------------------------------------- /src/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/_app.tsx -------------------------------------------------------------------------------- /src/pages/_document.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/_document.tsx -------------------------------------------------------------------------------- /src/pages/api/auth/[...nextauth].tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/api/auth/[...nextauth].tsx -------------------------------------------------------------------------------- /src/pages/api/challenge/[id]/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/api/challenge/[id]/index.ts -------------------------------------------------------------------------------- /src/pages/api/challenge/[id]/participants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/api/challenge/[id]/participants.ts -------------------------------------------------------------------------------- /src/pages/api/challenge/[id]/participate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/api/challenge/[id]/participate.ts -------------------------------------------------------------------------------- /src/pages/api/challenge/[id]/solution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/api/challenge/[id]/solution.ts -------------------------------------------------------------------------------- /src/pages/api/like.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/api/like.ts -------------------------------------------------------------------------------- /src/pages/api/user/update.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/api/user/update.ts -------------------------------------------------------------------------------- /src/pages/desafio/[slug]/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/desafio/[slug]/index.tsx -------------------------------------------------------------------------------- /src/pages/desafio/[slug]/participantes/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/desafio/[slug]/participantes/index.tsx -------------------------------------------------------------------------------- /src/pages/desafio/[slug]/participantes/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/desafio/[slug]/participantes/styles.module.scss -------------------------------------------------------------------------------- /src/pages/desafio/[slug]/solucao/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/desafio/[slug]/solucao/index.tsx -------------------------------------------------------------------------------- /src/pages/desafio/[slug]/solucao/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/desafio/[slug]/solucao/styles.module.scss -------------------------------------------------------------------------------- /src/pages/desafio/[slug]/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/desafio/[slug]/styles.module.scss -------------------------------------------------------------------------------- /src/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/index.tsx -------------------------------------------------------------------------------- /src/pages/login/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/login/index.tsx -------------------------------------------------------------------------------- /src/pages/login/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/login/styles.module.scss -------------------------------------------------------------------------------- /src/pages/sobre/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/sobre/index.tsx -------------------------------------------------------------------------------- /src/pages/sobre/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/sobre/styles.module.scss -------------------------------------------------------------------------------- /src/pages/usuario/perfil/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/usuario/perfil/index.tsx -------------------------------------------------------------------------------- /src/pages/usuario/perfil/styles.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/pages/usuario/perfil/styles.module.scss -------------------------------------------------------------------------------- /src/service/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/service/api.ts -------------------------------------------------------------------------------- /src/service/mongoose.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/service/mongoose.ts -------------------------------------------------------------------------------- /src/service/prismic.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/service/prismic.ts -------------------------------------------------------------------------------- /src/styles/components/button.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/styles/components/button.scss -------------------------------------------------------------------------------- /src/styles/globals.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/styles/globals.scss -------------------------------------------------------------------------------- /src/styles/home.module.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/styles/home.module.scss -------------------------------------------------------------------------------- /src/types/author.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/types/author.ts -------------------------------------------------------------------------------- /src/types/challenge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/types/challenge.ts -------------------------------------------------------------------------------- /src/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/types/index.ts -------------------------------------------------------------------------------- /src/types/like.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/types/like.ts -------------------------------------------------------------------------------- /src/types/next-auth.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/types/next-auth.d.ts -------------------------------------------------------------------------------- /src/types/solution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/types/solution.ts -------------------------------------------------------------------------------- /src/types/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/types/user.ts -------------------------------------------------------------------------------- /src/utils/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/constants.ts -------------------------------------------------------------------------------- /src/utils/data/challenges.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/data/challenges.json -------------------------------------------------------------------------------- /src/utils/data/quetions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/data/quetions.json -------------------------------------------------------------------------------- /src/utils/format/challenge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/format/challenge.ts -------------------------------------------------------------------------------- /src/utils/format/date.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/format/date.ts -------------------------------------------------------------------------------- /src/utils/format/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/format/index.ts -------------------------------------------------------------------------------- /src/utils/format/solution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/format/solution.ts -------------------------------------------------------------------------------- /src/utils/mock.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/mock.ts -------------------------------------------------------------------------------- /src/utils/schemas/challenge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/schemas/challenge.ts -------------------------------------------------------------------------------- /src/utils/schemas/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/schemas/index.ts -------------------------------------------------------------------------------- /src/utils/schemas/like.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/schemas/like.ts -------------------------------------------------------------------------------- /src/utils/schemas/solution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/schemas/solution.ts -------------------------------------------------------------------------------- /src/utils/schemas/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/schemas/user.ts -------------------------------------------------------------------------------- /src/utils/zod/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/zod/index.ts -------------------------------------------------------------------------------- /src/utils/zod/solution.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/zod/solution.ts -------------------------------------------------------------------------------- /src/utils/zod/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/src/utils/zod/user.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leovargasdev/br-challenges/HEAD/yarn.lock --------------------------------------------------------------------------------