Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Card For Bear Data #2

Closed
jamalbrowning opened this issue May 28, 2020 · 1 comment
Closed

Card For Bear Data #2

jamalbrowning opened this issue May 28, 2020 · 1 comment

Comments

@jamalbrowning
Copy link
Owner

jamalbrowning commented May 28, 2020

#USER STORY
As a dev I should create a function bearCardBuilder = () => {} which prints card to river-container.

#AC
When the dev creates the bear card
they should create a function called with a bootstrap card

bearCardBuilder = (bears) => {
let domString = ''

for (let i = 0; i < bears.length; i++) {
    const dino = bears[i];
domstring = `
<div class="card" style="width: 18rem;">
  <img src="..." class="${name}-card" alt="brown bear">
  <div class="card-body">
    <h5 class="card-title">${name}/h5>
  </div>
</div>`
};
};
printToDom (' ' , domString)

Dev Notes

this should be in its on module data file.

@jamalbrowning jamalbrowning created this issue from a note in bear-watcher (To do) May 28, 2020
@jamalbrowning jamalbrowning moved this from To do to In progress in bear-watcher May 30, 2020
@jamalbrowning jamalbrowning moved this from In progress to Done in bear-watcher May 30, 2020
@luketlancaster
Copy link
Collaborator

hey @jamalbrowning did you have a specific question about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
bear-watcher
  
Done
Development

No branches or pull requests

2 participants