File tree Expand file tree Collapse file tree 4 files changed +55
-2
lines changed Expand file tree Collapse file tree 4 files changed +55
-2
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ const getDocsPath = [
98
98
'/overview/faq' ,
99
99
] ;
100
100
const getStartedPath = [
101
+ '/learn' ,
101
102
'/learn/json-schema-examples' ,
102
103
'/learn/file-system' ,
103
104
'/learn/miscellaneous-examples' ,
@@ -414,11 +415,17 @@ export const DocsNav = ({
414
415
className = { classnames ( 'ml-6' , { hidden : ! active . getStarted } ) }
415
416
id = 'getStarted'
416
417
>
418
+ < DocLink uri = '/learn' label = 'Overview' setOpen = { setOpen } />
417
419
< DocLink
418
420
uri = '/learn/getting-started-step-by-step'
419
421
label = 'Creating your first schema'
420
422
setOpen = { setOpen }
421
423
/>
424
+ < DocLinkBlank
425
+ uri = 'https://tour.json-schema.org/'
426
+ label = 'Tour of JSON Schema'
427
+ setOpen = { setOpen }
428
+ />
422
429
< SegmentSubtitle label = 'Examples' />
423
430
< div className = 'pl-4 pb-1 pt-1' >
424
431
< DocLink
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default function Welcome() {
39
39
body = 'Our Getting Started guide walks you through the basics of JSON Schema.'
40
40
headerSize = 'medium'
41
41
bodyTextSize = 'small'
42
- link = '/learn/getting-started-step-by-step '
42
+ link = '/learn'
43
43
/>
44
44
< Card
45
45
icon = '/icons/book.svg'
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ const Home = (props: any) => {
257
257
258
258
< div className = 'lg:w-[650px] mx-auto my-10 grid grid-cols-1 lg:grid-cols-3 gap-8 justify-items-center ' >
259
259
< Link
260
- href = '/learn/getting-started-step-by-step '
260
+ href = '/learn'
261
261
className = 'flex items-center justify-center rounded border-2 border-white dark:border-none hover:bg-blue-700 transition-all duration-300 ease-in-out text-white w-[194px] h-[40px] font-semibold bg-primary dark:shadow-2xl'
262
262
>
263
263
Getting started
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import { getLayout } from '~/components/Sidebar' ;
3
+ import Head from 'next/head' ;
4
+ import { Headline1 } from '~/components/Headlines' ;
5
+ import { SectionContext } from '~/context' ;
6
+ import Card from '~/components/Card' ;
7
+ import { DocsHelp } from '~/components/DocsHelp' ;
8
+
9
+ export default function Welcome ( ) {
10
+ const markdownFile = '_indexPage' ;
11
+
12
+ const newTitle = 'Getting Started' ;
13
+ return (
14
+ < SectionContext . Provider value = 'learn' >
15
+ < Head >
16
+ < title > { newTitle } </ title >
17
+ </ Head >
18
+ < Headline1 > { newTitle } </ Headline1 >
19
+ < p >
20
+ New to JSON Schema and don't know where to start?
21
+ < br />
22
+ < br />
23
+ </ p >
24
+ < div className = 'w-full lg:w-full grid grid-cols-1 sm:grid-cols-2 gap-6 my-[10px] mx-auto mt-8' >
25
+ < Card
26
+ title = 'Creating your first Schema'
27
+ body = 'Our Getting Started guide walks you through the basics of JSON Schema.'
28
+ headerSize = 'medium'
29
+ bodyTextSize = 'small'
30
+ extended = { true }
31
+ link = '/learn/getting-started-step-by-step'
32
+ />
33
+ < Card
34
+ title = 'Tour of JSON Schema'
35
+ body = 'An interactive introduction to JSON Schema. Each lesson concludes with an exercise, so you can practice what you have learned.'
36
+ headerSize = 'medium'
37
+ bodyTextSize = 'small'
38
+ extended = { true }
39
+ link = 'https://tour.json-schema.org/'
40
+ />
41
+ </ div >
42
+ < DocsHelp markdownFile = { markdownFile } />
43
+ </ SectionContext . Provider >
44
+ ) ;
45
+ }
46
+ Welcome . getLayout = getLayout ;
You can’t perform that action at this time.
0 commit comments