|
1 | | -import Image from 'next/image'; |
2 | 1 | import Head from 'next/head'; |
3 | | -import styles from '../styles/Home.module.css'; |
| 2 | +import Image from 'next/image'; |
| 3 | +import { Inter } from 'next/font/google'; |
| 4 | +import styles from '@/styles/Home.module.css'; |
| 5 | + |
| 6 | +const inter = Inter({ subsets: ['latin'] }); |
4 | 7 |
|
5 | 8 | export default function Home() { |
6 | 9 | return ( |
7 | | - <div className={styles.container}> |
| 10 | + <> |
8 | 11 | <Head> |
9 | 12 | <title>Next Typescript Starter</title> |
| 13 | + <meta |
| 14 | + name="description" |
| 15 | + content="Generated by create next app and customized" |
| 16 | + /> |
| 17 | + <meta name="viewport" content="width=device-width, initial-scale=1" /> |
10 | 18 | <link rel="icon" href="/favicon.ico" /> |
11 | 19 | </Head> |
12 | 20 |
|
13 | | - <main className={styles.main}> |
14 | | - <h1 className={styles.title}> |
15 | | - Welcome to <a href="https://nextjs.org">Next.js!</a> |
16 | | - </h1> |
| 21 | + <main className={`${styles.main} ${inter.className}`}> |
| 22 | + <div className={styles.description}> |
| 23 | + <p> |
| 24 | + Get started by editing |
| 25 | + <code className={styles.code}>pages/index.tsx</code> |
| 26 | + </p> |
| 27 | + <div> |
| 28 | + <a |
| 29 | + href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
| 30 | + target="_blank" |
| 31 | + rel="noopener noreferrer" |
| 32 | + > |
| 33 | + By{' '} |
| 34 | + <Image |
| 35 | + src="/vercel.svg" |
| 36 | + alt="Vercel Logo" |
| 37 | + className={styles.vercelLogo} |
| 38 | + width={100} |
| 39 | + height={24} |
| 40 | + priority |
| 41 | + /> |
| 42 | + </a> |
| 43 | + </div> |
| 44 | + </div> |
17 | 45 |
|
18 | | - <p className={styles.description}> |
19 | | - Get started by editing{' '} |
20 | | - <code className={styles.code}>pages/index.tsx</code> |
21 | | - </p> |
| 46 | + <div className={styles.center}> |
| 47 | + <Image |
| 48 | + className={styles.logo} |
| 49 | + src="/next.svg" |
| 50 | + alt="Next.js Logo" |
| 51 | + width={180} |
| 52 | + height={37} |
| 53 | + priority |
| 54 | + /> |
| 55 | + </div> |
22 | 56 |
|
23 | 57 | <div className={styles.grid}> |
24 | | - <a href="https://nextjs.org/docs" className={styles.card}> |
25 | | - <h3>Documentation →</h3> |
26 | | - <p>Find in-depth information about Next.js features and API.</p> |
| 58 | + <a |
| 59 | + href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
| 60 | + className={styles.card} |
| 61 | + target="_blank" |
| 62 | + rel="noopener noreferrer" |
| 63 | + > |
| 64 | + <h2> |
| 65 | + Docs <span>-></span> |
| 66 | + </h2> |
| 67 | + <p> |
| 68 | + Find in-depth information about Next.js features and API. |
| 69 | + </p> |
27 | 70 | </a> |
28 | 71 |
|
29 | | - <a href="https://nextjs.org/learn" className={styles.card}> |
30 | | - <h3>Learn →</h3> |
31 | | - <p>Learn about Next.js in an interactive course with quizzes!</p> |
| 72 | + <a |
| 73 | + href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
| 74 | + className={styles.card} |
| 75 | + target="_blank" |
| 76 | + rel="noopener noreferrer" |
| 77 | + > |
| 78 | + <h2> |
| 79 | + Learn <span>-></span> |
| 80 | + </h2> |
| 81 | + <p> |
| 82 | + Learn about Next.js in an interactive course with quizzes! |
| 83 | + </p> |
32 | 84 | </a> |
33 | 85 |
|
34 | 86 | <a |
35 | | - href="https://github.com/vercel/next.js/tree/master/examples" |
| 87 | + href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
36 | 88 | className={styles.card} |
| 89 | + target="_blank" |
| 90 | + rel="noopener noreferrer" |
37 | 91 | > |
38 | | - <h3>Examples →</h3> |
39 | | - <p>Discover and deploy boilerplate example Next.js projects.</p> |
| 92 | + <h2> |
| 93 | + Templates <span>-></span> |
| 94 | + </h2> |
| 95 | + <p> |
| 96 | + Discover and deploy boilerplate example Next.js projects. |
| 97 | + </p> |
40 | 98 | </a> |
41 | 99 |
|
42 | 100 | <a |
43 | 101 | href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
44 | 102 | className={styles.card} |
| 103 | + target="_blank" |
| 104 | + rel="noopener noreferrer" |
45 | 105 | > |
46 | | - <h3>Deploy →</h3> |
| 106 | + <h2> |
| 107 | + Deploy <span>-></span> |
| 108 | + </h2> |
47 | 109 | <p> |
48 | | - Instantly deploy your Next.js site to a public URL with Vercel. |
| 110 | + Instantly deploy your Next.js site to a shareable URL |
| 111 | + with Vercel. |
49 | 112 | </p> |
50 | 113 | </a> |
51 | 114 | </div> |
52 | 115 | </main> |
53 | | - |
54 | | - <footer className={styles.footer}> |
55 | | - <a |
56 | | - href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
57 | | - target="_blank" |
58 | | - rel="noopener noreferrer" |
59 | | - > |
60 | | - Powered by{' '} |
61 | | - <Image |
62 | | - src="/vercel.svg" |
63 | | - alt="Vercel Logo" |
64 | | - className={styles.logo} |
65 | | - width={70} |
66 | | - height={70} |
67 | | - /> |
68 | | - </a> |
69 | | - </footer> |
70 | | - </div> |
| 116 | + </> |
71 | 117 | ); |
72 | 118 | } |
0 commit comments