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

feat: add highlighed vote component #18

Conversation

derianrddev
Copy link
Contributor

📝 Add Highlighted Vote Component

🛠️ Issue

📖 Description

  • This PR introduces the Highlighted Vote component, which displays the poll's question, category, number of votes, and comments. This component was designed following the provided image and color palette.

✅ Changes made

  • Implemented the HighlightedVote component.
  • Utilized the Badge and Card components from shadcn/ui.
  • The component accepts the following props:
    • question: The poll question (e.g., "What type of art is this?").
    • category: The category of the poll (e.g., "Painting").
    • votes: Number of votes the poll has received.
    • comments: Number of comments on the poll.
  • Styled the component to match the provided design specifications and color palette.
  • Integrated the component into the home page for testing and demonstration purposes.

🖼️ Media (screenshots/videos)

https://www.loom.com/share/e19f462135464017980e8bfb52c5728b?sid=1c1cd3c0-c4e6-47c5-bc54-435a4ed509f5

image

image

📜 Additional Notes

  • Thank you very much for the issue.

@derianrddev derianrddev force-pushed the feat-add-highlighted-vote-component branch from bcc4cd4 to 3add85e Compare December 14, 2024 04:37
@evgongora evgongora self-requested a review December 18, 2024 15:09
Copy link
Collaborator

@evgongora evgongora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @derianrddev! Right now we just need the component to be created but not added to the layout of the website, could you please just leave the components for now :)

@derianrddev
Copy link
Contributor Author

@evgongora ready!
image

@bitfalt
Copy link
Collaborator

bitfalt commented Dec 21, 2024

LGTM! @derianrddev could you please solve the merge conflicts so that we merge your PR?

Thank you so much for your contribution :D

Copy link
Collaborator

@evgongora evgongora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@evgongora evgongora merged commit 8a33120 into ZencypherSolutions:main Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Highlighted votes component
3 participants