Skip to content

Commit

Permalink
remove unused code and update social links
Browse files Browse the repository at this point in the history
  • Loading branch information
sitek94 committed Dec 22, 2020
1 parent 0a1edde commit 6f5b8cc
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 541 deletions.
15 changes: 5 additions & 10 deletions config/website.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
siteTitle: 'Maciek Sitkowski', // Navigation and Site Title
siteTitleAlt: 'The personal website of Maciek Sitkowski', // Alternative Site title for SEO
siteTitleShort: 'macieksitkowski', // short_name for manifest
siteUrl: process.env.ROOT_URL || 'https://kentcdodds.com', // Domain of your site. No trailing slash!
siteUrl: process.env.ROOT_URL || 'https://macieksitkowski.com', // Domain of your site. No trailing slash!
lang: 'en', // Language Tag on <html> element
pathPrefix: '/',
siteLogo: 'images/logo.png', // Used for SEO and manifest, path to your image you placed in the 'static' folder
Expand All @@ -15,10 +15,7 @@ module.exports = {
lives with his wife and four kids in Utah.
`,
author: 'Maciek Sitkowski', // Author for schemaORGJSONLD
organization: 'Maciek Sitkowski Tech LLC',

// siteFBAppID: '123456789', // Facebook App ID - Optional
userTwitter: '@kentcdodds', // Twitter Username
ogSiteName: 'Maciek Sitkowski', // Facebook Site Name
ogLanguage: 'en_US',

Expand All @@ -27,10 +24,8 @@ module.exports = {
backgroundColor: '#231C42',

// Social component
twitter: 'https://twitter.com/kentcdodds/',
twitterHandle: '@kentcdodds',
github: 'https://github.com/kentcdodds/',
linkedin: 'https://www.linkedin.com/in/kentcdodds/',
youtube: 'https://www.youtube.com/channel/UCz-BYvuntVRt_VpfR6FKXJw',
rss: 'https://kentcdodds.com/blog/rss.xml',
github: 'https://github.com/sitek94/',
// linkedin: 'https://www.linkedin.com/in/kentcdodds/',
youtube: 'https://www.youtube.com/channel/UC1rKQAm9EWiHtI4ADYusG0w',
freeCodeCamp: 'https://forum.freecodecamp.org/u/sitek94/summary',
}
11 changes: 0 additions & 11 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ module.exports = {
siteMetadata: {
siteUrl,
title: config.siteTitle,
twitterHandle: config.twitterHandle,
description: config.siteDescription,
keywords: [
'Software Engineer',
Expand All @@ -45,15 +44,6 @@ module.exports = {
name: config.author,
minibio: config.minibio,
},
organization: {
name: config.organization,
url: siteUrl,
logo: config.siteLogo,
},
social: {
twitter: config.twitterHandle,
fbAppID: '',
},
},
plugins: [
{
Expand Down Expand Up @@ -111,7 +101,6 @@ module.exports = {
},
},
'gatsby-plugin-workerize-loader',
'gatsby-plugin-twitter',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-emotion',
Expand Down
5 changes: 0 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
[[headers]]
for = "/rss.xml"
[headers.values]
Access-Control-Allow-Origin = "*"

[[plugins]]
package = "netlify-plugin-gatsby-cache"

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"gatsby-plugin-robots-txt": "^1.5.3",
"gatsby-plugin-sharp": "^2.10.1",
"gatsby-plugin-sitemap": "^2.8.0",
"gatsby-plugin-twitter": "^2.6.0",
"gatsby-plugin-typography": "^2.8.0",
"gatsby-plugin-workerize-loader": "^1.5.0",
"gatsby-remark-autolink-headers": "^2.7.0",
Expand Down
5 changes: 2 additions & 3 deletions src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {css} from '@emotion/react'
import theme from '../../config/theme'
import {bpMaxSM} from '../lib/breakpoints'
import SubscribeForm from './forms/subscribe'
import {Twitter, GitHub, YouTube, RSS} from './social'
import {GitHub, YouTube, FreeCodeCamp} from './social'
import Container from './container'

import particlesOptions from 'lib/particles.json'
Expand Down Expand Up @@ -65,10 +65,9 @@ const Footer = ({subscribeForm = <SubscribeForm />, maxWidth}) => (
`}
>
<div>
<Twitter />
<GitHub />
<FreeCodeCamp />
<YouTube />
<RSS />
</div>
</div>
</Container>
Expand Down
13 changes: 5 additions & 8 deletions src/components/mobile-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,14 @@ const Toggle = ({color = 'white'}) => {
}
`}
>
<Link aria-label="View blog page" to="/blog">
Blog
<Link aria-label="View blog page" to="#about">
About
</Link>
<Link aria-label="View projects page" to="/projects">
<Link aria-label="View projects page" to="#projects">
Projects
</Link>
<Link aria-label="View courses page" to="/courses">
Courses
</Link>
<Link aria-label="View about page" to="/about">
About
<Link aria-label="View about page" to="#contact">
Contact
</Link>
</Container>
</div>
Expand Down
18 changes: 0 additions & 18 deletions src/components/seo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ function SEO({
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />
<meta property="fb:app_id" content={seo.social.fbAppID} />

{/* Twitter Card tags */}
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content={seo.social.twitter} />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={image} />
</Helmet>
<SchemaOrg
isBlogPost={isBlogPost}
Expand All @@ -54,7 +46,6 @@ function SEO({
datePublished={datePublished}
canonicalUrl={seo.canonicalUrl}
author={seo.author}
organization={seo.organization}
defaultTitle={seo.title}
/>
</>
Expand All @@ -75,15 +66,6 @@ function SEOWithQuery(props) {
author {
name
}
organization {
name
url
logo
}
social {
twitter
fbAppID
}
}
}
}
Expand Down
7 changes: 0 additions & 7 deletions src/components/seo/schema-org.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export default React.memo(
description,
image,
isBlogPost,
organization,
title,
url,
}) => {
Expand Down Expand Up @@ -58,12 +57,6 @@ export default React.memo(
'@type': 'Person',
name: author.name,
},
publisher: {
'@type': 'Organization',
url: organization.url,
logo: organization.logo,
name: organization.name,
},
mainEntityOfPage: {
'@type': 'WebSite',
'@id': canonicalUrl,
Expand Down
58 changes: 0 additions & 58 deletions src/components/share.js

This file was deleted.

63 changes: 17 additions & 46 deletions src/components/social.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,6 @@ import Link from './link'
import {css} from '@emotion/react'
import config from '../../config/website'

export const Twitter = ({
color = `rgba(255,255,255,0.7)`,
url = `${config.twitter}`,
}) => (
<Link
to={url}
css={css`
color: ${color};
margin-left: 20px;
:hover {
color: rgba(255, 255, 255, 1);
}
`}
aria-label="Visit my Twitter"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="20"
viewBox="0 0 24 20"
>
<path
fill="currentColor"
fillRule="evenodd"
d="M24,2.96470588 C23.1,3.40941176 22.2,3.55764706 21.15,3.70588235 C22.2,3.11294118 22.95,2.22352941 23.25,1.03764706 C22.35,1.63058824 21.3,1.92705882 20.1,2.22352941 C19.2,1.33411765 17.85,0.741176471 16.5,0.741176471 C13.95,0.741176471 11.7,2.96470588 11.7,5.63294118 C11.7,6.07764706 11.7,6.37411765 11.85,6.67058824 C7.8,6.52235294 4.05,4.59529412 1.65,1.63058824 C1.2,2.37176471 1.05,3.11294118 1.05,4.15058824 C1.05,5.78117647 1.95,7.26352941 3.3,8.15294118 C2.55,8.15294118 1.8,7.85647059 1.05,7.56 C1.05,7.56 1.05,7.56 1.05,7.56 C1.05,9.93176471 2.7,11.8588235 4.95,12.3035294 C4.5,12.4517647 4.05,12.4517647 3.6,12.4517647 C3.3,12.4517647 3,12.4517647 2.7,12.3035294 C3.3,14.2305882 5.1,15.7129412 7.35,15.7129412 C5.7,17.0470588 3.6,17.7882353 1.2,17.7882353 C0.75,17.7882353 0.45,17.7882353 0,17.7882353 C2.25,19.1223529 4.8,20.0117647 7.5,20.0117647 C16.5,20.0117647 21.45,12.6 21.45,6.22588235 C21.45,6.07764706 21.45,5.78117647 21.45,5.63294118 C22.5,4.89176471 23.4,4.00235294 24,2.96470588 Z"
/>
</svg>
</Link>
)

export const LinkedIn = ({
color = `rgba(255,255,255,0.7)`,
url = `${config.linkedin}`,
Expand All @@ -50,8 +20,8 @@ export const LinkedIn = ({
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="23"
height="23"
width="40"
height="40"
viewBox="0 0 23 23"
>
<path
Expand Down Expand Up @@ -79,8 +49,8 @@ export const GitHub = ({
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="23"
height="23"
width="40"
height="40"
viewBox="0 0 23 23"
>
<path
Expand Down Expand Up @@ -109,8 +79,8 @@ export const YouTube = ({
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="23"
height="24"
width="40"
height="40"
viewBox="0 0 23 24"
>
<path
Expand All @@ -121,9 +91,9 @@ export const YouTube = ({
</Link>
)

export const RSS = ({
export const FreeCodeCamp = ({
color = `rgba(255,255,255,0.7)`,
url = `${config.rss}`,
url = `${config.freeCodeCamp}`,
}) => (
<Link
to={url}
Expand All @@ -134,18 +104,19 @@ export const RSS = ({
color: rgba(255, 255, 255, 1);
}
`}
aria-label="Subscribe to my RSS Feed"
aria-label="See at freeCodeCamp"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="23"
height="23"
viewBox="0 0 8 8"
width="50"
height="40"
viewBox="0 0 30 20"
>
<rect width="8" height="8" rx="1.5" fill="currentColor" />
<circle cx="2" cy="6" r="1" />
<path d="m 1,4 a 3,3 0 0 1 3,3 h 1 a 4,4 0 0 0 -4,-4 z" />
<path d="m 1,2 a 5,5 0 0 1 5,5 h 1 a 6,6 0 0 0 -6,-6 z" />
<title>free-code-camp</title>
<path
fill="currentColor"
d="M5,0C3.78,0,0,4.17,0,10.32,0,15.71,3.65,20,5.09,20A1,1,0,0,0,6,19.14c0-.36-.38-.83-1.29-1.83l-.49-.55A11.15,11.15,0,0,1,2,10,11.35,11.35,0,0,1,5.06,2.41l.14-.14A2.35,2.35,0,0,0,6,.92,1,1,0,0,0,5,0ZM25,0a1,1,0,0,0-1,.92,2.35,2.35,0,0,0,.8,1.35l.14.14A11.35,11.35,0,0,1,28,10a11.15,11.15,0,0,1-2.22,6.78l-.49.55c-.91,1-1.29,1.47-1.29,1.83a1,1,0,0,0,.91.86C26.35,20,30,15.71,30,10.32,30,4.17,26.22,0,25,0ZM12.09,1c-.13,0-.21.1-.21.22s.13.21.23.26a2.46,2.46,0,0,1,1,2c0,2.37-3,4.52-3,7a4.79,4.79,0,0,0,3.36,4.42c.22.1.62.27.62-.06,0-.13-.11-.14-.21-.18a2,2,0,0,1-1-.78,3.29,3.29,0,0,1-.51-2c0-1.65,2.27-1.94,2.27-3.59,0-.63-.4-.81-.4-1s0-.11.15-.11c.41,0,1,.67,1.15,1a1,1,0,0,1,.12.57c0,.36,0,.73,0,1.1a.84.84,0,0,0,1.63.34c0-.3-.18-.59-.18-.89,0,0,0-.06,0-.06s.48.39.56.51a3,3,0,0,1,.44,1.61c0,1.67-1.51,2.52-1.51,2.87,0,.06.15.41.62.11A5.1,5.1,0,0,0,20,9.74a5.59,5.59,0,0,0-1.64-4.23c-.21-.22-.84-.87-1.16-.87s.37,1,.37,1.6a.6.6,0,0,1-.63.63c-.59,0-.75-1.3-.82-1.71-.3-1.73-.65-3-2.38-3.79A3.27,3.27,0,0,0,12.09,1ZM9,17a1,1,0,0,0,0,2H21.16c.2,0,.84-.07.84-1,0-.59-.33-1-.84-1Z"
/>
</svg>
</Link>
)
Loading

0 comments on commit 6f5b8cc

Please sign in to comment.