Steemnova - Resource Images/Names clickable for more Information
New Features
- What feature(s) did you add?
I added the possibility to click on the Images and/or names of the resources on the top of the page in order to get a popup showing more information about the clicked resource. This also works in the "Resources" page, where, prior to my pull request, neither the names of the resources nor the names of the buildings and ships(solar satellite) had this feature.
Recording:
- How did you implement it/them?
The first step was that I changed the design of the top of the page, where the resources you have are listed.
I just added an a tag with an onclick showing the Infomation popup.
Then I added a description for every resource and rescaled the resource images, in order to have them display correctly.
And while I was on it I also fixed a small typo.
After this there would be an error showing, which was why I had to make a special if clause which only does the following for everything else but resources.
This was the error throwing part, so I went around it.
And because everything worked I also implemented this to the "Resources" page.
Pretty similar to what I did on the first screenshot.
I also translated the new strings I added to German, since it is my mother tongue. But I got some help from @k3lda for it. Thank you!
Then all of the above got merged and some people complained that the resource names on the top would be displayed white and not red I made another pull request turning the color back.
I have a third pull request not yet merged which will make the size of the window popping up more appropriate.
This is the change in said pull request.
Edit: The third pull request got merged.
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Thank you!
Congratulations @flugschwein! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of upvotes
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
Do not miss the last announcement from @steemitboard!
Hey @flugschwein I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x