atasoya / emu-guide

Go-to platform for all things related to Eastern Mediterranean University (EMU).
https://www.emu.guide
0 stars 2 forks source link

Refactor FeaturedAnnouncement Component to Accept HTML Input and Render English and Turkish Announcements Conditionally #6

Open atasoya opened 4 days ago

atasoya commented 4 days ago

Description: The current FeaturedAnnouncement component is limited in its input capabilities and does not support HTML content or conditional rendering for different languages. To improve its functionality and make it adaptable for multilingual announcements, we need to refactor the component to meet the following requirements:

Requirements:

  1. HTML Content Support:

    • Update the FeaturedAnnouncement component to accept HTML input so that formatted text, links, and embedded elements can be rendered correctly.
  2. Conditional Language Rendering:

    • Add support to the component to render announcements in either English or Turkish based on a language prop.
    • Ensure that the language prop can be passed down to determine the content that should be displayed (e.g., lang='en' for English and lang='tr' for Turkish).

Acceptance Criteria:

Technical Notes:

Additional Information:

fcendesu commented 2 days ago

I would like to handle that issue