Skip to content

Commit

Permalink
update: packages and social links
Browse files Browse the repository at this point in the history
  • Loading branch information
sarojkumar007 committed May 20, 2024
1 parent 77e21bc commit 9e8f442
Show file tree
Hide file tree
Showing 6 changed files with 2,831 additions and 2,180 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@fontsource/rubik": "^5.0.3",
"@icons-pack/react-simple-icons": "^8.0.1",
"@icons-pack/react-simple-icons": "^9.5.0",
"gatsby": "^5.11.0",
"gatsby-plugin-feed": "^5.11.0",
"gatsby-plugin-google-gtag": "^5.11.0",
Expand Down
12 changes: 4 additions & 8 deletions src/components/BlogSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import React from "react"

import { siteConfig } from "@config/index"

import {
SiFacebook,
SiTwitter,
SiWhatsapp,
} from "@icons-pack/react-simple-icons"
import { SiFacebook, SiX, SiWhatsapp } from "@icons-pack/react-simple-icons"
import slugify from "@lib/slugify"

import { Link, graphql, useStaticQuery } from "gatsby"
Expand Down Expand Up @@ -109,16 +105,16 @@ const BlogSideBar = ({ shareLink }: BlogSideBarProps) => {
target={`_blank`}
rel="noreferrer noopener"
>
<SiFacebook className="w-6 h-6" title="" color="#1877F2" />
<SiFacebook className="w-6 h-6" title="" color="#0866FF" />
</a>
<a
href={`https://twitter.com/share?text=${encodeURI(
href={`https://x.com/share?text=${encodeURI(
`Blog by ${siteConfig.title}`
)}&url=${encodeURI(shareLink as string)}`}
target={`_blank`}
rel="noreferrer noopener"
>
<SiTwitter className="w-6 h-6" title="" color="#1DA1F2" />
<SiX className="w-6 h-6" title="" color="#000" />
</a>
</div>
</SideBarSection>
Expand Down
10 changes: 5 additions & 5 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Link } from "gatsby"
import {
SiGatsby,
SiGithub,
SiInstagram,
SiLeetcode,
SiLinkedin,
} from "@icons-pack/react-simple-icons"

Expand All @@ -25,23 +25,23 @@ const FooterMain: FC = () => {
</Link>
<div className="flex items-center space-x-2">
<a
href={`https://instagram.com/${social.instagram}`}
href={social.leetcode}
target={`_blank`}
rel={`noreferrer noopener`}
className="footer_icon_link"
>
<SiInstagram className="w-5 h-5" />
<SiLeetcode className="w-5 h-5" />
</a>
<a
href={`https://github.com/${social.github}`}
href={social.github}
target={`_blank`}
rel={`noreferrer noopener`}
className="footer_icon_link"
>
<SiGithub className="w-5 h-5" />
</a>
<a
href={`https://linkedin.com/in/${social.linkedin}`}
href={social.linkedin}
target={`_blank`}
rel={`noreferrer noopener`}
className="footer_icon_link"
Expand Down
10 changes: 5 additions & 5 deletions src/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import IconLogo from "./svgs/IconLogo"

import {
SiGithub,
SiInstagram,
SiLeetcode,
SiLinkedin,
} from "@icons-pack/react-simple-icons"

Expand Down Expand Up @@ -131,17 +131,17 @@ const Nav = () => {
<ul className="justify-self-end flex items-center gap-4">
<li className="hidden md:inline-block">
<a
href={`https://instagram.com/${social.instagram}`}
href={social.leetcode}
target={`_blank`}
rel={`noreferrer noopener`}
className="nav_icon_link"
>
<SiInstagram className="w-5 h-5" />
<SiLeetcode className="w-5 h-5" />
</a>
</li>
<li className="hidden md:inline-block">
<a
href={`https://github.com/${social.github}`}
href={social.github}
target={`_blank`}
rel={`noreferrer noopener`}
className="nav_icon_link"
Expand All @@ -151,7 +151,7 @@ const Nav = () => {
</li>
<li className="hidden md:inline-block">
<a
href={`https://www.linkedin.com/in/${social.linkedin}`}
href={social.linkedin}
target={`_blank`}
rel={`noreferrer noopener`}
className="nav_icon_link"
Expand Down
14 changes: 8 additions & 6 deletions src/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ const siteConfig = {
}

const social = {
twitter: `sarojk18_`,
github: `sarojkumar007`,
instagram: `sarojk18_`,
linkedin: `sarojk18`,
youtube: `#!`, //`https://www.youtube.com/channel/UCyG5IZIwPxKiG9tmM-SoCtg`,
twitter: `https://x.com/sarojk18_`,
github: `https://github.com/sarojkumar007`,
instagram: `https://www.instagram.com/sarojk18_/`,
linkedin: `https://www.linkedin.com/in/sarojk18/`,
youtube: `http://www.youtube.com/@sarojk18`, //`https://www.youtube.com/channel/UCyG5IZIwPxKiG9tmM-SoCtg`,
codepen: `sarojk18`,
hackerrank: `sarojk18`,
hackerrank: `https://www.hackerrank.com/profile/sarojk18`,
leetcode: `https://leetcode.com/u/sarojk18/`,
codewars: `https://www.codewars.com/users/sarojk18`,
}

const seo = {
Expand Down
Loading

0 comments on commit 9e8f442

Please sign in to comment.