refactor(tradein/v2): перенос HUD v2 в tradein-mvp frontend
Прод-/trade-in/* обслуживает tradein-mvp/frontend (basePath=/trade-in, standalone), а не главный frontend — v2 по ошибке попал в главный, где прод его не отдаёт. Markup-only порт (fixtures, без API): - компоненты v2 → tradein-mvp/frontend/src/components/trade-in/v2/ - роут src/app/v2/ (basePath даёт прод-URL /trade-in/v2) - public/trade-in-v2/building.png - HeroBar: <img> → next/image (плоский img не префиксит basePath → 404) - удалён мёртвый v2 из главного frontend next build (NEXT_PUBLIC_BASE_PATH=/trade-in) зелёный, роут /v2 prerendered.
This commit is contained in:
parent
fba41c0cce
commit
fcb85deab8
18 changed files with 5 additions and 5 deletions
|
Before Width: | Height: | Size: 501 KiB After Width: | Height: | Size: 501 KiB |
|
|
@ -1,5 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import Image from "next/image";
|
||||
|
||||
import { tokens } from "./tokens";
|
||||
import { object, report } from "./fixtures";
|
||||
|
||||
|
|
@ -184,14 +186,12 @@ export default function HeroBar({ onOpenInfo }: HeroBarProps) {
|
|||
boxShadow: "0 6px 26px rgba(40,80,130,.10)",
|
||||
}}
|
||||
>
|
||||
<img
|
||||
<Image
|
||||
src="/trade-in-v2/building.png"
|
||||
alt=""
|
||||
fill
|
||||
sizes="560px"
|
||||
style={{
|
||||
position: "absolute",
|
||||
inset: 0,
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
objectFit: "contain",
|
||||
objectPosition: "right center",
|
||||
filter: "saturate(.9) brightness(1.04)",
|
||||
Loading…
Add table
Reference in a new issue