Git Product home page Git Product logo

punk-api's Introduction

Hi there ๐Ÿ‘‹๐Ÿพ, I'm Abz.

I'm a passionate junior Software Engineer from London.


About Me

  • โœ๏ธ Passionate about continuously learning - currently focused on mastering REACT and Data Structures and Algorithms

  • ๐Ÿ‘จ๐Ÿพโ€๐Ÿ’ป All of my projects are available at My Portfolio

  • โšก Fun fact I like reading non-fiction books and I go to the gym very often.


๐Ÿš€ Languages & Tools:


Connect with me:

abdul oketunde

punk-api's People

Contributors

ab-96 avatar

Watchers

 avatar

punk-api's Issues

Feedback

Hey Abs,

An awesome design mate! Really clean, modern colour palette - the colours compliment each other really well! I also like how you re-position the cards when the search filter is applied. Your code is generally really clean and you've done a good job of destructuring your props also. Searchbar working as expected also which is great!

Some pointers to improve:

Site

  • Need to fix the responsiveness - Navbar is hidden underneath the Beers. (see below)

image

- More info button doesn't do anything - Consider adding some functionality to flip the card or use routing to redirect to an index page with more information about the beer. Otherwise remove it. - Filters aren't working - Again if you can get these working that would be fantastic!

Code

  • Remove unused code and console.logs
  • Be careful with some of your variable and function names - showData is a bit too vague for me. What data is being displayed? showBeers sounds a bit more intuitive.
  • Again singleBeer would make sense if we returned just a singleBeer but actually we can still return more than one when using the search Input.
const singleBeer = showData.filter(beer => {
      const name = beer.name.toLowerCase();
      return name.includes(searchTerm)
})

// Better Option could be:

const filteredBeers = beersList.filter(beer => {
    return beer.name.toLowerCase().includes(searchTerm);
})
  • Generally, great use of BEM naming convention. Minor change would be to change:
// From
<div className="beerCard">
   <h3 className="beerCard__title">{name}</h3>
</div>

// To 
<div className="beer-card">
   <h3 className="beer-card__title">{name}</h3>
</div>
  • Remove the NavMenu component if you're not using it.
  • List lengthy props vertically, e.g.
// From
const Main = ({showData}) => {

    const beersArr = showData.map((beer, index) => {
        return <Card key={beer + index} name={beer.name} image={beer.image_url} tagline={beer.tagline} abv={beer.abv} info={beer.description} /> 
    });
      
    return (
        <div className="main">
            {beersArr}
        </div>
    )
}

// To
const Main = ({showData}) => {

    const beersArr = showData.map((beer, index) => {
        return <Card key={beer + index} 
		     name={beer.name} 
                     image={beer.image_url} 
                     tagline={beer.tagline} 
                     abv={beer.abv} 
                     info={beer.description} 
	           /> 
    });

    return (
        <div className="main">
            {beersArr}
        </div>
    )
}

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.