import React from 'react' ; import { GithubFilled } from '@ant-design/icons' ; import './footer.less' ; import { getSearchObj } from '@/helpers/location' ; const Footer = ( ) => { const user = getSearchObj ( ) . user || 'visiky' ; return ( < footer > < div > < div > < span className = "" > Made with ❤ ️ < /span> < span className = "author" > by < span style = { { marginLeft : '4px' , cursor : 'pointer' } } onClick = { ( ) => { if ( typeof window !== 'undefined' ) { window . open ( `https://github.com/${ user }` ) ; } } } > { user } < /span> < /span> < /div> < a href = { 'https://github.com/visiky/resume.git' } style = { { position : 'absolute' , right : '8px' , fontSize : '12px' } } target = "_blank" > < GithubFilled style = { { color : '#fff' , marginRight : '4px' } } /> 项目代码 < /a> < /div> < /footer>); } ; export default Footer ;