Skip to content

Fix UI issues and enhance localization#153

Merged
adamswonder merged 6 commits intoAfrican-Ruby-Community:mainfrom
JudahSan:fix/arc
Mar 8, 2026
Merged

Fix UI issues and enhance localization#153
adamswonder merged 6 commits intoAfrican-Ruby-Community:mainfrom
JudahSan:fix/arc

Conversation

@JudahSan
Copy link
Collaborator

@JudahSan JudahSan commented Mar 5, 2026

Resolve black flash on the home screen hero image banner by upgrading image rendering and implementing eager loading. Improve the design of chapter and learning material cards, and unify the search bar design across pages. Add comprehensive translations for events and UI elements in multiple locales, ensuring all hardcoded text is replaced with translation keys. Include missing country icons for better representation.

JudahSan added 6 commits March 4, 2026 21:45
Upgrade image rendering to prevent black flash during load by switching
to Tailwind 4 opacity syntax and adding eager loading with explicit dimensions.

- Use bg-black/40 instead of deprecated bg-black bg-opacity-40
- Add loading: "eager" to prioritize hero image load
- Set explicit height to prevent layout shift
- Switch to pre-optimized image (intro-landing-optimized.jpg)
- Replace chapter card design with events card style (hover effects, modern layout)
- Reduce learning materials card size to match projects page grid
- Make featured learning materials larger than general resources (2-col vs 3-col grid)
- Add elegant projects page search bar design to learning and events pages
- Fix search icon alignment persisting after Turbo navigation using inline styles
  for position stability across all pages
…, sw.yml, fr.yml) for:

- Events index and show pages
- Conferences index page
- All UI elements like buttons, labels, messages, and placeholders

Update the view files to use the t() helper method to fetch translations:

index.html.erb
 - All hardcoded text replaced with translation keys
show.html.erb
 - All hardcoded text replaced with translation keys
index.html.erb
 - All hardcoded text replaced with translation keys
…, sw.yml, fr.yml) for:

- Events index and show pages
- Conferences index page
- All UI elements like buttons, labels, messages, and placeholders

Update the view files to use the t() helper method to fetch translations:

index.html.erb
 - All hardcoded text replaced with translation keys
show.html.erb
 - All hardcoded text replaced with translation keys
index.html.erb
 - All hardcoded text replaced with translation keys
@adamswonder adamswonder merged commit 3ee2335 into African-Ruby-Community:main Mar 8, 2026
3 of 4 checks passed
@JudahSan JudahSan deleted the fix/arc branch March 8, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add country icons UI: Conference banner image and learning page cards

2 participants