UNPKG

@nadeshikon/plugin-nextjs

Version:
46 lines (38 loc) 1.52 kB
import Head from 'next/head' import { useRouter } from 'next/router' import styles from '../styles/Home.module.css' export default function Home() { const { locale } = useRouter() return ( <div className={styles.container}> <Head> <title>Create Next App</title> <meta name="description" content="Generated by create next app" /> <link rel="icon" href="/favicon.ico" /> </Head> <main className={styles.main}> <h1 className={styles.title}> Welcome to <a href="https://nextjs.org">Next.js!</a> </h1> <p>The current locale is {locale}</p> <p className={styles.description}> Get started by editing <code className={styles.code}>pages/index.js</code> </p> <div className={styles.grid}> <a href="https://nextjs.org/docs" className={styles.card}> <h2>Documentation &rarr;</h2> <p>Find in-depth information about Next.js features and API.</p> </a> <a href="https://nextjs.org/learn" className={styles.card}> <h2>Learn &rarr;</h2> <p>Learn about Next.js in an interactive course with quizzes!</p> </a> <a href="https://github.com/vercel/next.js/tree/master/examples" className={styles.card}> <h2>Examples &rarr;</h2> <p>Discover and deploy boilerplate example Next.js projects.</p> </a> </div> </main> </div> ) }