On my First Open Source Contribution
You can only become an expert if you continue practising and have a healthy mental state
Yesterday proved that to me
I was frustrated yesterday at home.
So, when I picked up the laptop to contribute to my tasks in the (currently secret) Open source project, I just couldn't do it. I wasn't even understanding the code by the previous contributor
So here's what happened.
There are SVG files. And instead of adding the SVG to their specific folder so it can be reusable, the guy just copied it straight to the HTML file. And he tried to make it responsive as well
Simply put, it just wasn't working well
I couldn't grasp it
I figured I'd better copy the similar codes that others contributed.
Still, it wasn't corresponding and the half of the divs remained invisible
Which I figured is because he tried to make it more responsive on mobile
I was irritated.
The SVGs properties took up a large space. And they were confusing me
I told myself that if I try it again today, I would just give up and contribute only to the footer mobile task
That was my decision.
I intended to come online on Thursday in our check-up meeting and bemoan my fate
What I didn't know was today would be so much easier
Throughout yesterday, my subconscious was ruminating over what to do
I figured I should save the SVGs separate as a file
Then proceed to add it as an image inside the button
A little digress - I hadn't even realized the SVGs could be inside a button until my mind worked it out
Anyways, back to present
I woke this morning feeling lazy.
I ended up starting a K-drama - Record of Youth
And I wanted to forgo the 2 tasks badly to the afternoon
But I said - not today Procrastination
I started again. And browsed how to convert SVG to file
And discovered how to export as an SVG in Figma
As I was saving to the assets/icons folder, I discovered that some people had already saved most of the icons already
It was a Eureka moment
I was ecstatic
I chopped off all the guy's div
Made the code more readable and was finally able to make it more responsive
I took a break
Did my virtual assistant job for 1hr 30 minutes
Took 15 minutes nap
And came back to the footer session
I'm happy to announce, that I completed both successfully
And they weren't exactly difficult
Just that I wasn't in the emotional state of mind to break them down
Super grateful for the learning experience
Comments
Post a Comment