mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
update default page generated by next init
(#376)
* use next logo on 'init' start page * use github cdn for logo
This commit is contained in:
parent
b4ccb126d9
commit
694c8c56c7
|
@ -56,6 +56,30 @@ const basePackage = `{
|
||||||
}`
|
}`
|
||||||
|
|
||||||
const basePage = `
|
const basePage = `
|
||||||
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
export default () => <p>Hello, world</p>
|
import Head from 'next/head'
|
||||||
|
|
||||||
|
export default () => (
|
||||||
|
<div>
|
||||||
|
<Head>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||||
|
<style>{bodyStyles}</style>
|
||||||
|
</Head>
|
||||||
|
|
||||||
|
<img width="112" src="https://cloud.githubusercontent.com/assets/13041/19686250/971bf7f8-9ac0-11e6-975c-188defd82df1.png" alt="next.js" />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
const bodyStyles = \`
|
||||||
|
html, body {
|
||||||
|
height: 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
\`
|
||||||
`
|
`
|
||||||
|
|
Loading…
Reference in a new issue