GithubHelp home page GithubHelp logo

christiandavid / gatsby-theme-byfolio Goto Github PK

View Code? Open in Web Editor NEW
259.0 4.0 40.0 156.33 MB

A simplified way to create a portfolio using GatsbyJS

License: MIT License

JavaScript 100.00%
react gatsbyjs portfolio pwa-apps

gatsby-theme-byfolio's Introduction

gatsby-theme-byfolio

License: MIT CircleCI Twitter Follow

Initially this was a personal portfolio made in GatsbyJs, now it's a Gatsby theme available to anyone who wants to tell their work history focusing only on the content.

Gatsby Portfolio

Portfolio

Installation

mkdir portfolio && cd portfolio
yarn init -y
yarn add react react-dom gatsby @christiandavid/gatsby-theme-byfolio

Create gatsby-config.js file and load the plugin

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `@christiandavid/gatsby-theme-byfolio`,
    },
  ],
}
gatsby develop

In your browser load localhost:8000

Configuration

After each modification in gatsby-config.js it is necessary to restart the site from the terminal.

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: `@christiandavid/gatsby-theme-byfolio`,
      options: {
        basePath: ``,
        path: `src/`,
        imagesPath: `src/images/`,
        iconFile: `src/images/icon.png`,
        siteTitle: `Portfolio`,
        siteUrl: `https://www.christianibarguen.com`,
        siteName: `Christian David Ibarguen`,
        siteShortName: `CD`,
        siteDescription: `This cool App contains information about my work experience as a software developer.`,
        siteKeywords: `Software developer, Full Stack Developer`,
        useMozJpeg: true,
        menuLinks: [
          // title = Link text
          // color = Animation background color on click
          { name: `home`, title: `Home`, color: `#000`, link: `` },
          {
            name: `experience`,
            title: `Experience`,
            color: `#3a3d98`,
            link: ``,
          },
          { name: `skills`, title: `Skills`, color: `#d52d43`, link: `` },
          { name: `aboutMe`, title: `About Me`, color: `#fff`, link: `` },
        ],
        email: `[email protected]`,
        social: {
          // Usernames
          twitter: `ichristiandavid`,
          gitHub: `christiandavid`,
          stackOverflow: `967956/christian-david`,
          linkedIn: `in/christianibarguen/`,
          resumeInPdf: `/CV-19.pdf`, // url or local link
        },
        homePage: {
          availableToHire: true,
          dotColors: ["#0e3e1e", "#6CC551"],
          h1Text: `Hi!, I'm Christian David Ibarguen`,
          h2Text: `I'm a Full Stack Developer who loves working in Backend, I have
              worked as a software developer since 2006.`,
          typewriter: [
            `Coding is my passion 😎`,
            `I'm a πŸ• lover`,
            `I'm a pretty fast learner and always interested in learning new technologies πŸ€“`,
            `I think one of my values is the <strong>ability to resolve problems<strong>`,
            `I like to share what I know πŸ‘¨β€πŸ«`,
            `In my non-coding hours, I'm at the πŸ‹β€`,
            `I also do design and UX work <span style='color: #27ae60;'>occasionally</span>`,
          ],
        },
        // Color for menu background
        shapeColor: {
          link: { color: "#171616", hover: "#fff" },
          shape1: {
            color: `#413f46`,
            opacity: `0.7`,
          },
          shape2: {
            color: `#e6e5ea`,
            opacity: `0.7`,
          },
          shape3: {
            color: `#fff`,
            opacity: `0.7`,
          },
        },
        footer: `heart`,
      },
    },
  ],
}
Option name Type Description
basePath string Where should the site be served from? /portfolio will change all paths to start with /portfolio
path string Place where the files are stored, for example: src/
imagesPath string Place where the images files are stored, for example: src/images/
iconFile string Provides the icon path for the gatsby-plugin-manifest plugin
typographyPath string Place where the file that defines your website’s typography configuration is located
siteTitle string The main title for the website, used in the <title> element
siteUrl string The portfolio url, example: https://christianibarguen.com
siteName string Represents the name of the web application as it is usually displayed to the user
siteShortName string Represents a short version of the name of the web application
siteDescription string Allows you to describe the purpose of the web application
siteKeywords string Keywords for the page
useMozJpeg boolean MozJPEG provides better image compression than the default encoder used in gatsby-plugin-sharp.
menuLinks array An array of objects for the menu, each item represents a link, color represents the color that the animation shows when it is pressed
email string Email for contact, this is displayed when the Contact Me button is pressed
social object An Object with the user accounts of: twitter, gitHub, stackOverflow, linkedIn and resumeInPdf resume link
homePage object An object with information of titles, texts with animated description, and animation to show if you are available to be hired
shapeColor object Represents the colors used in the menu animation, in total there are 3 in which you can specify the color and the opacity
footer string Text to show in the footer only has 2 options: heartor hand

Adding experience and skills

This theme generates pages based on Markdown files in the path/experience directory. Your Markdown files should contain some frontmatter defining their company, logo, etc. All company logos must be relative to imagesPath/companies directory. All Skills logos must be relative to imagesPath/skills directory. All layout images must be relative to company directory, for example: imagesPath/companies/vlooping

Important

For each Skill you must add the logo of the Framework, library or program, with a resolution of width: 500px, height: 500px, in the src/images/skills/ directory I leave several logos, only Skills logos that I own are present, if the logo you need does not appear you must create it.

Layout number is for image animation you can select from 1 to 5, please do not forget to add the images "images/companies/vlooping.png, images/skills/html5.png, images/skills/react.png, images/companies/vlooping/vlooping.png" to run the following example

---
title: ""
company: "Company Name"
logo: ../images/companies/vlooping.png
jobTitle: "My job position"
skills:
  [
    { title: "HTML 5", image: ../images/skills/html5.png },
    { title: "HTML 5", image: ../images/skills/react.png },
  ]
images:
  [
    {
      title: "Layout 4",
      description: "Description text for layout 4.",
      layout: "4",
      files:
        [
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
        ],
    },
    {
      title: "Layout 1",
      description: "Description text for layout 1.",
      layout: "1",
      files:
        [
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
        ],
    },
    {
      title: "Layout 2",
      description: "Description text for layout 2.",
      layout: "2",
      files:
        [
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
        ],
      caption: "New Message",
    },
    {
      title: "Layout 3",
      description: "Description text for layout 1.",
      layout: "3",
      files:
        [
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
        ],
    },
    {
      title: "Layout 5",
      description: "Description text for layout 5.",
      layout: "5",
      files:
        [
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
          { image: ../images/companies/vlooping/vlooping.png },
        ],
    },
  ]
dateFrom: "2015-12-01"
dateTo: "2019-12-01"
---
- Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum
- Contrary to popular belief, Lorem Ipsum is not simply random text
- It is a long established fact that a reader will be distracted by the readable content of a page
- There are many variations of passages of Lorem Ipsum available
- The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested

Skills

The Skills are automatically selected from experience, in case some skill you acquired does not correspond to a company you can add it in path/experience/_additionalSkills.md

---
title: ""
company: ""
jobTitle: ""
logo:
skills:
  [
    { title: "React", image: ../images/skills/react.png },
    { title: "React Native", image: ../images/skills/react-native.png },
    { title: "Gatsby", image: ../images/skills/gatsby.png },
    { title: "GraphQL", image: ../images/skills/graphql.png },
    { title: "Redux", image: ../images/skills/redux.png },
    { title: "Apollo GraphQL", image: ../images/skills/apollo.png },
    { title: "Socket.io", image: ../images/skills/socket-io.png },
  ]
images: []
dateFrom: "2019-09-01"
dateTo: "2019-09-01"
---

Component shadowing

You can customize elements like the css style or about-me content by taking advantage of component shadowing.

I recommend using Coolors.co to select a color palette and adapt it to your new portfolio.

You can change the color of the text and the background of each page, for example:

// src/@christiandavid/gatsby-theme-byfolio/layout/layoutColors.css.js
import { css } from "@emotion/core"
import lineSvg from "../../../static/assets/line.svg"

const styles = css`
  .e404.layout-wrapper .layout-inner {
    background: #fff;
  }
  .e404 .data-section {
    color: #000;
  }
  .aboutme.layout-wrapper .layout-inner {
    background: #fff;
  }
  .aboutme .data-section {
    color: #000;
  }
  .aboutme .hamburgercolr::before,
  .aboutme .hamburgercolr::after,
  .e404 .hamburgercolr::before,
  .e404 .hamburgercolr::after {
    background-color: #000;
  }
  .home.layout-wrapper .layout-inner {
    background: #0e0f11;
    background: #0e0f11 url(${lineSvg}) center center fixed;
    background-size: contain;
  }
  .home.layout-wrapper h1,
  .home.layout-wrapper h2 {
    color: #fff;
  }
  .skill.layout-wrapper .layout-inner {
    color: #fff;
    background: #9d316e;
    background: url(${lineSvg}) center center fixed, linear-gradient(
        45deg,
        #9d316e,
        #de2d3e
      );
    background-size: cover;
  }
  .experience.layout-wrapper .layout-inner {
    background: #3a3d98;
    background: url(${lineSvg}) center center fixed, linear-gradient(
        45deg,
        #6f22b9,
        #3a3d98
      );
    background-size: cover;
  }
  .home .hamburgercolr::before,
  .home .hamburgercolr::after,
  .skill .hamburgercolr::before,
  .skill .hamburgercolr::after,
  .experience .hamburgercolr::before,
  .experience .hamburgercolr::after {
    background-color: #fff;
  }
  .home .btn-contact-color,
  .experience .btn-contact-color {
    color: #fff;
  }
  .aboutme .btn-contact-color,
  .e404 .btn-contact-color {
    color: #000;
  }
`

export default styles

You can change the about-me text in the "src/@christiandavid/gatsby-theme-byfolio/contentJSON/about-me.json" file, for example:

[
  {
    "subtitle": "About Me!",
    "content": "I'm a <strong>Software Developer</strong>"
  },
  {
    "subtitle": "Experience!",
    "content": "I started developing software from <strong>2004</strong> working in several companies"
  }
]

Examples

Are you using this theme in your own project? Submit a PR with your website added to this list!

Authors

  • Christian David Ibarguen R

Credits

Special thanks to:

gatsby-theme-byfolio's People

Contributors

0xflotus avatar christiandavid avatar mariogmz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gatsby-theme-byfolio's Issues

Forced to set all socials (impossible to only set the ones we want)

Hey, I'm new to GatsbyJS, and I discovered your plugin via reddit. It's amazing, thanks for providing it.

Anyway, I'm trying to build my portfolio using your theme, and it seems like you have to provide an url for all socials?
For example, if in the config I have

plugins: [
    {
        resolve: `@christiandavid/gatsby-theme-byfolio`,
        options: {
            ...
            social: {
                // Usernames
                gitHub: `nicofeals`,
                linkedIn: `in/nicolasceccarello/`,
            },
            ...
        }
    }
]

I get an error when compiling it

There was an error in your GraphQL query:

Cannot query field "twitter" on type "SiteSiteMetadataSocial".

From what I understand, I guess that's how gatsby works and all fields should be set.

First, my question is, is it indeed a gatsby related problem, or is it specific to the theme?
And isn't there a workaround that'd allow to only set the socials you want to provide (or simply the one you have)?

Thanks a lot

Latest dev build lives in top 15% of browser

MacOS latest
Firefox latest

Confirmed working properly on Brave (latest) and Safari (latest build as well).

The entire app is crammed into the top 15% of the page on firefox.

UNHANDLED REJECTION Cannot read property 'match' of undefined

Hi Chris
Thank you so much for making this site a gatsby theme. I am trying to build my portfolio using this however face the below error when run "gastby develop"

success open and validate gatsby-configs - 0.214s
success load plugins - 13.293s
success onPreInit - 0.187s
success initialize cache - 0.086s
success copy gatsby files - 0.677s
success onPreBootstrap - 0.056s
success createSchemaCustomization - 0.007s
success source and transform nodes - 0.290s
success building schema - 0.663s
success createPages - 0.051s
success createPagesStatefully - 0.151s
success onPreExtractQueries - 0.003s
success update schema - 0.037s
success extract queries from components - 1.179s
success write out requires - 0.136s
success write out redirect data - 0.036s
β ‹ onPostBootstrap
β ‹ Build manifest and related icons

ERROR

UNHANDLED REJECTION Cannot read property 'match' of undefined

TypeError: Cannot read property 'match' of undefined

  • api-runner-node-error-parser.js:39 errorParser
    [masih-portfolio]/[gatsby]/dist/utils/api-runner-node-error-parser.js:39:33

  • api-runner-node.js:398
    [masih-portfolio]/[gatsby]/dist/utils/api-runner-node.js:398:29

  • api-runner-node.js:340 async module.exports
    [masih-portfolio]/[gatsby]/dist/utils/api-runner-node.js:340:18

  • index.js:507 async module.exports
    [masih-portfolio]/[gatsby]/dist/bootstrap/index.js:507:3

  • develop.js:407 async module.exports
    [masih-portfolio]/[gatsby]/dist/commands/develop.js:407:7
    β ‹ onPostBootstrap
    β ‹ Build manifest and related icons

I have put my source at https://github.com/darKoub/byfolio

Thank you.

Links aren't loading

Describe the bug
When developing or building the site, the links (home, experience, skills, about me) are loading up a white page. The browser seems to be pointing to the correct link but doesn't load anything. If I manually complete the request, the pages are build and load perfectly fine.

To Reproduce
I've include a version of the live site, just click on the hamburger menu bar and see if it works for you below:

https://tudorsaitoc.netlify.app/

resume in social links

When commenting out the resume from social in gatsby config, the site fails to build. Is there anyway around this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.