fix: Reorder API routes and update main page layout

- Move /makers/ and /models/ routes before /{car_id} to fix route conflict
- Center Request Vehicle button, move PromoPreference to the right

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
AutonetSellCar Deploy
2026-01-12 23:48:06 +09:00
parent 2354ee8bbb
commit 3bd1e49699
2 changed files with 53 additions and 55 deletions

View File

@@ -47,20 +47,18 @@ export default function Home() {
<FilmStripSlider banners={banners} settings={bannerSettings} />
<div className="container mx-auto px-4 py-4 sm:py-8">
<div className="flex flex-col lg:flex-row items-center justify-center gap-4 lg:gap-8">
{/* Request Vehicle Button */}
{/* Request Vehicle Button - Centered */}
<div className="flex justify-center mb-6">
<Link
href="/vehicle-request"
className="inline-block bg-yellow-500 text-white font-semibold px-6 py-2.5 sm:px-8 sm:py-3 rounded-lg hover:bg-yellow-600 transition shadow-lg text-sm sm:text-base"
>
{t.requestVehicle}
</Link>
</div>
{/* Divider */}
<div className="hidden lg:block w-px h-24 bg-white/30"></div>
<div className="lg:hidden w-32 h-px bg-white/30"></div>
{/* Promo Preference */}
{/* Promo Preference - Right aligned */}
<div className="flex justify-center lg:justify-end">
<PromoPreference />
</div>
</div>