diff options
author | 2021-08-17 15:25:09 -0700 | |
---|---|---|
committer | 2021-08-17 15:25:09 -0700 | |
commit | 7a1ca0bc0cb93f62daedfb4d5dee1bd22020a9d2 (patch) | |
tree | c4a7ff448cbd9b4976b8071b2e5fd49732d18840 /demos/hello-next/pages/index.tsx | |
parent | ae01e9b98d481332236976344fa0386bafa82f53 (diff) | |
download | bun-7a1ca0bc0cb93f62daedfb4d5dee1bd22020a9d2.tar.gz bun-7a1ca0bc0cb93f62daedfb4d5dee1bd22020a9d2.tar.zst bun-7a1ca0bc0cb93f62daedfb4d5dee1bd22020a9d2.zip |
add React.Children.only pollyfill
Former-commit-id: e140319390f56979487444529ca49a677264ad57
Diffstat (limited to 'demos/hello-next/pages/index.tsx')
-rw-r--r-- | demos/hello-next/pages/index.tsx | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/demos/hello-next/pages/index.tsx b/demos/hello-next/pages/index.tsx new file mode 100644 index 000000000..2866bad51 --- /dev/null +++ b/demos/hello-next/pages/index.tsx @@ -0,0 +1,78 @@ +import Head from "next/head"; +import Image from "next/image"; +import styles from "../styles/Home.module.css"; +import Link from "next/link"; + +import Title from "../components/Title"; + +export default function Home() { + 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}> + Welcom <a href="https://nextjs.org">Next.js!</a> + </h1> + + <Title /> + + <Link href="/blue"> + <a>Blue page</a> + </Link> + + <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 →</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 →</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 →</h2> + <p>Discover and deploy boilerplate example Next.js projects.</p> + </a> + + <a + href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" + className={styles.card} + > + <h2>Deploy →</h2> + <p> + Instantly deploy your Next.js site to a public URL with Vercel. + </p> + </a> + </div> + </main> + + <footer className={styles.footer}> + <a + href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" + target="_blank" + rel="noopener noreferrer" + > + Powered by{" "} + <span className={styles.logo}> + <img src="/vercel.svg" alt="Vercel Logo" width={72} height={16} /> + </span> + </a> + </footer> + </div> + ); +} |