Skip to content

Commit

Permalink
Merge pull request #41 from visiky/refactor-footer
Browse files Browse the repository at this point in the history
refactor: 优化 footer 信息
  • Loading branch information
visiky authored Jan 11, 2022
2 parents 4c43a10 + 1090b17 commit 32365de
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions src/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,29 @@ const Footer: React.FC = () => {
return (
<footer>
<div>
<div className="">Made with ❤️</div>
<div className="author">
by
<a href={`https://github.com/${user}`} style={{ marginLeft: '4px' }} target="_blank">
{user}
</a>
<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={{ marginLeft: '8px' }} target="_blank">
<GithubFilled style={{ color: '#fff' }} /> 源代码

<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>
Expand Down

0 comments on commit 32365de

Please sign in to comment.