Giter Site home page Giter Site logo

erikras / audiocard Goto Github PK

View Code? Open in Web Editor NEW
67.0 67.0 7.0 2.51 MB

⏯️ AudioCard - Opinionated, responsive, audio player compatible with Twitter Cards

Home Page: https://erikras.github.io/audiocard/

License: MIT License

JavaScript 25.08% CSS 3.24% TypeScript 71.69%
art audio cards player podcast react responsive twitter twitter-cards

audiocard's People

Contributors

erikras avatar imgbotapp 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

Watchers

 avatar  avatar  avatar  avatar  avatar

audiocard's Issues

Missing styles-component

Latest release is giving error of 'missing styles-component' package. I installed it using yarn.
So I added missing dependency separately to get it worked.
Please address this issue in next release.

Thanks

NaN error

I'm getting two errors on the pages where I have an AudioCard. It doesn't seem to actually break anything. But it's definitely better for things not to error.

I think the cause could be that on the first render, maybe useDimensions isn't returning the width/height yet.

react_devtools_backend.js:6 Warning: NaN is an invalid value for the height css style property.
in img (created by styled.img)
in styled.img (created by AudioCard)
in div (created by styled.div)
in styled.div (created by AudioCard)

react_devtools_backend.js:6 Warning: Received NaN for the size attribute. If this is expected, cast the value to a string.
in input (created by styled.input)
in styled.input (created by ProgressBar)
in div (created by styled.div)
in styled.div (created by ProgressBar)
in ProgressBar (created by AudioCard)
in div (created by styled.div)
in styled.div (created by AudioCard)
in div (created by styled.div)
in styled.div (created by AudioCard)

In case it's helpful, I'm using the following props:

      <AudioCard
        art={activeEpisode.image}
        key={activeEpisode.uid}
        link={`${prefix}/episodes/${activeEpisode.uid}`}
        linkText="Show Notes"
        skipBackSeconds={10}
        skipForwardSeconds={30}
        source={activeEpisode.audio}
        title={`EP${activeEpisode.number} ${activeEpisode.title}`}
      />

Update for React 17?

If you're still updating this I'd use an update for this peer dep. I'm happy to spin it up if you'll take the PR

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.