-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb4a058
commit a78b75c
Showing
4 changed files
with
71 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.footer { | ||
padding: 20px 23px 60px 23px; | ||
a { | ||
color: #ced1d4; | ||
text-decoration: none; | ||
transition: color 0.3s; | ||
margin: 0 3px; | ||
&:hover { | ||
color: black; | ||
} | ||
& + a { | ||
margin-left: 10px; | ||
} | ||
&::after { | ||
content: ' '; | ||
height: 13px; | ||
width: 1px; | ||
margin-left: 10px; | ||
display: inline-block; | ||
vertical-align: middle; | ||
background-color: #e5e9ec; | ||
} | ||
&:last-child::after { | ||
display: none; | ||
} | ||
} | ||
} |
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,41 @@ | ||
import React from 'react'; | ||
import styles from './index.module.less'; | ||
|
||
type FooterProps = { | ||
editorUrl?: string; | ||
}; | ||
|
||
const Footer = (props: FooterProps) => { | ||
const { editorUrl } = props || {}; | ||
return ( | ||
<div className={styles.footer}> | ||
{editorUrl && ( | ||
<a | ||
title="Editor Current Page" | ||
target="_blank" | ||
rel="noreferrer" | ||
href={`https://github.com/uiwjs/react-baidu-map/edit/master${editorUrl}`} | ||
> | ||
编辑当前页面 | ||
</a> | ||
)} | ||
<a target="_blank" rel="noopener noreferrer" href="https://github.com/uiwjs/react-baidu-map/issues/new"> | ||
提交 Bug | ||
</a> | ||
<a target="_blank" rel="noopener noreferrer" href="https://github.com/uiwjs/react-baidu-map"> | ||
GitHub | ||
</a> | ||
<a target="_blank" rel="noopener noreferrer" href="https://github.com/kktjs/kkt"> | ||
kkt | ||
</a> | ||
<a target="_blank" rel="noopener noreferrer" href="https://github.com/uiwjs/uiw"> | ||
uiwjs | ||
</a> | ||
<a target="_blank" rel="noopener noreferrer" href="https://github.com/uiwjs/react-amap"> | ||
高德地图 React 版本 | ||
</a> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Footer; |
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