Giter VIP home page Giter VIP logo

portfoliotrial3's Introduction

React Portfolio, multiple pages with dark mode

a portfolio for developers

screenshot

View Live Demo

Attention: This is based on paytonjewell's react-portfolio-template I just added particlets background, OS dark mode detection and watch, Google Analytics. Elements redesigned by Ingrid Fei

Original README:

Features

πŸŒ‘ Dark Mode Toggler and OS dark mode detection

πŸ“±Social Media Presence meta tags

πŸ“Š Google Analytics

πŸ“– Multiple Pages (React Router)

πŸ“± Fully Responsive

🎨 Modern Design

πŸ’‘ Perfect Lighthouse Score

screenshot of perfect lighthouse score


Getting started

prerequisites

  • have Git installed on your machine
  • have Node.js installed on your machine
  • basic familiarity with your machine's command line
  • basic understanding of JSON data outline (arrays of objects basically)

how to use

  • fork the repository and clone locally
  • cd into the project and run npm install to install dependencies
  • once installation is complete, run npm run start to get your local copy running in the browser.

template instructions

1. replace the images

  • replace /src/assets/img/self.png
  • replace /public/favicon.ico
  • replace /public/website.jpg (this is the image that shows up when you share the link on social media, you can take a screen shot when the infomation has been filled out)

2. Your Information

3. Color Scheme

Main Gradient

For the main gradient, you can change the colors in /src/assets/colors/mainGradient.js:

export let colors = ["rgb(0,255,164)", "rgb(166,104,255)"];

Particles Background Color

For the particles background color, you can change the colors in /src/assets/colors/particlesBg.js These are the colors I picked from iTerm2's color schemes, but you can use whatever you like.

export const particleBgColors = () => {
  // for dark use atom one dark, for light use CLRS
  const background = (darkMode = false) => (darkMode ? '#0d2538' : '#DCD6C8');
  const particle = (darkMode = false) => (darkMode ? '#c678dd' : '#5C7C8A');
  const links = (darkMode = false) => (darkMode ? '#98c379' : '#E7B669');

  return {
    background,
    particle,
    links,
  };
};

4. Google Analytics Credentials

  • edit /src/utils/log.js
// fill with your own google analytics credentials
const firebaseConfig = {
  apiKey: '',
  authDomain: '',
  projectId: '',
  storageBucket: '',
  messagingSenderId: '',
  appId: '',
  measurementId: '',
};

5. Social Media Presence meta tags

<!-- Social Media Previews -->
    <!-- Primary Meta Tags -->
    <title>Andy Luo, Full Stack Developer</title>
    <meta name="title" content="Andy Luo, Full Stack Developer">
    <meta name="description" content="Full Stack Developer and Freelance Photographer based in Toronto, passionate about building web applications, learning new technologies, traveling and exploring new places.">

    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://andy8647.com/">
    <meta property="og:title" content="Andy Luo, Full Stack Developer">
    <meta property="og:description" content="Full Stack Developer and Freelance Photographer based in Toronto, passionate about building web applications, learning new technologies, traveling and exploring new places.">
    <meta property="og:image" content="https://andy8647.com/website.jpg">

    <!-- Twitter -->
    <meta property="twitter:card" content="summary_large_image">
    <meta property="twitter:url" content="https://andy8647.com/">
    <meta property="twitter:title" content="Andy Luo, Full Stack Developer">
    <meta property="twitter:description" content="Full Stack Developer and Freelance Photographer based in Toronto, passionate about building web applications, learning new technologies, traveling and exploring new places.">
    <meta property="twitter:image" content="https://andy8647.com/website.jpg">

6. Deployment

I recommend using Netlify for deployment. It's free and easy to use. You can follow the instructions here to deploy your site.

P.S. If you are using Netlify, to resolved the bug from react-router-dom, you need to add a _redirects file in the public folder and add the following code:

/*    /index.html   200

And you're done!

If you have any questions or issues with the setup process, feel free to contact me by any of the means below:

Twitter | [email protected]

Finally, thanks to the original author paytonjewell for the well built template.

portfoliotrial3's People

Contributors

kookerboo avatar

Watchers

 avatar

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.