Рет қаралды 17,521
Every web developer dreams about own blog where he/she will be able to share knowledges, own stories, everything whatever she/he wants. In this video we will create a full stack block on technologies sanity.io and react (next.js). Furthermore at the end of video we will deploy this project with vercel.com.
🍀 Support the channel: www.donationalerts.com/r/webe...
☕️ Buy me a coffee: buy.stripe.com/5kA7sL9574SG7x...
🥰 Buy my brushes for Procreate: webelart.com/illustration.
✍️ My telegram channel: t.me/webelart_en
🪆 Russian KZfaq: @webelart
💁🏼♀️ My instagram: / webelart
🦄 Company LinkedIn: / webelart
❤️ GitHub start project: github.com/liveldi/my_blog_start
Links:
😌 Build and Deploy a Modern Full Stack ECommerce React Application with Stripe • Build and Deploy a Mod...
😌 date-fns: date-fns.org
😌 React icons: react-icons.github.io/react-i...
😌 Sanity client: www.npmjs.com/package/@sanity...
😌 Sanity block content to react: www.npmjs.com/package/@sanity...
😌 Sanity image-url: www.npmjs.com/package/@sanity...
😌 Final example in production: mysuperblog.vercel.app
😌 An useful article about Sanity kittygiraudel.com/2021/07/16/...
😌 Documentation Sanity www.sanity.io
😌 Documentation NextJs nextjs.org
00:00 Intro.
04:22 Setup NextJs project
07:55 Setup Sanity.io
13:10 Start with create schema Post
16:00 Copy start project
18:00 Schema for Post: string, text, slug, image, date, block + image
28:19 Validation.
31:00 Publish post
31:50 Groups in schemas
34:10 Create more posts
38:40 Prepare client project: copy components, styles and etc.
42:10 Upload posts and connect with Sanity using getServerSideProps
46:00 sanityClient + imageUrlBuilder
51:10 GROQ language
56:50 Create layouts - cover
58:20 Fill all components with basic information + snippet rafce
01:06:15 Work with section cover: Section, Cover, SocialNetworks, BuyMeCoffee + ScreenEgg
01:16:50 Prepare post layout: Title, PostGrid, Post + Button
01:29:40 Pagination
01:40:25 Create layout for opened post.
01:43:50 getStaticPaths + getStaticProps
01:50:00 Continue layout for opened post: date-fns, sanity block content to react.
01:57:50 meta titles in NextJs (Head).
01:59:35 push to Github + Deploy on Vercel
🦉 Final Github Link: github.com/liveldi/my_super_blog