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:
Stephen Sauceda 2016-12-11 15:01:39 -05:00 committed by Guillermo Rauch
parent b4ccb126d9
commit 694c8c56c7

View file

@ -56,6 +56,30 @@ const basePackage = `{
}`
const basePage = `
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;
}
\`
`