mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-29 12:45:32 +08:00
chore: migrate to geist ui
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# Next.js demo for ZEIT UI React
|
||||
# Next.js demo for Geist UI React
|
||||
|
||||
## About
|
||||
|
||||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app), the [zeit-ui](https://react.zeit-ui.co/en-us/guide/introduction) implementation follows the [documentation](https://react.zeit-ui.co/en-us/guide/installation).
|
||||
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/zeit/next.js/tree/canary/packages/create-next-app), the [geist-ui](https://react.geist-ui.dev/en-us/guide/introduction) implementation follows the [documentation](https://react.geist-ui.dev/en-us/guide/installation).
|
||||
|
||||
## Getting Started
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
"start": "next start"
|
||||
},
|
||||
"dependencies": {
|
||||
"@zeit-ui/react": "^1.6.0-canary.1",
|
||||
"@geist-ui/react": "^1.6.0-canary.1",
|
||||
"next": "9.4.2",
|
||||
"react": "16.13.1",
|
||||
"react-dom": "16.13.1"
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { ZeitProvider, CssBaseline } from '@zeit-ui/react'
|
||||
import { GeistProvider, CssBaseline } from '@geist-ui/react'
|
||||
|
||||
function MyApp({ Component, pageProps }) {
|
||||
return (
|
||||
<ZeitProvider>
|
||||
<GeistProvider>
|
||||
<CssBaseline />
|
||||
<Component {...pageProps} />
|
||||
</ZeitProvider>
|
||||
</GeistProvider>
|
||||
)
|
||||
}
|
||||
export default MyApp
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Document, { Html, Head, Main, NextScript } from 'next/document'
|
||||
import { CssBaseline } from '@zeit-ui/react'
|
||||
import { CssBaseline } from '@geist-ui/react'
|
||||
|
||||
class MyDocument extends Document {
|
||||
static async getInitialProps(ctx) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Head from 'next/head'
|
||||
import { Page, Text, Card, Note, Code, Spacer } from '@zeit-ui/react'
|
||||
import { Page, Text, Card, Note, Code, Spacer } from '@geist-ui/react'
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
@@ -12,7 +12,7 @@ export default function Home() {
|
||||
Welcome to <a href="https://nextjs.org">Next.js!</a>
|
||||
</Text>
|
||||
<Card>
|
||||
hello, world. I am using <Code>@zeit-ui/react</Code> !
|
||||
hello, world. I am using <Code>@geist-ui/react</Code> !
|
||||
</Card>
|
||||
<Spacer y={1.5} />
|
||||
<Card shadow>
|
||||
|
||||
@@ -1118,9 +1118,9 @@
|
||||
resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d"
|
||||
integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==
|
||||
|
||||
"@zeit-ui/react@^1.6.0-canary.1":
|
||||
"@geist-ui/react@^1.6.0-canary.1":
|
||||
version "1.6.0-canary.1"
|
||||
resolved "https://registry.yarnpkg.com/@zeit-ui/react/-/react-1.6.0-canary.1.tgz#4215b4556e5dcf114c41a54684dd70fe5d9ccd0e"
|
||||
resolved "https://registry.yarnpkg.com/@geist-ui/react/-/react-1.6.0-canary.1.tgz#4215b4556e5dcf114c41a54684dd70fe5d9ccd0e"
|
||||
integrity sha512-TwdETQWrWZ661nMGLrZnuyWSA6+JLKdh4SaJnzr540GGg/LGVbWiAssWZhRLtTrmRrCHvYSSDUscPOIEmWPzCg==
|
||||
dependencies:
|
||||
styled-jsx "^3.2.5"
|
||||
|
||||
Reference in New Issue
Block a user