Create pages/index.js
Browse files- pages/index.js +43 -0
pages/index.js
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import Head from 'next/head';
|
2 |
+
import Link from 'next/link';
|
3 |
+
import styles from '../styles/Home.module.css'; // We'll create this style later
|
4 |
+
|
5 |
+
export default function Home() {
|
6 |
+
return (
|
7 |
+
<div className={styles.container}>
|
8 |
+
<Head>
|
9 |
+
<title>Next.js Tutor App</title>
|
10 |
+
<meta name="description" content="Learn Next.js concepts" />
|
11 |
+
<link rel="icon" href="/favicon.ico" />
|
12 |
+
</Head>
|
13 |
+
|
14 |
+
<main className={styles.main}>
|
15 |
+
<h1 className={styles.title}>
|
16 |
+
Welcome to the Next.js Tutor App!
|
17 |
+
</h1>
|
18 |
+
|
19 |
+
<p className={styles.description}>
|
20 |
+
Use this app to explore basic Next.js concepts.
|
21 |
+
</p>
|
22 |
+
|
23 |
+
<div className={styles.grid}>
|
24 |
+
<Link href="/basic-page" className={styles.card}>
|
25 |
+
<h2>Basic Page →</h2>
|
26 |
+
<p>See how simple pages are created in Next.js.</p>
|
27 |
+
</Link>
|
28 |
+
|
29 |
+
<Link href="/component-example" className={styles.card}>
|
30 |
+
<h2>Components →</h2>
|
31 |
+
<p>Learn about using React components in Next.js.</p>
|
32 |
+
</Link>
|
33 |
+
|
34 |
+
{/* Add more links as you add more examples */}
|
35 |
+
</div>
|
36 |
+
</main>
|
37 |
+
|
38 |
+
<footer className={styles.footer}>
|
39 |
+
Powered by Next.js
|
40 |
+
</footer>
|
41 |
+
</div>
|
42 |
+
);
|
43 |
+
}
|