Git Product home page Git Product logo

freddie-and-annas-glamour's People

Contributors

dependabot[bot] avatar fweddi avatar tloth avatar

Watchers

 avatar

freddie-and-annas-glamour's Issues

FlowerPile.js

Line 22, I like it.
{position === 'left' ? <Flower1 /> : <Flower2 />} πŸ‘

As a user, I want to see a beautiful idyll and an avatar for each user.

  • Create an avatar svg (that can be rendered twice, each the mirror of the other)
  • Make a responsive background image
  • Append an 'arm' behind the avatar svg, which will act as the retractable arm
  • Append a flower to the end of this retractable arm
  • When the user's action key is pressed, this arm will extend using CSS keyframes
  • When the arm is fully extended, the flower's visibility is set to 0
  • When the arm is fully subtended, the flower's visibility is set to 1

SVGs!

I love yo lil svg bodies! πŸ‘«πŸ‘­πŸ‘¬

time button speeds time

I kept clicking the click me button and it speeds up your time, maybe hide this button when it is initially clicked so it can't be clicked again πŸƒβ€β™€οΈ

Maybe make the API call in the top level of the app?

You made your api call in the avatar component. Seeing as you'll need the data from that call in both the avatar and timebar components it might make a bit more sense to make it at the top level and pass down the data to both components

unused imports

It may just be that you haven't gotten around to using them yet but there are a couple of unused imports such as in Avatar.js (lines 6, 7) and when you destructured userData on line 19 you didn't use followers πŸ§šβ€β™‚οΈ

Timeout inside setState

const decrement = () => {
setTime(oldTime => {
if (oldTime === 0) return 0;
else {
window.setTimeout(decrement, 1000);
return oldTime - 1;
}
})
};

You probably don't want to create the timeout inside your state update function. I think this would work if you create the timeout outside, then pass a function that updates state in as the timeout callback. So every x seconds your state update runs

As a user, I want to be able to access FAC 16's info.

  • Write a fetch function to access the Github API
  • Create an input field to choose the two flower-friends we want to see
  • Update the 'data' state to render the two members' images and names from Github
  • Render a loading wheel until the images are ready to render
  • Implement error handling and React testing

As a user, I want to be able to see a stateful element dynamically render on the page.

  • Add a state (and setState) function to store the user's 'energy' value
  • Render different stages of the 'energy bar' meter depending on the energy's state
  • Decrement the energy's state every unit of time (e.g. three seconds?)
  • The initial energy 'state' correlates with the amount of Github followers the user has
  • Once the energy's state is 'zero', the user can no longer give any more flowers
  • When both user's energy state is 'zero', the game ends

As a user, I want to be able to give flowers to other users.

  • Render a flower svg in the hands of both users' avatar
  • When the user presses a certain key, their avatar's arm extends with the flower
  • Each user has a different keybind
  • Only one arm can be extended at any given time
  • When the arm is fully extended, the flower disappears from the avatar's hand
  • When the arm is fully extended, a new flower appears on their flower pile and their flower count increments.
  • When the arm is fully subtended, a new flower appears in the avatar's hand
  • At the end of the game, the user with the higher flower count wins

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.