Giter Club home page Giter Club logo

first-react-portfolio's Introduction

my first portfolio project built with react


Dependencies I used:


Youtube tutorials I used:


Things I learned while working on the project:

  • good idea to disable menu button after clicking on it for ~1.2seconds and then enable it again (better user experience)
  • z-indexes don't work unless you define a position
  • in order for Header element to have an access to props.history we can use withRouter
  • use ::selection CSS selector for customizing text highlight color
  • use CSS ::placeholder Selector to give a styling to a placeholder text
  • add punctuation to your alt text:

we should always finish our alt text with punctuation, such as a full stop/period. This makes the screen reader voice pause slightly before announcing the next words in the sequence, which feels a lot more natural.


gsap:

  • in terms of easing use Power3
  • TimelineLite allows to add the timeline to animations. (in my hero section first come the photos, only then the content to the left)
  • 'to' - defines final state, 'from' defines initial state
  • TweenMax is for animating just 1 item (in my case the whole hero section, with TweenMax we make the section visible)

framer-motion:

  • drag effect(https://www.framer.com/api/motion/gestures/#drag)
  • the way to use @keyframes in framer-motion: initial={{height: 0}} animate={{height: [0, window.innerHeight,0]}} the array means the beginning, then half-way,,then a final animation

Issues:

  • Home Page was completetely disappearing as soon as I moved the mouseafter I added a custom cursor to the App. Decided not to add Custom Cursor to the project.

// for deployment add to json: // "homepage": ".", // "predeploy": "npm run build", // "deploy": "gh-pages -d build"

first-react-portfolio's People

Contributors

imgbotapp avatar magdasokolovic avatar

Stargazers

 avatar  avatar  avatar  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.