Dawinartor / webther

Django based simple weather web application
0 stars 0 forks source link

conditional rendering based on status #5

Closed Dawinartor closed 7 months ago

Dawinartor commented 7 months ago

Imagine each HTML file represents one component, the task is to:

Dawinartor commented 7 months ago

Figure out how to keep CSS style for the entire application and showing the component

I didn't figure out or practically proved, but I know this: You can use master CSS file (like one CSS that uses same classes and ID's as others to keep styles general used in the entire application.

Dawinartor commented 7 months ago

Add conditional rendering to switch between many components based to conditions

Instead of using conditional rendering in the HTML file, better use condition based rendering at views.py because the API-Call also happens there.

Dawinartor commented 7 months ago

Application works properly as expected

WhatsApp Image 2023-12-04 at 16 19 28