initial setup wip

This commit is contained in:
gustavomauricio 2022-09-02 12:26:03 +01:00
parent 0c5319ad02
commit 6faa8ebd60
3 changed files with 24 additions and 32 deletions

View File

@ -1,8 +1,19 @@
import '../styles/globals.css' import type { AppProps } from "next/app";
import type { AppProps } from 'next/app' import Head from "next/head";
import "../styles/globals.css";
function MyApp({ Component, pageProps }: AppProps) { function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} /> return (
<>
<Head>
<title>Mars V2</title>
{/* <meta name="description" content="Generated by create next app" /> */}
<link rel="icon" href="/favicon.ico" />
</Head>
<Component {...pageProps} />
</>
);
} }
export default MyApp export default MyApp;

View File

@ -1,13 +0,0 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'
type Data = {
name: string
}
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ name: 'John Doe' })
}

View File

@ -1,24 +1,18 @@
import type { NextPage } from 'next' import type { NextPage } from "next";
import Head from 'next/head' import Head from "next/head";
import Image from 'next/image' import Image from "next/image";
import styles from '../styles/Home.module.css' import styles from "../styles/Home.module.css";
const Home: NextPage = () => { const Home: NextPage = () => {
return ( return (
<div className={styles.container}> <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}> <main className={styles.main}>
<h1 className={styles.title}> <h1 className={styles.title}>
Welcome to <a href="https://nextjs.org">Next.js!</a> Welcome to <a href="https://nextjs.org">Next.js!</a>
</h1> </h1>
<p className={styles.description}> <p className={styles.description}>
Get started by editing{' '} Get started by editing{" "}
<code className={styles.code}>pages/index.tsx</code> <code className={styles.code}>pages/index.tsx</code>
</p> </p>
@ -59,14 +53,14 @@ const Home: NextPage = () => {
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
> >
Powered by{' '} Powered by{" "}
<span className={styles.logo}> <span className={styles.logo}>
<Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} /> <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
</span> </span>
</a> </a>
</footer> </footer>
</div> </div>
) );
} };
export default Home export default Home;