-
Notifications
You must be signed in to change notification settings - Fork 0
Add drag and drop and designtheui #5
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR significantly enhances the image upload functionality by adding drag and drop support, improved UI/UX design, and comprehensive preview capabilities for both uploaded images and generated SVG output.
Key changes:
- Added drag and drop file upload functionality with visual feedback
- Implemented comprehensive image preview and SVG result display
- Enhanced UI with modern design using framer-motion animations and improved styling
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
app/generate/page.tsx |
Complete redesign of upload interface with drag-and-drop, file validation, progress tracking, and side-by-side preview of original image and generated SVG |
app/api/upload/route.ts |
Minor syntax fix and API response structure update to include success flag |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| /> | ||
| <div | ||
| className="max-w-full max-h-full relative z-10 flex items-center justify-center" | ||
| dangerouslySetInnerHTML={{ __html: svgResult }} |
Copilot
AI
Oct 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using dangerouslySetInnerHTML with SVG content can introduce XSS vulnerabilities. Consider sanitizing the SVG string before rendering or using a dedicated SVG component that safely parses and renders SVG content.
Co-authored-by: Copilot <[email protected]>
…m/Shitanshukumar607/imgToSvg into add-drag-and-drop-and-designtheui
Add drag and drop and preview of the image uploaded and generated svg