Adding newsletter icon

This commit is contained in:
si1k
2022-05-30 11:47:56 -04:00
parent 5e684ebbcb
commit e0e12a9b7f
7 changed files with 38 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ import { FaTwitter } from '@react-icons/all-files/fa/FaTwitter'
import { FaZhihu } from '@react-icons/all-files/fa/FaZhihu'
import { FaGithub } from '@react-icons/all-files/fa/FaGithub'
import { FaLinkedin } from '@react-icons/all-files/fa/FaLinkedin'
import { FaEnvelopeOpenText } from '@react-icons/all-files/fa/FaEnvelopeOpenText'
import { IoSunnyOutline } from '@react-icons/all-files/io5/IoSunnyOutline'
import { IoMoonSharp } from '@react-icons/all-files/io5/IoMoonSharp'
@@ -95,6 +96,18 @@ export const FooterImpl: React.FC = () => {
<FaLinkedin />
</a>
)}
{config.newsletter && (
<a
className={styles.newsletter}
href={`${config.newsletter}`}
title={`Newsletter ${config.author}`}
target='_blank'
rel='noopener noreferrer'
>
<FaEnvelopeOpenText />
</a>
)}
</div>
</footer>
)

View File

@@ -107,6 +107,13 @@
border-color: #00ab6c;
}
.newsletter .actionBgPane {
background: #777777;
}
.newsletter:hover {
border-color: #777777;
}
.email .actionBgPane {
background: #777;
}

View File

@@ -44,6 +44,17 @@ const socialLinks: SocialLink[] = [
<path d='M6.5 21.5h-5v-13h5v13zM4 6.5C2.5 6.5 1.5 5.3 1.5 4s1-2.4 2.5-2.4c1.6 0 2.5 1 2.6 2.5 0 1.4-1 2.5-2.6 2.5zm11.5 6c-1 0-2 1-2 2v7h-5v-13h5V10s1.6-1.5 4-1.5c3 0 5 2.2 5 6.3v6.7h-5v-7c0-1-1-2-2-2z' />
</svg>
)
},
config.newsletter && {
name: 'newsletter',
href: `${config.newsletter}`,
title: `Newsletter ${config.author}`,
icon: (
<svg xmlns='http://www.w3.org/2000/svg' viewBox="0 0 24 24">
<path d="M12 .64L8.23 3H5V5L2.97 6.29C2.39 6.64 2 7.27 2 8V18C2 19.11 2.9 20 4 20H20C21.11 20 22 19.11 22 18V8C22 7.27 21.61 6.64 21.03 6.29L19 5V3H15.77M7 5H17V9.88L12 13L7 9.88M8 6V7.5H16V6M5 7.38V8.63L4 8M19 7.38L20 8L19 8.63M8 8.5V10H16V8.5Z" />
</svg>
)
}
].filter(Boolean)

View File

@@ -105,6 +105,10 @@
color: #0077b5;
}
.newsletter:hover {
color: #777777;
}
.comments {
width: 100%;
margin-top: 2em;