Design comparison
Community feedback
- @slothmast3rPosted almost 3 years ago
Hey man! Great work! It looks really nice, just exactly like in design!
Unfortunately dice button doesnt work :'( What I recommend is usage of event handling on this website GUIDE HERE
@click="someFunction"
Next thing what I would do is define color variables. There are many ways to do this. The most common is by:root{...}
GUIDE HEREGood luck with further coding!
Marked as helpful2@saadman-galibPosted almost 3 years ago@slothmast3r Thanks for your suggestion. I have added the refresh option to the button. And I will try to remember to define color variables from the next time.
0@slothmast3rPosted almost 3 years ago@saadman-galib Hey man. Your solution is pretty good that works. I would like to suggest you solution that is a little more efficient that you dont need to reload whole page.
<div class="dice-icon-container" @click="generateQuote"> async mounted() { this.generateQuote() }, methods: { generateQuote() { const response = await axios.get("https://api.adviceslip.com/advice"); this.adviceText = response.data.slip.advice; this.adviceNo = response.data.slip.id; },
I hope it works xd. I didnt test it
Marked as helpful1@saadman-galibPosted almost 3 years ago@slothmast3r Thank you so much. Now this works quite well and better than the previous one.
1@saadman-galibPosted over 2 years ago@slothmast3r will you please again check the project i have added a transition on the dice
0 - @optimusprime202Posted almost 3 years ago
Hey @saadman-galib, You’ve just about got it.
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord