-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from yaob421123/master
feat(doc): 新增文档首页
- Loading branch information
Showing
8 changed files
with
175 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { Wrap, Hero, BtnGroup, LinkMenu, LinkA, Footer } from './style'; | ||
|
||
const Page = () => { | ||
return ( | ||
<Wrap> | ||
<Hero> | ||
<h1>UIW ADMNIN</h1> | ||
<p> | ||
一个基于{' '} | ||
<a href="https://github.com/uiwjs/uiw/" target="_blank"> | ||
uiw | ||
</a>{' '} | ||
和{' '} | ||
<a href="https://github.com/kktjs/kkt-pro" target="_blank"> | ||
@kkt/pro | ||
</a>{' '} | ||
的初始级别项目 | ||
</p> | ||
<BtnGroup> | ||
<LinkMenu to="/docs/quick-start">立即上手</LinkMenu> | ||
<LinkA href="https://github.com/uiwjs/uiw-admin" target="_blank"> | ||
GitHub | ||
</LinkA> | ||
</BtnGroup> | ||
</Hero> | ||
<Footer> | ||
<h3>贡献者</h3> | ||
<p>感谢所有的贡献者,欢迎开发者为开源项目贡献力量。</p> | ||
<a | ||
href="https://github.com/uiwjs/uiw-admin/graphs/contributors" | ||
target="_blank" | ||
> | ||
<img | ||
src="https://uiwjs.github.io/uiw-admin/CONTRIBUTORS.svg" | ||
alt="" | ||
/> | ||
</a> | ||
<div style={{ height: 50 }} /> | ||
<h3>License</h3> | ||
<p>Licensed under the MIT License.</p> | ||
</Footer> | ||
</Wrap> | ||
); | ||
}; | ||
export default Page; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
import styled, { css } from 'styled-components'; | ||
import { NavLink } from '@kkt/pro'; | ||
|
||
export const Wrap = styled.div` | ||
padding: 100px 0 50px; | ||
`; | ||
|
||
export const Hero = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-bottom: 100px; | ||
h1 { | ||
font-size: 100px; | ||
text-shadow: 0 10px 20px rgba(22, 119, 255, 0.15); | ||
background: linear-gradient(30deg, #90d5ff 30%, #65a5ff); | ||
-webkit-background-clip: text; | ||
background-clip: text; | ||
font-family: Alibaba-PuHuiTi, Gill Sans, Gill Sans MT, Calibri, Trebuchet MS, | ||
sans-serif; | ||
color: #83cdf8; | ||
} | ||
p { | ||
font-size: 20px; | ||
line-height: 1; | ||
margin: 30px 0; | ||
a { | ||
color: var(--color2); | ||
text-decoration: none; | ||
&:hover { | ||
text-decoration: underline; | ||
} | ||
} | ||
} | ||
`; | ||
export const BtnGroup = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
margin-top: 50px; | ||
`; | ||
|
||
const defaultBtn = (active?: boolean) => { | ||
const background = active ? `var(--color2)` : 'transparent'; | ||
const color = active ? '#fff' : 'var(--color2)'; | ||
return css` | ||
text-decoration: none; | ||
font-size: 18px; | ||
color: var(--color-fg-default); | ||
padding: 2px 15px; | ||
border-radius: 3px; | ||
height: 50px; | ||
width: 150px; | ||
border-radius: 25px; | ||
background-color: ${background}; | ||
border: 1px solid var(--color2); | ||
color: ${color}; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
opacity: 0.8; | ||
margin: 0 20px; | ||
&:hover { | ||
opacity: 1; | ||
} | ||
`; | ||
}; | ||
|
||
export const LinkMenu = styled(NavLink)` | ||
${() => defaultBtn(true)} | ||
`; | ||
|
||
export const LinkA = styled.a` | ||
${() => defaultBtn()} | ||
`; | ||
|
||
export const Footer = styled.div` | ||
max-width: 1200px; | ||
margin: 0 auto; | ||
margin-top: 50px; | ||
text-align: center; | ||
border-top: 1px solid var(--color-border-muted); | ||
padding-top: 50px; | ||
h3 { | ||
font-size: 30px; | ||
margin: 0; | ||
} | ||
p { | ||
margin: 15px; | ||
} | ||
`; |