DEV Community

Discussion on: What was your win this week?

Collapse
 
eduardonwa profile image
Eduardo Cookie Lifter • Edited

Wow at the gif!! ๐Ÿ˜ฎ ๐Ÿ˜–๐Ÿ˜ƒ๐Ÿ˜Ž๐Ÿ‘

My win of the week happened late last night when I was trying to implement a navbar with a dropup content box, so youd have โ€œhidden linksโ€ for a category within. Had to use a toggle button. And for mobile, it had to be a โ€œdropupโ€ instead of a โ€œdropdownโ€, mainly because my navbar would be located at the bottom ๐Ÿ˜€and for desktop view it had to be within a bar to the left on a vertical (column) fashion.

After copying and pasting code from the internet, I succeded, but it felt more like I created a hack or a โ€œwork-aroundโ€, and also felt like I had a bunch of unnecessary code.

So I started again, reviewed the CSS from W3School, and started the Javascript from scratch. Again I was able to do it completely (first time I didnt went for the sidebar) The story here is that I was able to understand the Javascript and didnโ€™t copied and pasted functions from the wild, I managed to โ€œsomehowโ€ understand the concepts I consulted from the internet and adopted it successfully to my needs! ๐Ÿš€

Special thanks to: youtu.be/54ioUruxkOw & youtu.be/IvQI49DMKuk for keeping me sane and in the mood. ๐Ÿค˜๐Ÿ‘๐Ÿ’ช