mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 23:16:47 +00:00
Merge pull request #239 from KDF5000/feature/support_zhihu
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as React from 'react'
|
||||
import { FaTwitter, FaGithub, FaLinkedin } from 'react-icons/fa'
|
||||
import { FaTwitter, FaZhihu, FaGithub, FaLinkedin } from 'react-icons/fa'
|
||||
import { IoSunnyOutline, IoMoonSharp } from 'react-icons/io5'
|
||||
import * as config from 'lib/config'
|
||||
|
||||
@@ -53,6 +53,18 @@ export const Footer: React.FC<{
|
||||
</a>
|
||||
)}
|
||||
|
||||
{config.zhihu && (
|
||||
<a
|
||||
className={styles.zhihu}
|
||||
href={`https://zhihu.com/people/${config.zhihu}`}
|
||||
title={`Zhihu @${config.zhihu}`}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
>
|
||||
<FaZhihu />
|
||||
</a>
|
||||
)}
|
||||
|
||||
{config.github && (
|
||||
<a
|
||||
className={styles.github}
|
||||
|
||||
@@ -93,6 +93,10 @@
|
||||
color: #2795e9;
|
||||
}
|
||||
|
||||
.zhihu:hover {
|
||||
color: #0066FF;
|
||||
}
|
||||
|
||||
.github:hover {
|
||||
color: #c9510c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user