index static
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
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";
|
||||||
|
|
||||||
|
export async function getStaticProps(context: any) {
|
||||||
|
return {
|
||||||
|
props: {}, // will be passed to the page component as props
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
@@ -17,7 +23,7 @@ export default function Home() {
|
|||||||
</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>
|
||||||
|
|
||||||
@@ -60,12 +66,12 @@ export default function Home() {
|
|||||||
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>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user