diff --git a/components/NextPrevButton.tsx b/components/NextPrevButton.tsx new file mode 100644 index 000000000..03379ff2f --- /dev/null +++ b/components/NextPrevButton.tsx @@ -0,0 +1,46 @@ +import Image from 'next/image'; +import React from 'react'; + +export default function NextPrevButton({ prev, next }: any) { + return ( +
+
+
+
+ prev icon +
Go Back
+
+
+ {prev} +
+
+
+
+
+
+ next icon +
Up Next
+
+
+ {next} +
+
+
+
+ ); +} diff --git a/pages/learn/[slug].page.tsx b/pages/learn/[slug].page.tsx index f110ff75d..3b478f16b 100644 --- a/pages/learn/[slug].page.tsx +++ b/pages/learn/[slug].page.tsx @@ -7,6 +7,7 @@ import getStaticMarkdownProps from '~/lib/getStaticMarkdownProps'; import { Headline1 } from '~/components/Headlines'; import { SectionContext } from '~/context'; import { DocsHelp } from '~/components/DocsHelp'; +import NextPrevButton from '~/components/NextPrevButton'; export async function getStaticPaths() { return getStaticMarkdownPaths('pages/learn'); @@ -31,6 +32,7 @@ export default function StaticMarkdownPage({ {frontmatter.title} + ); diff --git a/pages/learn/file-system.md b/pages/learn/file-system.md index a408b70b1..4713c6f32 100644 --- a/pages/learn/file-system.md +++ b/pages/learn/file-system.md @@ -1,6 +1,8 @@ --- section: docs title: Modeling a file system with JSON Schema +prev: Modelling a file system +next: Other examples --- In this step-by-step guide you will learn how to design a JSON Schema that mirrors the structure of an `/etc/fstab` file. diff --git a/pages/learn/getting-started-step-by-step.md b/pages/learn/getting-started-step-by-step.md index 31e2cdfde..4c868a14f 100644 --- a/pages/learn/getting-started-step-by-step.md +++ b/pages/learn/getting-started-step-by-step.md @@ -1,6 +1,8 @@ --- title: Creating your first schema section: docs +prev: prev +next: Miscellaneous examples --- JSON Schema is a vocabulary that you can use to annotate and validate JSON documents. This tutorial guides you through the process of creating a JSON Schema document. diff --git a/pages/learn/json-schema-examples.md b/pages/learn/json-schema-examples.md index d86b9656b..9cf69c894 100644 --- a/pages/learn/json-schema-examples.md +++ b/pages/learn/json-schema-examples.md @@ -1,6 +1,8 @@ --- section: docs title: JSON Schema examples +prev: Modelling a file system +next: JSON Schema Glossary --- In this page, you will find examples illustrating different use cases to help you get the most out of your JSON Schemas. These examples cover a wide range of scenarios, and each example comes with accompanying JSON data and explanation, showcasing how JSON Schemas can be applied to various domains. You can modify these examples to suit your specific needs, as this is just one of the many ways you can utilize JSON Schemas. diff --git a/pages/learn/miscellaneous-examples.md b/pages/learn/miscellaneous-examples.md index abf2b8060..433811a57 100644 --- a/pages/learn/miscellaneous-examples.md +++ b/pages/learn/miscellaneous-examples.md @@ -1,6 +1,8 @@ --- section: docs title: Miscellaneous Examples +prev: Creating your first schema +next: Modelling a file system --- In this page, you will find miscellaneous examples illustrating different uses cases to help you get the most out of your JSON Schemas. Each example comes with accompanying JSON data and explanation. diff --git a/public/icons/arrow.svg b/public/icons/arrow.svg new file mode 100644 index 000000000..f4aca3958 --- /dev/null +++ b/public/icons/arrow.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file