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

[Feature] Add Different Modes of PDF Generation for Quizzes #113

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

yatikakain
Copy link
Contributor

Related Issue

This PR addresses #111, which introduces multiple PDF generation modes to provide users with flexible options for creating quiz documents.

Description of Changes

This PR implements the following key features:

  1. PDF Generation Modes:

    • Added three distinct modes for PDF generation:
      • Questions Only (original functionality)
      • Questions with Answers (new)
      • Answers Only (new)
    • Implemented through a dropdown menu interface for seamless mode selection
  2. UI Enhancements:

    • Replaced the single "Generate PDF" button with an interactive dropdown
    • Added smooth transitions and hover effects for better user experience
    • Implemented click-outside functionality to close the dropdown menu

Implementation Details

  • Dropdown Menu:

    • Created using native HTML/CSS for optimal performance
    • Maintains consistent styling with the existing application theme
    • Automatically closes after selection or when clicking outside
  • PDF Generation Logic:

    • Modified generatePDF function to accept mode parameter
    • Added conditional rendering based on selected mode
    • Preserved existing PDF styling and layout while adding new content options

Screenshot

{CFD05995-E312-4F03-B25C-6BFF267BCEB4}

@Roaster05
Copy link
Contributor

@yatikakain could you change the colour of the dropdown list to match with the bg, also could you also make a change in the functionality that if the content of the page is filled it will automatically add a new page

@yatikakain
Copy link
Contributor Author

@Roaster05 yeah sure, I'll work on the page break feature and UI color of dropdown

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.

2 participants