├── README.md ├── cms ├── .env.example ├── .eslintrc ├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── sanity.cli.ts ├── sanity.config.ts ├── schemas │ ├── category.ts │ ├── game.ts │ ├── index.ts │ └── order.ts ├── static │ └── .gitkeep └── tsconfig.json └── frontend ├── .env.example ├── .eslintrc.json ├── .gitignore ├── README.md ├── next.config.js ├── package-lock.json ├── package.json ├── postcss.config.js ├── public ├── images │ ├── arrow.svg │ └── trending.jpeg ├── next.svg └── vercel.svg ├── src ├── app │ ├── api │ │ ├── auth │ │ │ └── [...nextauth] │ │ │ │ └── route.ts │ │ ├── sign-up │ │ │ └── route.ts │ │ └── stripe │ │ │ └── route.ts │ ├── categories │ │ └── [slug] │ │ │ └── page.tsx │ ├── error.tsx │ ├── favicon.ico │ ├── games │ │ ├── [slug] │ │ │ └── page.tsx │ │ └── page.tsx │ ├── globals.css │ ├── layout.tsx │ ├── orders │ │ └── page.tsx │ └── page.tsx ├── components │ ├── AuthProvider │ │ └── AuthProvider.tsx │ ├── CarouselSlider │ │ └── CarouselSlider.tsx │ ├── Cart │ │ └── Cart.tsx │ ├── Footer │ │ ├── Footer.tsx │ │ └── footerClassNames.ts │ ├── GameCard │ │ ├── GameCard.tsx │ │ └── gameCardClassNames.ts │ ├── GameCategoryCard │ │ ├── GameCategoryCard.tsx │ │ └── gameCategoryCardClassNames.ts │ ├── GameDetails │ │ ├── GameDetailsClient.tsx │ │ └── GameDetailsServer.tsx │ ├── Header │ │ ├── Header.tsx │ │ └── headerClassNames.ts │ ├── HeroSection │ │ ├── HeroSection.tsx │ │ └── heroClassNames.ts │ ├── NewsLetter │ │ └── NewsLetter.tsx │ ├── Signup │ │ └── Signup.tsx │ └── Toast │ │ └── Toast.tsx ├── hooks │ ├── storeHook.ts │ └── useCartTotals.tsx ├── libs │ ├── apis.ts │ ├── auth.ts │ ├── loadStripe.ts │ ├── mongodb.ts │ └── sanity.ts ├── models │ ├── category.ts │ └── game.ts └── redux │ ├── Providers.tsx │ ├── features │ └── cartSlice.ts │ └── store.ts ├── tailwind.config.js └── tsconfig.json /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/README.md -------------------------------------------------------------------------------- /cms/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/.env.example -------------------------------------------------------------------------------- /cms/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@sanity/eslint-config-studio" 3 | } 4 | -------------------------------------------------------------------------------- /cms/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/.gitignore -------------------------------------------------------------------------------- /cms/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/README.md -------------------------------------------------------------------------------- /cms/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/package-lock.json -------------------------------------------------------------------------------- /cms/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/package.json -------------------------------------------------------------------------------- /cms/sanity.cli.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/sanity.cli.ts -------------------------------------------------------------------------------- /cms/sanity.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/sanity.config.ts -------------------------------------------------------------------------------- /cms/schemas/category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/schemas/category.ts -------------------------------------------------------------------------------- /cms/schemas/game.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/schemas/game.ts -------------------------------------------------------------------------------- /cms/schemas/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/schemas/index.ts -------------------------------------------------------------------------------- /cms/schemas/order.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/schemas/order.ts -------------------------------------------------------------------------------- /cms/static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/static/.gitkeep -------------------------------------------------------------------------------- /cms/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/cms/tsconfig.json -------------------------------------------------------------------------------- /frontend/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/.env.example -------------------------------------------------------------------------------- /frontend/.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/.gitignore -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/README.md -------------------------------------------------------------------------------- /frontend/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/next.config.js -------------------------------------------------------------------------------- /frontend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/package-lock.json -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/postcss.config.js -------------------------------------------------------------------------------- /frontend/public/images/arrow.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/public/images/arrow.svg -------------------------------------------------------------------------------- /frontend/public/images/trending.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/public/images/trending.jpeg -------------------------------------------------------------------------------- /frontend/public/next.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/public/next.svg -------------------------------------------------------------------------------- /frontend/public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/public/vercel.svg -------------------------------------------------------------------------------- /frontend/src/app/api/auth/[...nextauth]/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/api/auth/[...nextauth]/route.ts -------------------------------------------------------------------------------- /frontend/src/app/api/sign-up/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/api/sign-up/route.ts -------------------------------------------------------------------------------- /frontend/src/app/api/stripe/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/api/stripe/route.ts -------------------------------------------------------------------------------- /frontend/src/app/categories/[slug]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/categories/[slug]/page.tsx -------------------------------------------------------------------------------- /frontend/src/app/error.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/error.tsx -------------------------------------------------------------------------------- /frontend/src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/favicon.ico -------------------------------------------------------------------------------- /frontend/src/app/games/[slug]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/games/[slug]/page.tsx -------------------------------------------------------------------------------- /frontend/src/app/games/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/games/page.tsx -------------------------------------------------------------------------------- /frontend/src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/globals.css -------------------------------------------------------------------------------- /frontend/src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/layout.tsx -------------------------------------------------------------------------------- /frontend/src/app/orders/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/orders/page.tsx -------------------------------------------------------------------------------- /frontend/src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/app/page.tsx -------------------------------------------------------------------------------- /frontend/src/components/AuthProvider/AuthProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/AuthProvider/AuthProvider.tsx -------------------------------------------------------------------------------- /frontend/src/components/CarouselSlider/CarouselSlider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/CarouselSlider/CarouselSlider.tsx -------------------------------------------------------------------------------- /frontend/src/components/Cart/Cart.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/Cart/Cart.tsx -------------------------------------------------------------------------------- /frontend/src/components/Footer/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/Footer/Footer.tsx -------------------------------------------------------------------------------- /frontend/src/components/Footer/footerClassNames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/Footer/footerClassNames.ts -------------------------------------------------------------------------------- /frontend/src/components/GameCard/GameCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/GameCard/GameCard.tsx -------------------------------------------------------------------------------- /frontend/src/components/GameCard/gameCardClassNames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/GameCard/gameCardClassNames.ts -------------------------------------------------------------------------------- /frontend/src/components/GameCategoryCard/GameCategoryCard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/GameCategoryCard/GameCategoryCard.tsx -------------------------------------------------------------------------------- /frontend/src/components/GameCategoryCard/gameCategoryCardClassNames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/GameCategoryCard/gameCategoryCardClassNames.ts -------------------------------------------------------------------------------- /frontend/src/components/GameDetails/GameDetailsClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/GameDetails/GameDetailsClient.tsx -------------------------------------------------------------------------------- /frontend/src/components/GameDetails/GameDetailsServer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/GameDetails/GameDetailsServer.tsx -------------------------------------------------------------------------------- /frontend/src/components/Header/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/Header/Header.tsx -------------------------------------------------------------------------------- /frontend/src/components/Header/headerClassNames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/Header/headerClassNames.ts -------------------------------------------------------------------------------- /frontend/src/components/HeroSection/HeroSection.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/HeroSection/HeroSection.tsx -------------------------------------------------------------------------------- /frontend/src/components/HeroSection/heroClassNames.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/HeroSection/heroClassNames.ts -------------------------------------------------------------------------------- /frontend/src/components/NewsLetter/NewsLetter.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/NewsLetter/NewsLetter.tsx -------------------------------------------------------------------------------- /frontend/src/components/Signup/Signup.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/Signup/Signup.tsx -------------------------------------------------------------------------------- /frontend/src/components/Toast/Toast.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/components/Toast/Toast.tsx -------------------------------------------------------------------------------- /frontend/src/hooks/storeHook.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/hooks/storeHook.ts -------------------------------------------------------------------------------- /frontend/src/hooks/useCartTotals.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/hooks/useCartTotals.tsx -------------------------------------------------------------------------------- /frontend/src/libs/apis.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/libs/apis.ts -------------------------------------------------------------------------------- /frontend/src/libs/auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/libs/auth.ts -------------------------------------------------------------------------------- /frontend/src/libs/loadStripe.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/libs/loadStripe.ts -------------------------------------------------------------------------------- /frontend/src/libs/mongodb.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/libs/mongodb.ts -------------------------------------------------------------------------------- /frontend/src/libs/sanity.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/libs/sanity.ts -------------------------------------------------------------------------------- /frontend/src/models/category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/models/category.ts -------------------------------------------------------------------------------- /frontend/src/models/game.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/models/game.ts -------------------------------------------------------------------------------- /frontend/src/redux/Providers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/redux/Providers.tsx -------------------------------------------------------------------------------- /frontend/src/redux/features/cartSlice.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/redux/features/cartSlice.ts -------------------------------------------------------------------------------- /frontend/src/redux/store.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/src/redux/store.ts -------------------------------------------------------------------------------- /frontend/tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/tailwind.config.js -------------------------------------------------------------------------------- /frontend/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laribright/nextjs-sanity-shop/HEAD/frontend/tsconfig.json --------------------------------------------------------------------------------