sef-global / scholarx-frontend

This is the frontend of the ScholarX
MIT License
5 stars 56 forks source link

Add country selection dropdown and display flags for mentor profiles #165

Open Madhawa97 opened 2 months ago

Madhawa97 commented 2 months ago

Is your feature request related to a problem? Please describe.

The current system uses free text input for country, leading to inconsistencies and potential invalid entries. A standardized dropdown will ensure data consistency and enable proper flag display.

Describe the solution you'd like

Implement a feature to allow mentors to select their country of residence from a dropdown and display a corresponding flag on their profile.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here

Suggestions for flag display

  1. Use a third-party API that serves flag images based on country codes (e.g., https://flagcdn.com or https://flagpedia.net)
  2. Use Unicode country code flags (emoji) which are supported by most modern browsers
  3. Implement a local mapping of country codes to flag image files, stored in the application's static assets
Akshaydotcom commented 1 month ago

Hey! Can I work on this? @anjula-sack

anjula-sack commented 1 month ago

Go ahead. @Akshaydotcom You can get the countries using /countries endpoint