-
Notifications
You must be signed in to change notification settings - Fork 237
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
QR-Code download as SVG, JPEG or PNG with selection over dropdownmenu #565
Conversation
✅ Deploy Preview for activist-org ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thank you for the pull request!The activist team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :) If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Development rooms once you're in. It'd be great to have you! Maintainer checklist
|
Thanks @mjiruobe! Will give it a look as soon as I can 😊 |
Hey @mjiruobe 👋 Generally this is really really good :) :) Especially the SVG is amazing! There are some minor things that I'll get to after merging it in, but I did want to check on if you have an idea on how to improve the quality of the activist Let me know if you have any thoughts on this! Happy to merge after and I can do some adjustments to the dropdown styling, etc 😊 |
I'll fix merge conflicts btw, @mjiruobe 😊 |
I fixed the quality loss bug with a specified higher resolution of the png and jpeg's. I also added the calculcated resolution to the dropdownmenu. If there are any fixes, which i should do before you can integrate the changes, just tell me. |
I see the BtnLabeled.vue needs a fix. I will go for this little issue soon. |
Should be good from here, @mjiruobe! Thanks for the changes 😊😊 |
Ah the right rounding being removed? Sure if you can figure it out by all means :) Also happy to take a look myself. |
Hey @mjiruobe 👋 Let me know what the status of this is. Happy to jump into the code and fix the buttons for you if need be! No stress 😎 |
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.
Got a bit carried away with fixing this, @mjiruobe, but I think we're in dramatically a better place for it all 😊 I realized that your implementation - though 100% sensical given the current architecture - really made it clear that we were relying on BtnLabeled
to do too many things and that it was going to start getting even more difficult to maintain.
I thus made #642 to split BtnLabeled
so that we could have a separate dropdown button from which this feature could function. The changes for that and all of the i18n key switches that it entailed are included in the most recent commit 🙌
Thanks so much for all your hard work on this issue! Really is functioning so well, was easy for me to make the needed changes, and activist really is so much better off given the new additions that this process made clear!
I'll write a bit about all this in the dev channel on Matrix now so people understand the changes :) :)
Hello,
I tried to solve the Issue 474: #473
This was the task:
I should implement a functionality, which allows a user to download the qr code of an event in different formats like svg, png or jpeg. PNG was already implemented by using html2canvas, but the disadvantage of this method was taking a screenshot and you can't use this as an svg.
So the solution was to build the qr code not with half html/css and half a graphic like before, instead i visualized the qr code completely as an svg including the logo, the white circle behind it, the border, the activist.org text with red hat display font and the background of it. The plain qr code already shipped as svg by the library qrcode-vue we used.
The font for the activist.org text was encoded as base64 because embedding google fonts or a web page as font provider is in my opinon the wrong decision for an activist page, which has high standards for data protection.
Problems which i did ran into:
and some other design bugs
Please give me some code review, i will correct the changes (i think it will be necessary) and then i can create a documentation especially for the QrCode.vue because i did a lot of calculations.
I never worked with Vue.js before or on an open source project and I'm not really a web developer, so please the patience but advices are welcome
Thank you for the possibility to work on such a great project.
Greetings
Mike