Coder Social home page Coder Social logo

working-with-glamorous's Introduction

working-with-glamorous

Understanding how to use dynamic styles & animations.

Notes

  1. Don't need babel-jest it's included under the hood with jest.
  2. Refer to note in .babelrc about test environment.
  3. Don't need to specific NODE_ENV=test jest does this by default.
  4. There are a few properties that must be integers & not string values. (i.e. fontWeight, opacity, zIndex)
  5. Follow animation notes here & here for using glamor & glamorous.
  6. When using content cannot write content: ''; this is considered invalid because you are sending nothing as a value so you must write content: '""'; to pass an empty string that will take on the properties listed in ::before & ::after.

Todo

  • Recreate the dynamic search bar found here using glamorous.
  • Write tests for the search bar. HOCs are NOT tested ๐Ÿ˜ฅ need to look up how to achieve this

working-with-glamorous's People

Contributors

rockchalkwushock avatar

Watchers

 avatar  avatar

working-with-glamorous's Issues

Documentation

Todo

  • Internal docs
  • External docs

README

  • Link code used for <SearchBar />.
  • Credit author of original code.
  • Link to next, glamorous, glamorous-website.

Horrific Re-Rendering of SearchBar

Problem:

re-render-issue

The component onClick is rendering 3 different times, probably due to the props being passed to the children. Need to investigate and clean this up for performance.

Also can see the action is being fired with no query which does lead to data being called from the api. That means the form is somehow being submitted even though I'm not wanting to submit. Possibly an issue with the button type. Need to investigate this as well.

Final Stuff

Todo

  • Cleanup styling.
  • Deploy to Zeit.
  • Scale the website ???
  • Fork glamorous, update README example section, open PR.
  • Write Medium article (add to my website as well)
  • Screencast ????

Testing

Todo

  • Make sure all redux code is covered.
  • Make sure all transitions are covered for <SearchBar /> animation/transition effects.
  • Make sure all functionality of the <SearchBar /> is covered.

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.