Skip to content

refactor(ui): migrate icons to Next Image and remove inline auto sizing#2

Open
tenSunFree wants to merge 3 commits into
yyyyyyy4:mainfrom
tenSunFree:refactor/hero-icons-next-image
Open

refactor(ui): migrate icons to Next Image and remove inline auto sizing#2
tenSunFree wants to merge 3 commits into
yyyyyyy4:mainfrom
tenSunFree:refactor/hero-icons-next-image

Conversation

@tenSunFree
Copy link
Copy Markdown

Migrate SVG icons from to next/image for consistency in the Hero section:
camp.svg, star.svg, close.svg

Remove inline style={{ width: 'auto', height: 'auto' }} to avoid overriding sizing and causing unpredictable layout.

Normalize icon sizing with Tailwind classes:
Camp: w-10 h-10 → lg:w-[50px] lg:h-[50px]
Star/Close: w-6 h-6 (24px)

Use unoptimized for SVG icons since they don’t benefit much from Next image optimization.

@yyyyyyy4 yyyyyyy4 force-pushed the main branch 27 times, most recently from 84844c3 to d438aa9 Compare February 24, 2026 13:13
@yyyyyyy4 yyyyyyy4 force-pushed the main branch 30 times, most recently from caf3e70 to e49252d Compare March 1, 2026 07:16
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.

2 participants