import type { Page } from '../payload-types'

export const home: Partial<Page> = {
  title: 'Home Page',
  slug: 'home',
  _status: 'published',
  richText: [
    {
      children: [
        { text: 'This is a ' },
        { type: 'link', newTab: true, url: 'https://nextjs.org/', children: [{ text: '' }] },
        { text: '' },
        {
          type: 'link',
          linkType: 'custom',
          url: 'https://nextjs.org/',
          newTab: true,
          children: [{ text: 'Next.js' }],
        },
        { text: " app made explicitly for Payload's " },
        {
          type: 'link',
          newTab: true,
          url: 'https://github.com/payloadcms/payload/tree/master/examples/redirects/cms',
          children: [{ text: '' }],
        },
        { text: '' },
        {
          type: 'link',
          linkType: 'custom',
          newTab: true,
          url: 'https://github.com/payloadcms/payload/tree/master/examples/preview/cms',
          children: [{ text: 'Preview Example' }],
        },
        { text: '. This example demonstrates how to implement preview into Payload using ' },
        {
          type: 'link',
          newTab: true,
          url: 'https://payloadcms.com/docs/versions/drafts#drafts',
          children: [{ text: 'Drafts' }],
        },
        { text: '.' },
      ],
    },
    { children: [{ text: '' }] },
    {
      children: [
        { text: 'Visit the ' },
        {
          type: 'link',
          linkType: 'custom',
          url: 'http://localhost:3000/example-page',
          children: [{ text: 'example page' }],
        },
        { text: ' to see how access to draft content is controlled. ' },
        {
          type: 'link',
          linkType: 'custom',
          url: 'http://localhost:8000/admin',
          newTab: true,
          children: [{ text: 'Log in' }],
        },
        { text: ' to the admin panel and refresh this page to see the ' },
        {
          type: 'link',
          linkType: 'custom',
          newTab: true,
          url: 'https://github.com/payloadcms/payload-admin-bar',
          children: [{ text: 'Payload Admin Bar' }],
        },
        {
          text: ' appear at the top of the viewport so you can seamlessly navigate between the two apps.',
        },
      ],
    },
  ],
}
