Hi @sarabjottt! Here’s how to do it. Btw. do join slack.sanity.io if you need more help and pointers from the @sanity_io team and a couple of thousand devs :) gist.github.com/kmelve/d6f4488…
Community Digest #19
This week, we bring GROQ to Gatsby, tip-of-the-week, a deep dive into blog design, a new game for Amazon Alexa, and other new projects launched with Sanity!
Published
Knut Melvær
Head of Developer Community and Education
The community has shared a lot of cool stuff this week, like they do every week. In fact, there is so much cool stuff happening that we are now looking for another person to join the developer relations team! Head over to sanity.io/careers to find the job description, among the other ones we have out. We would love to learn more about you!
Community Hightlights
Gatsby got GROQed!
We‘re fans of both GraphQL and GROQ here at Sanity HQ. That being said, observing that some really love working with GROQ are heartwarming. We were extra amazed when Kevin McAloon shared his first-class implementation of GROQ into Gatsby. Gatsby comes with a GraphQL API out of the box, that lets you generate pages, and do static queries in template components. Kevin managed to replicate this behavior with GROQ and package it as a plugin. It’s still early days, so there might be quirks, but the demo is pretty darn impressive.
Give Kevin your stars on GitHubHow to upload multiple images
We should probably run a “tip of the week” section in this community digest, so why not start with a question we got about uploading multiple images? We shared this gist with Sarabjot Singh on Twitter. Bottom line: You can drag and drop a bunch of image files onto an array field of images.
Designing your own blog
Dylan guest-blogged about how they moved the Mux blog to Sanity.io a couple of weeks ago (and wrote a guide for the migration). Now his designer colleague Steven has blogged about all the decisions and choices that went into actually designing the new blog. An interesting deep dive into their design process – well worth the read!
As a developer, it's always fun when you get to work with a great designer and help bring their ideas to life. @sstriegs talks about redisgning our company blog (now powered by @sanity_io and @gatsbyjs) mux.com/blog/lets-just…
Page transitions
We keep seeing interesting creative sites being shared in the community. We love that there is still room for experimenting and exploring in web design.
Tweet not found
The embedded tweet could not be found…
Praiseworthy
The section where we unshamedly share some of the praise we have been including in on the bird site.
We love being David’s first tool on his list!
So I am working on a couple of new projects in my new role, and once again find @sanity_io being the first tool on my list. This time, it's react and Gatsby at the front end, though, so that should be a fun new experience.
Do you remember Squizzy? The full-blown quiz app that we launched before the holidays? We have seen people using it all over. We think it super cool that it is making the rounds on meetups too!
We’ve used Squizzy, an open source real time quiz app from @sanity_io for our meet-up @cloudseclondon twice now and it’s always gone down a storm. Check it out here: sanity.io/blog/introduci…
The reception for the Kitchen Sink Starter has been great. And we’re glad we got Naya’s endorsement!
Tweet not found
The embedded tweet could not be found…
Sometimes Portable Text feels like this secret little mega-powerful thing that we should tell more people about. We’re happy that Bartosz is helping us by making some great points about it.
The Portable-Text feature from @sanity_io is so incredible powerful. It outplays so many other competitors because it integrates so well into the editing workflow that you never have to leave the edit-screen to create another piece of content
Built with Sanity
Eunjae’s new personal website
Eunjae, software engineer over at Algolia, launched his new blog this week, and wrote the following:
My new personal website is up!
There are bunch of stuff to improve, but I'm quite happy with it.
It was really fun and I've made some interesting choices which I will probably cover later on.
My new personal website is up! There are bunch of stuff to improve, but I'm quite happy with it. @gatsbyjs + @sanity_io + @Netlify + ThemeUI It was really fun and I've made some interesting choices which I will probably cover later on 😁 🔥 VISIT → eunjae.dev
You should also watch Eunjae’s short introduction to headless CMS, where he also shows how he has set up his blog:
Amazon Alexa Game: Number Spies
Mark Tucker shared this cool use case with us, where he has used Sanity as the backend for a new voice-based game called Number Spies:
Number Spies is a game for Amazon Alexa where you decode messages, travel the world, and go on top secret missions. There is a companion website (numberspies.com) and a Facebook page.Sanity was used on this project to provide content to the Alexa skill that is used in text-to-speech (TTS) responses:
- Announcements - messages when the game starts
- One-Time Pad - lists of numbers to encode/decode transmissions
- Verify Codes - a unique, time-based code used to get points in the voice game for real world activities
- Transmissions - encoded messages for a specific day
- Cities - locations that (for a specific day) when visited gives you extra points
- Trips - Things that can happen when you travel
- Missions - Things that can happen when you go on a mission
- Posts - Content for puzzles
- Definitions - spy terms and definitions
Besides custom documents, Sanity Studio has been modified with:
m- Document initial values
- Document field validations
- Document preview
- Document actions
-A new panel level for Filters
I found Sanity to be a great CMS for voice games. It gives me the ability to customize content and control it as I need to.This game is currently released in the U.S. Alexa Skill Store, I would love for you to give the game a try and leave your feedback at numberspies/contact
New website for CPGroup
Damon Morda and his team at Branded Clever built the new website for CPGroup with Sanity, Gatsby, and Netlify. A nice demonstration of structured content as well, if you take a closer look at the screenshots of the Studio. Damon had this to say about the process:
Launched a new website for the CPGroup, a manufacturers' representative for contract furniture, fabrics, signage, and glass. Built this one in an entirely new stack using Gatsby, Sanity, and Netlify. Incredible developer experience!
Launched a new website for the CPGroup, a manufacturers' representative for contract furniture, fabrics, signage, and glass. Built this one in an entirely new stack using @gatsbyjs, @sanity_io, and @Netlify. Incredible developer experience! cpgrouppgh.com.