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

Updated code according to feedback #76

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AdityaPatil7900
Copy link

  1. HTML Structure :
    We define three swimlanes (#backlog, #in-progress, and #complete) as
    elements, each assigned the class Swimlane-column. Inside each swimlane, there are task-card
    s representing individual tasks. Initially, these cards are color-coded based on their respective swimlanes:

Backlog: Grey
In Progress: Blue
Complete: Green

  1. CSS Styling :
    The styles are defined to create a clear and visually appealing layout:

.Swimlane-column: This class sets a basic layout for each swimlane, making them float side by side. Each swimlane takes up 30% of the width, with appropriate padding, borders, and a minimum height for consistency.

.task-card: Basic styling for the task cards includes padding, margin, and specific background colors. The cards utilize additional color classes for background styling based on their swimlane:

.backlog: Grey background
.in-progress: Blue background
.complete: Green background

  1. Dragula Integration :
    We use the Dragula library to enable drag-and-drop functionality for the task cards among the swimlanes. When a card is dropped into a new swimlane, its class is updated to reflect the new swimlane's color.

  2. JavaScript Details :
    Dragula Initialization: We initialize the Dragula function for the three swimlanes. It captures the drop event, updating the card's color class based on its new swimlane (Backlog, In Progress, or Complete).

  3. Next Steps :
    Dragula Installation: Include the Dragula library via CDN or by downloading it for your project setup.
    JavaScript Logic Enhancement: Implement additional logic to persist the order of cards and other functionalities, such as retaining card data.
    Styling and Positioning: Reference your storyboard and designed version to further customize the styles and positions of these elements according to your design vision.
    This comprehensive approach integrates the swimlanes and task cards with drag-and-drop capability, ensuring a dynamic and interactive experience while visually indicating the status of tasks as they are moved between swimlanes.

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.

1 participant