Sanity is a robust CMS (content management system), allows you to push data to your site
Install with npm install -g @sanity/cli then sanity init
Schema: what is the shape of the data that you are going to put on this site? You will define it by writing the code for it
Running sanity docs in the terminal opens the documentation in the browser
Running sanity manage in the terminal gives you who can access it
Working with categories rather than products
Fields is an array of things that you want to store about a category, name is how it appears in the key, and type is the kind of file or data type that will be saved
in CSS object: contain; will make sure the whole image will show in the parameters you set
Today I Learned...
Sanity
Sanity is a robust CMS (content management system), allows you to push data to your site
Install with
npm install -g @sanity/cli
thensanity init
Schema: what is the shape of the data that you are going to put on this site? You will define it by writing the code for it
Running sanity docs in the terminal opens the documentation in the browser
Running sanity manage in the terminal gives you who can access it
Working with categories rather than products
Fields is an array of things that you want to store about a category, name is how it appears in the key, and type is the kind of file or data type that will be saved
in CSS
object: contain;
will make sure the whole image will show in the parameters you set