├── .gitignore ├── README.md ├── atoms └── cartAtom.ts ├── components ├── Basket.tsx ├── Button.tsx ├── CheckoutProducts.tsx ├── Header.tsx ├── Landing.tsx └── Product.tsx ├── next.config.js ├── package.json ├── pages ├── _app.tsx ├── api │ ├── auth │ │ └── [...nextauth].js │ ├── checkout_session.ts │ ├── getCategories.ts │ ├── getProducts.ts │ ├── getSession.ts │ └── hello.ts ├── checkout.tsx ├── index.tsx └── success.tsx ├── postcss.config.js ├── public ├── favicon.ico ├── iphone.png └── vercel.svg ├── sanity.js ├── sanity ├── .eslintrc ├── .gitignore ├── .npmignore ├── README.md ├── config │ ├── .checksums │ └── @sanity │ │ ├── data-aspects.json │ │ ├── default-layout.json │ │ ├── default-login.json │ │ ├── form-builder.json │ │ └── vision.json ├── dist │ ├── index.html │ └── static │ │ ├── .gitkeep │ │ ├── css │ │ └── main.css │ │ ├── favicon.ico │ │ └── js │ │ ├── app.bundle.js │ │ └── vendor.bundle.js ├── package-lock.json ├── package.json ├── plugins │ ├── .gitkeep │ └── barcode-input │ │ ├── BarcodeInput.js │ │ ├── BarcodeType.js │ │ └── sanity.json ├── sanity.json ├── schemas │ ├── blockContent.js │ ├── category.js │ ├── locale │ │ ├── BlockContent.js │ │ ├── String.js │ │ ├── Text.js │ │ └── supportedLanguages.js │ ├── product.js │ ├── productVariant.js │ └── schema.js ├── static │ ├── .gitkeep │ └── favicon.ico └── tsconfig.json ├── styles └── globals.css ├── tailwind.config.js ├── tsconfig.json ├── types.d.ts └── utils ├── api-helper.ts ├── fetchCategories.ts ├── fetchLineItems.ts ├── fetchProducts.ts └── get-stripejs.ts /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/README.md -------------------------------------------------------------------------------- /atoms/cartAtom.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/atoms/cartAtom.ts -------------------------------------------------------------------------------- /components/Basket.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/components/Basket.tsx -------------------------------------------------------------------------------- /components/Button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/components/Button.tsx -------------------------------------------------------------------------------- /components/CheckoutProducts.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/components/CheckoutProducts.tsx -------------------------------------------------------------------------------- /components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/components/Header.tsx -------------------------------------------------------------------------------- /components/Landing.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/components/Landing.tsx -------------------------------------------------------------------------------- /components/Product.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/components/Product.tsx -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/package.json -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/_app.tsx -------------------------------------------------------------------------------- /pages/api/auth/[...nextauth].js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/api/auth/[...nextauth].js -------------------------------------------------------------------------------- /pages/api/checkout_session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/api/checkout_session.ts -------------------------------------------------------------------------------- /pages/api/getCategories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/api/getCategories.ts -------------------------------------------------------------------------------- /pages/api/getProducts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/api/getProducts.ts -------------------------------------------------------------------------------- /pages/api/getSession.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/api/getSession.ts -------------------------------------------------------------------------------- /pages/api/hello.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/api/hello.ts -------------------------------------------------------------------------------- /pages/checkout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/checkout.tsx -------------------------------------------------------------------------------- /pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/index.tsx -------------------------------------------------------------------------------- /pages/success.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/pages/success.tsx -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/iphone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/public/iphone.png -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /sanity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity.js -------------------------------------------------------------------------------- /sanity/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@sanity/eslint-config-studio" 3 | } 4 | -------------------------------------------------------------------------------- /sanity/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules -------------------------------------------------------------------------------- /sanity/.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/.npmignore -------------------------------------------------------------------------------- /sanity/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/README.md -------------------------------------------------------------------------------- /sanity/config/.checksums: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/config/.checksums -------------------------------------------------------------------------------- /sanity/config/@sanity/data-aspects.json: -------------------------------------------------------------------------------- 1 | { 2 | "listOptions": {} 3 | } 4 | -------------------------------------------------------------------------------- /sanity/config/@sanity/default-layout.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/config/@sanity/default-layout.json -------------------------------------------------------------------------------- /sanity/config/@sanity/default-login.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/config/@sanity/default-login.json -------------------------------------------------------------------------------- /sanity/config/@sanity/form-builder.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/config/@sanity/form-builder.json -------------------------------------------------------------------------------- /sanity/config/@sanity/vision.json: -------------------------------------------------------------------------------- 1 | { 2 | "defaultApiVersion": "2021-10-21" 3 | } 4 | -------------------------------------------------------------------------------- /sanity/dist/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/dist/index.html -------------------------------------------------------------------------------- /sanity/dist/static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/dist/static/.gitkeep -------------------------------------------------------------------------------- /sanity/dist/static/css/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/dist/static/css/main.css -------------------------------------------------------------------------------- /sanity/dist/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/dist/static/favicon.ico -------------------------------------------------------------------------------- /sanity/dist/static/js/app.bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/dist/static/js/app.bundle.js -------------------------------------------------------------------------------- /sanity/dist/static/js/vendor.bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/dist/static/js/vendor.bundle.js -------------------------------------------------------------------------------- /sanity/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/package-lock.json -------------------------------------------------------------------------------- /sanity/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/package.json -------------------------------------------------------------------------------- /sanity/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | User-specific packages can be placed here 2 | -------------------------------------------------------------------------------- /sanity/plugins/barcode-input/BarcodeInput.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/plugins/barcode-input/BarcodeInput.js -------------------------------------------------------------------------------- /sanity/plugins/barcode-input/BarcodeType.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/plugins/barcode-input/BarcodeType.js -------------------------------------------------------------------------------- /sanity/plugins/barcode-input/sanity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/plugins/barcode-input/sanity.json -------------------------------------------------------------------------------- /sanity/sanity.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/sanity.json -------------------------------------------------------------------------------- /sanity/schemas/blockContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/blockContent.js -------------------------------------------------------------------------------- /sanity/schemas/category.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/category.js -------------------------------------------------------------------------------- /sanity/schemas/locale/BlockContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/locale/BlockContent.js -------------------------------------------------------------------------------- /sanity/schemas/locale/String.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/locale/String.js -------------------------------------------------------------------------------- /sanity/schemas/locale/Text.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/locale/Text.js -------------------------------------------------------------------------------- /sanity/schemas/locale/supportedLanguages.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/locale/supportedLanguages.js -------------------------------------------------------------------------------- /sanity/schemas/product.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/product.js -------------------------------------------------------------------------------- /sanity/schemas/productVariant.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/productVariant.js -------------------------------------------------------------------------------- /sanity/schemas/schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/schemas/schema.js -------------------------------------------------------------------------------- /sanity/static/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/static/.gitkeep -------------------------------------------------------------------------------- /sanity/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/static/favicon.ico -------------------------------------------------------------------------------- /sanity/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/sanity/tsconfig.json -------------------------------------------------------------------------------- /styles/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/styles/globals.css -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/types.d.ts -------------------------------------------------------------------------------- /utils/api-helper.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/utils/api-helper.ts -------------------------------------------------------------------------------- /utils/fetchCategories.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/utils/fetchCategories.ts -------------------------------------------------------------------------------- /utils/fetchLineItems.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/utils/fetchLineItems.ts -------------------------------------------------------------------------------- /utils/fetchProducts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/utils/fetchProducts.ts -------------------------------------------------------------------------------- /utils/get-stripejs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ksowah/APPLE-STORE/HEAD/utils/get-stripejs.ts --------------------------------------------------------------------------------