CodeNight-Ethiopia / codenight-frontend

Website for the Codenight Developer Community
https://codenight.et
MIT License
46 stars 27 forks source link

Added new Events page- dev-meetup-v2 #41

Closed milkiyas-web closed 7 months ago

milkiyas-web commented 7 months ago

This pull request introduces a new Events page to the CodeNight website under the URL /dev-meetup-v2. The purpose of this addition is to showcase past meetups and provide a platform for upcoming events related to CodeNight.

The Events page currently includes details of the latest meetup got from Linkedin and the next meetup. Given the limited historical data available, only the most recent meetup has been added. Future updates will incorporate additional past events as more information becomes available.

This addition enhances the user experience by offering a centralized location for attendees and interested individuals to access information about past and upcoming CodeNight events.

Related Issues faced:

Previously, when mapping through the contributors list on the Events page, the key value was set to the index, leading to potential errors and rendering issues. This practice is considered suboptimal, as it can result in unpredictable behavior, especially when the list changes dynamically. To address this issue, an id property was introduced for each contributor object, allowing for a stable and unique key value during mapping operations.

Similarly, when iterating over the navigation bars, the key value was set to the index, which could cause problems when the order of items in the navigation changed. To mitigate this issue, the name property was utilized as the key value instead of the index. This change ensures that the key remains consistent even if the order of navigation items is modified, thus improving the reliability and performance of the rendering process.