init
This commit is contained in:
0
src/app.jsx
Normal file
0
src/app.jsx
Normal file
BIN
src/assets/yay.jpg
Normal file
BIN
src/assets/yay.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 177 KiB |
0
src/global.js
Normal file
0
src/global.js
Normal file
0
src/global.less
Normal file
0
src/global.less
Normal file
21
src/layouts/index.jsx
Normal file
21
src/layouts/index.jsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Link, Outlet } from 'umi';
|
||||
import styles from './index.less';
|
||||
|
||||
export default function Layout() {
|
||||
return (
|
||||
<div className={styles.navs}>
|
||||
<ul>
|
||||
<li>
|
||||
<Link to="/">Home</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to="/docs">Docs</Link>
|
||||
</li>
|
||||
<li>
|
||||
<a href="https://github.com/umijs/umi">Github</a>
|
||||
</li>
|
||||
</ul>
|
||||
<Outlet />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
10
src/layouts/index.less
Normal file
10
src/layouts/index.less
Normal file
@@ -0,0 +1,10 @@
|
||||
.navs {
|
||||
ul {
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
}
|
||||
li {
|
||||
margin-right: 1em;
|
||||
}
|
||||
}
|
||||
0
src/loading.jsx
Normal file
0
src/loading.jsx
Normal file
0
src/models/global.js
Normal file
0
src/models/global.js
Normal file
0
src/models/index.js
Normal file
0
src/models/index.js
Normal file
0
src/overrides.less
Normal file
0
src/overrides.less
Normal file
9
src/pages/docs.jsx
Normal file
9
src/pages/docs.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
const DocsPage = () => {
|
||||
return (
|
||||
<div>
|
||||
<p>This is umi docs.</p>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default DocsPage;
|
||||
15
src/pages/index.jsx
Normal file
15
src/pages/index.jsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import yayJpg from '../assets/yay.jpg';
|
||||
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<div>
|
||||
<h2>Yay! Welcome to umi!</h2>
|
||||
<p>
|
||||
<img src={yayJpg} width="388" />
|
||||
</p>
|
||||
<p>
|
||||
To get started, edit <code>pages/index.tsx</code> and save to reload.
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user