|
1 | 1 | import Image from 'next/image';
|
| 2 | +import { Inter } from 'next/font/google'; |
2 | 3 |
|
3 |
| -import Nav from 'components/nav'; |
| 4 | +import Nav from '@/components/nav'; |
4 | 5 |
|
5 |
| -export default function Main() { |
| 6 | +const inter = Inter({ subsets: ['latin'] }); |
| 7 | + |
| 8 | +export default function Home() { |
6 | 9 | return (
|
7 |
| - <div className="min-h-screen px-2 py-0 flex flex-col justify-center items-center"> |
| 10 | + <> |
8 | 11 | <Nav />
|
9 |
| - <main className="px-0 py-20 flex flex-1 flex-col justify-center items-center"> |
10 |
| - <h1 className="text-4xl mb-3 text-center"> |
11 |
| - Welcome to{' '} |
12 |
| - <a |
13 |
| - href="https://nextjs.org" |
14 |
| - className="text-blue-600 no-underline hover:underline focus:underline active:underline" |
15 |
| - > |
16 |
| - Next.js |
17 |
| - </a> |
18 |
| - {' + '} |
19 |
| - <a |
20 |
| - href="https://www.typescriptlang.org/" |
21 |
| - className="text-blue-600 no-underline hover:underline focus:underline active:underline" |
22 |
| - > |
23 |
| - Typescript |
24 |
| - </a> |
25 |
| - {' + '} |
26 |
| - <a |
27 |
| - href="https://tailwindcss.com/" |
28 |
| - className="text-blue-600 no-underline hover:underline focus:underline active:underline" |
29 |
| - > |
30 |
| - Tailwind CSS! |
31 |
| - </a> |
32 |
| - </h1> |
| 12 | + <main |
| 13 | + className={`flex min-h-screen flex-col items-center justify-between p-24 ${inter.className}`} |
| 14 | + > |
| 15 | + <div className="z-10 max-w-5xl w-full items-center justify-between font-mono text-sm lg:flex"> |
| 16 | + <p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30"> |
| 17 | + Get started by editing |
| 18 | + <code className="font-mono font-bold">pages/index.tsx</code> |
| 19 | + </p> |
| 20 | + <div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:h-auto lg:w-auto lg:bg-none"> |
| 21 | + <a |
| 22 | + className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0" |
| 23 | + href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
| 24 | + target="_blank" |
| 25 | + rel="noopener noreferrer" |
| 26 | + > |
| 27 | + By{' '} |
| 28 | + <Image |
| 29 | + src="/vercel.svg" |
| 30 | + alt="Vercel Logo" |
| 31 | + className="dark:invert" |
| 32 | + width={100} |
| 33 | + height={24} |
| 34 | + priority |
| 35 | + /> |
| 36 | + </a> |
| 37 | + </div> |
| 38 | + </div> |
33 | 39 |
|
34 |
| - <p className="text-xl text-center"> |
35 |
| - Get started by editing{' '} |
36 |
| - <code className="bg-gray-50 rounded-md p-3 text-base font-mono"> |
37 |
| - pages/index.tsx |
38 |
| - </code> |
39 |
| - </p> |
| 40 | + <div className="relative flex place-items-center before:absolute before:h-[300px] before:w-[480px] before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-[240px] after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700/10 after:dark:from-sky-900 after:dark:via-[#0141ff]/40 before:lg:h-[360px]"> |
| 41 | + <Image |
| 42 | + className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert" |
| 43 | + src="/next.svg" |
| 44 | + alt="Next.js Logo" |
| 45 | + width={180} |
| 46 | + height={37} |
| 47 | + priority |
| 48 | + /> |
| 49 | + </div> |
40 | 50 |
|
41 |
| - <div className="flex flex-wrap justify-center items-center max-w-screen-md mt-12 sm:w-full"> |
| 51 | + <div className="mb-32 grid text-center lg:max-w-5xl lg:w-full lg:mb-0 lg:grid-cols-4 lg:text-left"> |
42 | 52 | <a
|
43 |
| - href="https://nextjs.org/docs" |
44 |
| - className="w-72 flex-grow flex-shrink-0 m-4 p-5 text-left no-underline border border-gray-200 rounded-xl transition duration-500 ease-in-out transform hover:text-blue-600 hover:border-2 hover:border-blue-600 focus:text-blue-600 focus:border-blue-600 active:text-blue-600 active:border-blue-600" |
| 53 | + href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
| 54 | + className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" |
| 55 | + target="_blank" |
| 56 | + rel="noopener noreferrer" |
45 | 57 | >
|
46 |
| - <h3 className="mb-4 text-xl">Documentation →</h3> |
47 |
| - <p className="text-xl"> |
| 58 | + <h2 className={`mb-3 text-2xl font-semibold`}> |
| 59 | + Docs{' '} |
| 60 | + <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> |
| 61 | + -> |
| 62 | + </span> |
| 63 | + </h2> |
| 64 | + <p className={`m-0 max-w-[30ch] text-sm opacity-50`}> |
48 | 65 | Find in-depth information about Next.js features and API.
|
49 | 66 | </p>
|
50 | 67 | </a>
|
51 | 68 |
|
52 | 69 | <a
|
53 |
| - href="https://nextjs.org/learn" |
54 |
| - className="w-72 flex-grow flex-shrink-0 m-4 p-5 text-left no-underline border border-gray-200 rounded-xl transition duration-500 ease-in-out transform hover:text-blue-600 hover:border-2 hover:border-blue-600 focus:text-blue-600 focus:border-blue-600 active:text-blue-600 active:border-blue-600" |
| 70 | + href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
| 71 | + className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" |
| 72 | + target="_blank" |
| 73 | + rel="noopener noreferrer" |
55 | 74 | >
|
56 |
| - <h3 className="mb-4 text-xl">Learn →</h3> |
57 |
| - <p className="text-xl"> |
58 |
| - Learn about Next.js in an interactive course with quizzes! |
| 75 | + <h2 className={`mb-3 text-2xl font-semibold`}> |
| 76 | + Learn{' '} |
| 77 | + <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> |
| 78 | + -> |
| 79 | + </span> |
| 80 | + </h2> |
| 81 | + <p className={`m-0 max-w-[30ch] text-sm opacity-50`}> |
| 82 | + Learn about Next.js in an interactive course with quizzes! |
59 | 83 | </p>
|
60 | 84 | </a>
|
61 | 85 |
|
62 | 86 | <a
|
63 |
| - href="https://github.com/vercel/next.js/tree/master/examples" |
64 |
| - className="w-72 flex-grow flex-shrink-0 m-4 p-5 text-left no-underline border border-gray-200 rounded-xl transition duration-500 ease-in-out transform hover:text-blue-600 hover:border-2 hover:border-blue-600 focus:text-blue-600 focus:border-blue-600 active:text-blue-600 active:border-blue-600" |
| 87 | + href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
| 88 | + className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" |
| 89 | + target="_blank" |
| 90 | + rel="noopener noreferrer" |
65 | 91 | >
|
66 |
| - <h3 className="mb-4 text-xl">Examples →</h3> |
67 |
| - <p className="text-xl"> |
68 |
| - Discover and deploy boilerplate example Next.js projects. |
| 92 | + <h2 className={`mb-3 text-2xl font-semibold`}> |
| 93 | + Templates{' '} |
| 94 | + <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> |
| 95 | + -> |
| 96 | + </span> |
| 97 | + </h2> |
| 98 | + <p className={`m-0 max-w-[30ch] text-sm opacity-50`}> |
| 99 | + Discover and deploy boilerplate example Next.js projects. |
69 | 100 | </p>
|
70 | 101 | </a>
|
71 | 102 |
|
72 | 103 | <a
|
73 |
| - href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
74 |
| - className="w-72 flex-grow flex-shrink-0 m-4 p-5 text-left no-underline border border-gray-200 rounded-xl transition duration-500 ease-in-out transform hover:text-blue-600 hover:border-2 hover:border-blue-600 focus:text-blue-600 focus:border-blue-600 active:text-blue-600 active:border-blue-600" |
| 104 | + href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app" |
| 105 | + className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30" |
| 106 | + target="_blank" |
| 107 | + rel="noopener noreferrer" |
75 | 108 | >
|
76 |
| - <h3 className="mb-4 text-xl">Deploy →</h3> |
77 |
| - <p className="text-xl"> |
78 |
| - Instantly deploy your Next.js site to a public URL with Vercel. |
| 109 | + <h2 className={`mb-3 text-2xl font-semibold`}> |
| 110 | + Deploy{' '} |
| 111 | + <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none"> |
| 112 | + -> |
| 113 | + </span> |
| 114 | + </h2> |
| 115 | + <p className={`m-0 max-w-[30ch] text-sm opacity-50`}> |
| 116 | + Instantly deploy your Next.js site to a shareable URL with Vercel. |
79 | 117 | </p>
|
80 | 118 | </a>
|
81 | 119 | </div>
|
82 | 120 | </main>
|
83 |
| - |
84 |
| - <footer className="w-full h-24 border-gray-200 border-t-2 flex justify-center items-center"> |
85 |
| - <a |
86 |
| - href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
87 |
| - target="_blank" |
88 |
| - rel="noopener noreferrer" |
89 |
| - className="flex items-center justify-center" |
90 |
| - > |
91 |
| - Powered by{' '} |
92 |
| - <Image |
93 |
| - src="/vercel.svg" |
94 |
| - alt="Vercel Logo" |
95 |
| - className="h-4 ml-2" |
96 |
| - width={70} |
97 |
| - height={70} |
98 |
| - /> |
99 |
| - </a> |
100 |
| - </footer> |
101 |
| - </div> |
| 121 | + </> |
102 | 122 | );
|
103 | 123 | }
|
0 commit comments