|
1 |
| -import type { NextPage } from 'next' |
2 |
| -import Head from 'next/head' |
3 |
| -import Image from 'next/image' |
4 |
| -import styles from '../styles/Home.module.css' |
| 1 | +import type { NextPage } from 'next'; |
| 2 | +import Head from 'next/head'; |
| 3 | +import Image from 'next/image'; |
| 4 | +import Link from 'next/link'; |
| 5 | +import styles from '../styles/Home.module.css'; |
| 6 | +import { CurrentUser } from '../src/components/CurrentUser'; |
5 | 7 |
|
6 | 8 | const Home: NextPage = () => {
|
7 | 9 | return (
|
8 |
| - <div className={styles.container}> |
| 10 | + <> |
9 | 11 | <Head>
|
10 |
| - <title>Create Next App</title> |
11 |
| - <meta name="description" content="Generated by create next app" /> |
| 12 | + <title>Hitchlog</title> |
| 13 | + <meta name="description" content="Log your hitchhiking experience" /> |
12 | 14 | <link rel="icon" href="/favicon.ico" />
|
13 | 15 | </Head>
|
14 | 16 |
|
15 |
| - <main className={styles.main}> |
| 17 | + <main> |
| 18 | + <div className='w-full bg-gray-200 h-96' id="map"></div> |
| 19 | + <h1 className="text-3xl font-bold underline">Hello world!</h1> |
| 20 | + |
16 | 21 | <h1 className={styles.title}>
|
17 |
| - Welcome to <a href="https://nextjs.org">Next.js!</a> |
| 22 | + Welcome to <Link href="/">Hitchlog</Link> |
18 | 23 | </h1>
|
19 |
| - |
20 |
| - <p className={styles.description}> |
21 |
| - Get started by editing{' '} |
22 |
| - <code className={styles.code}>pages/index.tsx</code> |
23 |
| - </p> |
24 |
| - |
25 |
| - <div className={styles.grid}> |
26 |
| - <a href="https://nextjs.org/docs" className={styles.card}> |
27 |
| - <h2>Documentation →</h2> |
28 |
| - <p>Find in-depth information about Next.js features and API.</p> |
29 |
| - </a> |
30 |
| - |
31 |
| - <a href="https://nextjs.org/learn" className={styles.card}> |
32 |
| - <h2>Learn →</h2> |
33 |
| - <p>Learn about Next.js in an interactive course with quizzes!</p> |
34 |
| - </a> |
35 |
| - |
36 |
| - <a |
37 |
| - href="https://github.com/vercel/next.js/tree/canary/examples" |
38 |
| - className={styles.card} |
39 |
| - > |
40 |
| - <h2>Examples →</h2> |
41 |
| - <p>Discover and deploy boilerplate example Next.js projects.</p> |
42 |
| - </a> |
43 |
| - |
44 |
| - <a |
45 |
| - href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
46 |
| - className={styles.card} |
47 |
| - > |
48 |
| - <h2>Deploy →</h2> |
49 |
| - <p> |
50 |
| - Instantly deploy your Next.js site to a public URL with Vercel. |
51 |
| - </p> |
52 |
| - </a> |
53 |
| - </div> |
| 24 | + <CurrentUser /> |
54 | 25 | </main>
|
| 26 | + </> |
| 27 | + ); |
| 28 | +}; |
55 | 29 |
|
56 |
| - <footer className={styles.footer}> |
57 |
| - <a |
58 |
| - href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
59 |
| - target="_blank" |
60 |
| - rel="noopener noreferrer" |
61 |
| - > |
62 |
| - Powered by{' '} |
63 |
| - <span className={styles.logo}> |
64 |
| - <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} /> |
65 |
| - </span> |
66 |
| - </a> |
67 |
| - </footer> |
68 |
| - </div> |
69 |
| - ) |
70 |
| -} |
71 |
| - |
72 |
| -export default Home |
| 30 | +export default Home; |
0 commit comments