Skip to content

Commit

Permalink
update import. add viewport config. add jsdocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Nov 24, 2023
1 parent 68a4196 commit da5e81c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
import '@/app/globals.css'
import Footer from '@/components/Footer'
import Header from '@/components/Header'
import type {Metadata} from 'next'
import type {Metadata, Viewport} from 'next'
import './globals.css'

/**
* Setup metadata.
*
* @see https://nextjs.org/docs/app/building-your-application/optimizing/metadata
*/
export const metadata: Metadata = {
title: 'Next.js WordPress',
description: "It's headless WordPress"
}

/**
* Setup viewport.
*
* @see https://nextjs.org/docs/app/api-reference/functions/generate-viewport
*/
export const viewport: Viewport = {
colorScheme: 'dark',
themeColor: 'black'
}

/**
* Root layout component.
*
Expand Down

0 comments on commit da5e81c

Please sign in to comment.