-
Notifications
You must be signed in to change notification settings - Fork 300
Expand file tree
/
Copy pathApp.js
More file actions
33 lines (30 loc) · 1019 Bytes
/
Copy pathApp.js
File metadata and controls
33 lines (30 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react'
import '@nutui/nutui-react/dist/styles/themes/default.css'
// import '@nutui/nutui-react/dist/styles/themes/jmapp.css'
// import '@nutui/nutui-react/dist/styles/themes/jrkf.css'
import './App.css'
import { Star } from '@nutui/icons-react'
import { Row, Col, Image, Button } from '@nutui/nutui-react'
const Home = () => {
return (
<div>
<div className="indexHeader">
<Image className="image" src="https://nutui.jd.com/h5/react/2x/demo-2.0.14/logo-red.png"></Image>
<div className="info">
<h1>NutUI-React</h1>
<p>京东风格的轻量级移动端 React 组件库</p>
</div>
</div>
<Row>
<Col span={1} />
<Col className="flexCenter" span={22}>
<Button type='primary' block icon={<Star />} onClick={() => {
window.location.href = "https://github.com/jdf2e/nutui-react"
}}> Star </Button>
</Col>
<Col span={1} />
</Row>
</div>
)
}
export default Home