Skip to content

Commit

Permalink
add module thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchuman committed Nov 8, 2024
1 parent f3c19f4 commit 6be3936
Show file tree
Hide file tree
Showing 22 changed files with 8 additions and 1 deletion.
Binary file added public/admin/thumbnails/accordion-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/blog-frontpage.webp
Binary file not shown.
Binary file added public/admin/thumbnails/blog-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/blog-post-content.webp
Binary file not shown.
Binary file added public/admin/thumbnails/breadcrumbs.webp
Binary file not shown.
Binary file added public/admin/thumbnails/callout.webp
Binary file not shown.
Binary file added public/admin/thumbnails/card-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/creative-module.webp
Binary file not shown.
Binary file added public/admin/thumbnails/custom-html.webp
Binary file not shown.
Binary file added public/admin/thumbnails/flag-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/hero.saas.webp
Binary file not shown.
Binary file added public/admin/thumbnails/hero.split.webp
Binary file not shown.
Binary file added public/admin/thumbnails/hero.webp
Binary file not shown.
Binary file added public/admin/thumbnails/logo-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/pricing-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/richtext-module.webp
Binary file not shown.
Binary file added public/admin/thumbnails/stat-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/step-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/tabbed-content.webp
Binary file not shown.
Binary file added public/admin/thumbnails/testimonial-list.webp
Binary file not shown.
Binary file added public/admin/thumbnails/testimonial.featured.webp
Binary file not shown.
9 changes: 8 additions & 1 deletion src/sanity/schemas/documents/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,14 @@ export default defineType({
],
options: {
insertMenu: {
views: [{ name: 'list' }, { name: 'grid' }],
views: [
{
name: 'grid',
previewImageUrl: (schemaType) =>
`/admin/thumbnails/${schemaType}.webp`,
},
{ name: 'list' },
],
groups: [
{ name: 'blog', of: ['blog-list', 'blog-post-content'] },
{ name: 'hero', of: ['hero', 'hero.saas', 'hero.split'] },
Expand Down

0 comments on commit 6be3936

Please sign in to comment.