├── .eslintrc.json ├── .gitignore ├── .vscode └── settings.json ├── README.md ├── next.config.js ├── package.json ├── pages └── api │ ├── exit-preview.ts │ ├── gallery.ts │ └── preview.ts ├── pnpm-lock.yaml ├── postcss.config.js ├── public ├── favicon.ico └── vercel.svg ├── sanity.config.ts ├── schemas ├── gallery.ts └── index.ts ├── src ├── app │ ├── (admin) │ │ ├── admin │ │ │ └── [[...index]] │ │ │ │ ├── loading.tsx │ │ │ │ └── page.tsx │ │ └── layout.tsx │ ├── (gallery) │ │ ├── [slug] │ │ │ └── page.tsx │ │ ├── head.tsx │ │ ├── layout.tsx │ │ ├── loading.tsx │ │ └── page.tsx │ └── globals.css ├── components │ ├── Header.tsx │ ├── ImageGrid.tsx │ ├── NavLinks.tsx │ ├── NextImage.tsx │ ├── ThemeProvider.tsx │ └── sanity │ │ ├── ExitPreview.tsx │ │ ├── PreviewCategory.tsx │ │ ├── PreviewGallery.tsx │ │ └── PreviewSuspense.tsx ├── icons │ └── Spinner.tsx ├── lib │ ├── sanity.api.ts │ ├── sanity.client.ts │ ├── sanity.preview.ts │ └── sanity.theme.ts └── utils │ ├── Groq.ts │ └── Types.ts ├── tailwind.config.js └── tsconfig.json /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/README.md -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/package.json -------------------------------------------------------------------------------- /pages/api/exit-preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/pages/api/exit-preview.ts -------------------------------------------------------------------------------- /pages/api/gallery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/pages/api/gallery.ts -------------------------------------------------------------------------------- /pages/api/preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/pages/api/preview.ts -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/public/vercel.svg -------------------------------------------------------------------------------- /sanity.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/sanity.config.ts -------------------------------------------------------------------------------- /schemas/gallery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/schemas/gallery.ts -------------------------------------------------------------------------------- /schemas/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/schemas/index.ts -------------------------------------------------------------------------------- /src/app/(admin)/admin/[[...index]]/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/(admin)/admin/[[...index]]/loading.tsx -------------------------------------------------------------------------------- /src/app/(admin)/admin/[[...index]]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/(admin)/admin/[[...index]]/page.tsx -------------------------------------------------------------------------------- /src/app/(admin)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/(admin)/layout.tsx -------------------------------------------------------------------------------- /src/app/(gallery)/[slug]/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/(gallery)/[slug]/page.tsx -------------------------------------------------------------------------------- /src/app/(gallery)/head.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/(gallery)/head.tsx -------------------------------------------------------------------------------- /src/app/(gallery)/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/(gallery)/layout.tsx -------------------------------------------------------------------------------- /src/app/(gallery)/loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/(gallery)/loading.tsx -------------------------------------------------------------------------------- /src/app/(gallery)/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/(gallery)/page.tsx -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/components/Header.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/Header.tsx -------------------------------------------------------------------------------- /src/components/ImageGrid.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/ImageGrid.tsx -------------------------------------------------------------------------------- /src/components/NavLinks.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/NavLinks.tsx -------------------------------------------------------------------------------- /src/components/NextImage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/NextImage.tsx -------------------------------------------------------------------------------- /src/components/ThemeProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/ThemeProvider.tsx -------------------------------------------------------------------------------- /src/components/sanity/ExitPreview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/sanity/ExitPreview.tsx -------------------------------------------------------------------------------- /src/components/sanity/PreviewCategory.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/sanity/PreviewCategory.tsx -------------------------------------------------------------------------------- /src/components/sanity/PreviewGallery.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/sanity/PreviewGallery.tsx -------------------------------------------------------------------------------- /src/components/sanity/PreviewSuspense.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/components/sanity/PreviewSuspense.tsx -------------------------------------------------------------------------------- /src/icons/Spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/icons/Spinner.tsx -------------------------------------------------------------------------------- /src/lib/sanity.api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/lib/sanity.api.ts -------------------------------------------------------------------------------- /src/lib/sanity.client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/lib/sanity.client.ts -------------------------------------------------------------------------------- /src/lib/sanity.preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/lib/sanity.preview.ts -------------------------------------------------------------------------------- /src/lib/sanity.theme.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/lib/sanity.theme.ts -------------------------------------------------------------------------------- /src/utils/Groq.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/utils/Groq.ts -------------------------------------------------------------------------------- /src/utils/Types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/src/utils/Types.ts -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/tailwind.config.js -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jukkun/image-gallery/HEAD/tsconfig.json --------------------------------------------------------------------------------