Add medium to Footer

This commit is contained in:
Bora Lee 2024-09-20 18:52:18 +09:00
parent 250a4c50f9
commit 2d60e62271
4 changed files with 13 additions and 0 deletions

View File

@ -16,6 +16,7 @@ export default function Footer() {
<SocialIcon kind="x" href={siteMetadata.x} size={6} />
<SocialIcon kind="instagram" href={siteMetadata.instagram} size={6} />
<SocialIcon kind="threads" href={siteMetadata.threads} size={6} />
<SocialIcon kind="medium" href={siteMetadata.medium} size={6} />
</div>
<div className="mb-2 flex space-x-2 text-sm text-gray-500 dark:text-gray-400">
<div>{siteMetadata.author}</div>

View File

@ -93,3 +93,12 @@ export function Instagram(svgProps: SVGProps<SVGSVGElement>) {
</svg>
)
}
export function Medium(svgProps: SVGProps<SVGSVGElement>) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" {...svgProps}>
<title>Medium</title>
<path d="M13.54 12a6.8 6.8 0 01-6.77 6.82A6.8 6.8 0 010 12a6.8 6.8 0 016.77-6.82A6.8 6.8 0 0113.54 12zM20.96 12c0 3.54-1.51 6.42-3.38 6.42-1.87 0-3.39-2.88-3.39-6.42s1.52-6.42 3.39-6.42 3.38 2.88 3.38 6.42M24 12c0 3.17-.53 5.75-1.19 5.75-.66 0-1.19-2.58-1.19-5.75s.53-5.75 1.19-5.75C23.47 6.25 24 8.83 24 12z" />
</svg>
)
}

View File

@ -9,6 +9,7 @@ import {
Mastodon,
Threads,
Instagram,
Medium,
} from './icons'
const components = {
@ -22,6 +23,7 @@ const components = {
mastodon: Mastodon,
threads: Threads,
instagram: Instagram,
medium: Medium,
}
type SocialIconProps = {

View File

@ -20,6 +20,7 @@ const siteMetadata = {
linkedin: 'https://www.linkedin.com',
threads: 'https://www.threads.net',
instagram: 'https://www.instagram.com',
medium: 'https://medium.com',
locale: 'en-US',
// set to true if you want a navbar fixed to the top
stickyNav: false,