35 changed files with 2838 additions and 2830 deletions
@ -1,6 +1,6 @@ |
|||||
ports: |
ports: |
||||
- port: 8000 |
- port: 8000 |
||||
onOpen: open-preview |
onOpen: open-preview |
||||
tasks: |
tasks: |
||||
- init: npm install |
- init: npm install |
||||
command: npm start |
command: npm start |
||||
|
|||||
File diff suppressed because it is too large
@ -1,29 +0,0 @@ |
|||||
@import '~antd/lib/style/themes/default.less'; |
|
||||
|
|
||||
.globalFooter { |
|
||||
margin: 48px 0 24px 0; |
|
||||
padding: 0 16px; |
|
||||
text-align: center; |
|
||||
|
|
||||
.links { |
|
||||
margin-bottom: 8px; |
|
||||
|
|
||||
a { |
|
||||
color: @text-color-secondary; |
|
||||
transition: all 0.3s; |
|
||||
|
|
||||
&:not(:last-child) { |
|
||||
margin-right: 40px; |
|
||||
} |
|
||||
|
|
||||
&:hover { |
|
||||
color: @text-color; |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
|
|
||||
.copyright { |
|
||||
color: @text-color-secondary; |
|
||||
font-size: @font-size-base; |
|
||||
} |
|
||||
} |
|
||||
@ -1,40 +0,0 @@ |
|||||
import React from 'react'; |
|
||||
import classNames from 'classnames'; |
|
||||
import styles from './index.less'; |
|
||||
|
|
||||
export interface GlobalFooterProps { |
|
||||
links?: { |
|
||||
key?: string; |
|
||||
title: React.ReactNode; |
|
||||
href: string; |
|
||||
blankTarget?: boolean; |
|
||||
}[]; |
|
||||
copyright?: React.ReactNode; |
|
||||
style?: React.CSSProperties; |
|
||||
className?: string; |
|
||||
} |
|
||||
|
|
||||
const GlobalFooter: React.SFC<GlobalFooterProps> = ({ className, links, copyright }) => { |
|
||||
const clsString = classNames(styles.globalFooter, className); |
|
||||
return ( |
|
||||
<footer className={clsString}> |
|
||||
{links && ( |
|
||||
<div className={styles.links}> |
|
||||
{links.map(link => ( |
|
||||
<a |
|
||||
key={link.key} |
|
||||
title={link.key} |
|
||||
target={link.blankTarget ? '_blank' : '_self'} |
|
||||
href={link.href} |
|
||||
> |
|
||||
{link.title} |
|
||||
</a> |
|
||||
))} |
|
||||
</div> |
|
||||
)} |
|
||||
{copyright && <div className={styles.copyright}>{copyright}</div>} |
|
||||
</footer> |
|
||||
); |
|
||||
}; |
|
||||
|
|
||||
export default GlobalFooter; |
|
||||
Loading…
Reference in new issue