Skip to content
Permalink
Browse files

Change the typography, add configuration for Netlify, add configurati…

…on for Sitemaps, Google analytics and add the portfolio description in the configuration
  • Loading branch information
christiandavid committed Nov 12, 2019
1 parent cecb3b0 commit 351be47a22408a43d1db18a47d6e8f690c81c90f
Showing with 103 additions and 11 deletions.
  1. +45 −8 gatsby-config.js
  2. +15 −0 netlify.toml
  3. +0 −1 package.json
  4. +43 −2 src/utils/typography.js
@@ -5,9 +5,9 @@
*/

module.exports = {
/* Your site config here */
siteMetadata: {
title: `Portfolio`,
siteUrl: `https://www.christianibarguen.com`,
},
plugins: [
{
@@ -28,13 +28,13 @@ module.exports = {
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `GatsbyJS`,
short_name: `GatsbyJS`,
name: `Christian David Ibarguen`,
short_name: `CD`,
description: `This cool App contains information about my work experience as a software developer.`,
lang: `en`,
start_url: `/`,
background_color: `#6b37bf`,
theme_color: `#6b37bf`,
// Enables "Add to Homescreen" prompt and disables browser UI (including back button)
// see https://developers.google.com/web/fundamentals/web-app-manifest/#display
background_color: `#000`,
theme_color: `#fff`,
display: `standalone`,
icon: `src/images/icon.png`, // This path is relative to the root of the site.
},
@@ -47,7 +47,6 @@ module.exports = {
},
`gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`,
// `gatsby-plugin-transition-link`,
{
resolve: `gatsby-source-filesystem`,
options: {
@@ -62,5 +61,43 @@ module.exports = {
},
},
`gatsby-transformer-sharp`,
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: [
"UA-151335375-1", // Google Analytics / GA
],
// This object gets passed directly to the gtag config command
// This config will be shared across all trackingIds
gtagConfig: {
anonymize_ip: true,
cookie_expires: 0,
send_page_view: true,
cookie_name: "christianibarguen.com",
},
// This object is used for configuration specific to this plugin
pluginConfig: {
// Puts tracking script in the head instead of the body
head: false,
// Setting this parameter is also optional
respectDNT: false,
},
},
},
{
resolve: `gatsby-plugin-nprogress`,
options: {
// Setting a color is optional.
// color: `tomato`,
// Disable the loading spinner.
showSpinner: false,
},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
exclude: [`/experience/_additionalSkills`],
},
},
],
}
@@ -0,0 +1,15 @@
[[headers]]
for = "/*"
[headers.values]
X-Frame-Options = "DENY"
X-XSS-Protection = "1; mode=block"
Content-Security-Policy = "form-action https:"
Referrer-Policy = "strict-origin-when-cross-origin"
Strict-Transport-Security = "max-age=2592000"
Feature-Policy = "vibrate 'none'; geolocation 'none'; midi 'none'; notifications 'none'; push 'none'; sync-xhr 'none'; microphone 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none'; speaker 'none'; vibrate 'none'; fullscreen 'none'; payment 'none'"

[[redirects]]
from = "http://modest-turing-12a5b8.netlify.com/*"
to = "https://christianibarguen.com/:splat"
status = 301
force = true
@@ -48,7 +48,6 @@
"react-typography": "^0.16.19",
"typewriter-effect": "^2.12.1",
"typography": "^0.16.19",
"typography-theme-kirkham": "^0.16.19",
"use-debounce": "^3.0.0"
},
"devDependencies": {
@@ -1,7 +1,48 @@
import Typography from "typography"
import kirkhamTheme from "typography-theme-kirkham"

const typography = new Typography(kirkhamTheme)
const typography = new Typography({
baseFontSize: "16px",
googleFonts: [
{
name: "Source Sans Pro",
styles: ["400", "700"],
},
{
name: "Roboto",
styles: ["400", "700"],
},
{
name: "Noto Sans",
styles: ["400", "700&display=swap"],
},
],
headerFontFamily: [
"Source Sans Pro",
"Avenir",
"Helvetica Neue",
"Helvetica",
"Arial",
],
bodyFontFamily: [
"Futura PT",
"BlinkMacSystemFont",
"Segoe UI",
"Roboto",
"Helvetica Neue",
"Arial",
"Noto Sans",
"sans-serif",
"Apple Color Emoji",
"Segoe UI Emoji",
"Segoe UI Symbol",
"Noto Color Emoji",
],
overrideStyles: () => ({
a: {
fontFamily: `"Source Sans Pro", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif`,
},
}),
})

export default typography
export const rhythm = typography.rhythm

0 comments on commit 351be47

Please sign in to comment.
You can’t perform that action at this time.