jberkovica / SeshMap

Session planner for UoL BsCS students
https://www.seshmap.com/
3 stars 0 forks source link

Refactoring: Improve CSS and get rid of Bootstrap #16

Open jberkovica opened 1 year ago

jberkovica commented 1 year ago

Per @angle943 request:

Come up with a good CSS strategy

Be more ‘conservative’ with the use of div

jberkovica commented 1 year ago

@angle943 I need your advice on plan of action here. Really don't know how to approach this. Cool thing about Bootstrap is that it is responsive and supports dark mode, so many CSS problems are solved for us. And with predefined UI styles/elements development is very fast (for us with minimal CSS experience).

So what would be correct plan of action?

  1. Go component by component, remove Bootstrap classes and implement custom + refactor react components because there are many divs as part of Bootstrap way of writing it.
  2. Or write our implementation for all bootstrap classes and remove that dependency?

Anyway, I'm terrified by CSS :)) I really need your help here to refactor.

angle943 commented 1 year ago

bootstrap is fine if you are comfortable with it. One thing unfortunate about FE is that there are trends that come and go, and unfortunately bootstrap became one of those tech that is disliked by modern FE devs (some are valid rationales. I also personally don't like bootstrap but won't go into details here). But personal biases aside, a framework is supposed to help you build the product, and if bootstrap is something that you are most comfortrable with, then you should use it.

When this becomes open source and open to the public later, then it might be worth refactoring things just to give people a taste of how latest tech is used (it might also appease some bootstrap haters too :D ). We might end up wanting to expand the product more, which might entail design changes, and that can be a good opportunity to revisit this. And if so, we can go with your action #1 (this is always the better option compared to action #2).

For your personal development though, if you are interested in sticking with FE long term, i would highly encourage you to find a moment of time in the future where CSS becomes no longer terrifying :). Being an actual good HTML/CSS/vanilla JS developer is a really hard thing to find these days, even at Amazon. Just 2-3 days ago I was having lunch with my coworkers at amazon and we were saying how majority of so-called FEE(Front-End Engineeres) at amazon actually have no idea what they are doing when it comes to CSS