Mô tả

What is Sanity? 

Sanity is the platform for structured content. With Sanity, you can manage your text, images, and other media with APIs. You can also use the open-source single-page application Sanity Studio to set up an editing environment that you can customize quickly. With Sanity, you have access to many APIs, libraries, and tools that helps you leverage the benefits of having all your content available as a single source of truth. This article will quickly walk you through some central concepts, giving you a head start.

What is Next JS?

Next, JS is React framework that provides infrastructure and simple development experience for server-side rendered(SSR) applications.

  • An intuitive page-based routing system (with support for dynamic routes)

  • Pre-rendering, both static generation (SSG) and server-side rendering (SSR) are supported on a per-page basis

About the main project

We will start with integrating an immaculate application layout I have prepared for you. We will follow the latest practices of React and Next JS. This means we will utilize hook functions as much as possible.

After the initial layout and pages are created, we will start preparing actual data in Sanity Studio. I will explain to you the basics of Sanity, and we will prepare two types of documents - Blogs and Authors.

We will specify various fields describing our data, for example, "Code Blocks," "Images," and many others.

After data is fetched, we will display blogs on our application pages. You will learn how to process images and apply stylings to code blocks.

Later in the course, you will learn how to apply different filtering options to the application view, paginate items, and manage to sort the data. You will learn how to use the provider and consumer/concept, which we will use to control our application's light and dark theme.

Next, we will talk about the Preview feature. The preview feature will allow it to display draft blog data before they are published into production.

We will deploy our application into the Vercel platform at the end of the course. The application will be statically optimized and super fast.

Thank you for your time, and I hope to see you in the course.

Bạn sẽ học được gì

Use the latest Next/React features (getStaticProps, getStaticPaths, getServerSideProps)

Create statically generated web apps

Deploy Serverless Apps

Integrate Sanity CMS

Yêu cầu

  • Basics in programming and JS required!
  • Basic knowledge of React JS

Nội dung khoá học

9 sections

Introduction

2 lectures
Introduction
02:08
Course tips
07:57

Project Setup

7 lectures
Section Introduction
01:46
Init Next App
07:47
Sanity Studio App
17:08
React Bootstrap Integration
09:52
Separation of Navbar
09:51
Absolute path to files
02:20
Page layout
16:17

Starting with Sanity

16 lectures
Section Introduction
01:34
Sanity Types
13:24
Sanity client
08:22
Get blogs
11:19
Blog fields & display blogs
08:55
Under the hood
20:57
Date and image
13:29
Authors
06:35
Display author
08:17
Sanity validation
07:23
Fonts + minor styling improvements
06:05
Link and detail page
20:32
Get blog data
11:59
getStaticPaths function
09:15
getStaticPaths part 2
05:30
Blog detail page layout
07:16

Sanity Blog Features

11 lectures
Section Introduction
01:18
Sanity content and Image
10:05
Sanity content and Code
10:12
packageLock
00:55
Blog content
16:14
Code stylings
11:59
Image improvements
17:15
More about images
08:58
Cropping of images
04:53
Image position
08:30
Apply image position
09:21

Blog List View & Client fetching

10 lectures
Section Introduction
01:14
Filtering view start
09:55
Filtering working
08:21
Font awesome
15:14
List item data
03:05
useSWR
11:36
Api route to get blogs
06:11
Update
00:11
Get blogs from api
13:23
Ordering
06:34

Pagination & Date Sorting

12 lectures
Section Introduction
01:19
swr Pagination
21:42
Button to load
11:33
Passing offset
07:18
Fetch more blogs
04:27
Fix fetching more blogs
05:15
Date filtering icon
05:14
Sorting by date
06:36
Fix sorting by date
05:38
Blank image
13:40
Blank list item
11:12
Moment and cover image
13:35

Fallback & Preview + Theme Feature

11 lectures
Section Introduction
02:46
Fallback
15:44
Theme provider
18:35
Apply theme
10:20
Toggler
12:10
Sanity preview
14:25
Preview api route
13:57
Get preview to page
09:55
Get preview data
12:40
Exit preview
02:54
Fix issue to display preview data
04:55

Deployment

13 lectures
Section Introduction
01:21
Sanity studio to Github
15:01
Sanity deployment
22:17
Sanity studio testing
06:34
Deployment of Blog
14:29
Fixing preview in production
06:26
Revalidate Changes
00:16
Unstable revalidate
07:22
Styling Improvements
11:53
Pagination improvements
08:34
Preview fix
04:35
Testing
10:35
End of the course
05:35

Updates

2 lectures
Note
00:12
Pagination
32:02

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.