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

article Card #23

Open
16 tasks
mgjeffries opened this issue Aug 25, 2020 · 0 comments
Open
16 tasks

article Card #23

mgjeffries opened this issue Aug 25, 2020 · 0 comments
Assignees

Comments

@mgjeffries
Copy link
Collaborator

mgjeffries commented Aug 25, 2020

  • Converts an article Object into an HTML representation of an article Card.
    Class associated is article--${article.id}

Args

  1. Object containing the event
    • id: 1
    • userId: 57
    • date: 13958025726
    • title: LawnNews
    • synopsis: The Best Event
    • isOwnedByCurrentUser: false
    • isNext: false
    • timeCreated: timestamp
  • Properties to render

    • Title
    • synopsis
  • Export the function.

CONDITIONAL STATEMENTS

  • If isOwnedByCurrentUser === true

    • classList.add("user-owned")
    • Render 'edit' button
    • Add event listener to listen for 'click event'
    • Dispatch Custom Event with detail: eventId: id
  • If isOwnedByCurrentUser === false

    • classList.remove("user-owned")
  • If isNextEvent === true

    • classList.add("first-event")
  • If isNextEvent === false

    • classList.remove("first-event")
@mgjeffries mgjeffries added this to Backlog in Nutshell Dashboard Aug 26, 2020
@mgjeffries mgjeffries changed the title News Card article Card Aug 26, 2020
@heymonicakay heymonicakay moved this from Backlog to In Progress in Nutshell Dashboard Aug 26, 2020
@heymonicakay heymonicakay moved this from In Progress to Backlog in Nutshell Dashboard Aug 26, 2020
@heymonicakay heymonicakay moved this from Backlog to In Progress in Nutshell Dashboard Aug 26, 2020
@heymonicakay heymonicakay self-assigned this Aug 26, 2020
@heymonicakay heymonicakay moved this from In Progress to Ready to Test in Nutshell Dashboard Aug 28, 2020
@heymonicakay heymonicakay moved this from Ready to Test to In Progress in Nutshell Dashboard Aug 28, 2020
@mgjeffries mgjeffries moved this from In Progress to Complete in Nutshell Dashboard Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants