Skip to content

Added welcome page #566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const SegmentSubtitle = ({ label }: { label: string }) => {
);
};
const getDocsPath = [
'/overview/welcome',
'/overview/what-is-jsonschema',
'/overview/sponsors',
'/overview/casestudies',
Expand Down Expand Up @@ -333,10 +334,7 @@ export const DocsNav = () => {
className={classnames('ml-6', { hidden: !active.getDocs })}
id='overview'
>
<DocLink
uri='/overview/what-is-jsonschema'
label='What is JSON Schema?'
/>
<DocLink uri='/overview/welcome' label='Welcome' />
<DocLink uri='/overview/sponsors' label='Sponsors' />
<DocLink uri='/overview/casestudies' label='Case Studies' />
<DocLink
Expand Down Expand Up @@ -379,6 +377,10 @@ export const DocsNav = () => {
className={classnames('ml-6', { hidden: !active.getStarted })}
id='getStarted'
>
<DocLink
uri='/overview/what-is-jsonschema'
label='What is JSON Schema?'
/>
<DocLink
uri='/learn/getting-started-step-by-step'
label='Creating your first schema'
Expand Down
77 changes: 77 additions & 0 deletions pages/overview/welcome/index.page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import React from 'react';
import { getLayout } from '~/components/Sidebar';
import Head from 'next/head';
import { Headline1 } from '~/components/Headlines';
import { SectionContext } from '~/context';
import Card from '~/components/Card';

export default function Welcome() {
const newTitle = 'Welcome';
const data = [
{
title: 'Overview',
summary:
'Ut minim anim non deserunt veniam. Ex sit eu voluptate labore sunt aute ',
logo: '/icons/eye.svg',
links: {
lang: 'URL1',
url: '/overview/what-is-jsonschema',
},
},
{
title: 'Getting Started',
summary:
'Sit anim eu sunt nisi. Tempor cupidatat voluptate nostrud voluptate deserunt cupidatat dolor magna irure deserunt.',
logo: '/icons/compass.svg',
links: {
lang: 'URL1',
url: '/learn/getting-started-step-by-step',
},
},
{
title: 'Reference',
summary:
'Adipisicing minim ex amet occaecat dolore quis nisi voluptate sit.',
logo: '/icons/book.svg',
links: {
lang: 'URL1',
url: '/learn/glossary',
},
},
{
title: 'Specification',
summary:
'Deserunt et fugiat do adipisicing enim in nostrud Lorem anim ut amet enim.',
logo: '/icons/clipboard.svg',
links: {
lang: 'URL1',
url: '/specification',
},
},
];
return (
<SectionContext.Provider value='docs'>
<Head>
<title>{newTitle}</title>
</Head>
<Headline1>{newTitle}</Headline1>
<p>
Veniam ea fugiat exercitation laboris non est nulla id pariatur ex. Qui
occaecat fugiat sunt exercitation adipisicing culpa reprehenderit
consectetur amet in. Qui fugiat amet do eu.
</p>
<div className='w-full lg:w-full grid grid-cols-1 md:grid-cols-2 gap-6 my-[10px] mx-auto mt-8'>
{data.map((element: any, index: any) => (
<Card
key={index}
title={element.title}
body={element.summary}
icon={element.logo}
link={element.links.url}
/>
))}
</div>
</SectionContext.Provider>
);
}
Welcome.getLayout = getLayout;