Skip to content

Commit

Permalink
Merge pull request #1029 from Violet-Bora-Lee/add-medium
Browse files Browse the repository at this point in the history
Add the Medium to Footer
  • Loading branch information
timlrx authored Oct 16, 2024
2 parents b848917 + 2d60e62 commit e1faae8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
9 changes: 9 additions & 0 deletions components/social-icons/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
)
}
2 changes: 2 additions & 0 deletions components/social-icons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
Mastodon,
Threads,
Instagram,
Medium,
} from './icons'

const components = {
Expand All @@ -22,6 +23,7 @@ const components = {
mastodon: Mastodon,
threads: Threads,
instagram: Instagram,
medium: Medium,
}

type SocialIconProps = {
Expand Down
1 change: 1 addition & 0 deletions data/siteMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e1faae8

Please sign in to comment.