revert(ptica): старый Section1-6 дизайн как дефолтный роут #1865

Merged
bot-backend merged 1 commit from rollback/sf-old-analysis-design into main 2026-06-21 13:42:59 +00:00

View file

@ -1,7 +1,7 @@
import { Suspense } from "react";
import type { Metadata } from "next";
import { PticaPageContent } from "./ptica/PticaPageContent";
import { AnalysisPageContent } from "./AnalysisPageContent";
// ── Metadata ──────────────────────────────────────────────────────────────────
@ -21,18 +21,13 @@ export async function generateMetadata({
const { cad: cadRaw } = await params;
const cad = decodeURIComponent(cadRaw);
return {
title: `ПТИЦА · ${cad}`,
description: `Когнитивный анализ участка ${cad} — платформа ПТИЦА`,
title: `Анализ ${cad} — Site Finder`,
description: `Анализ инвестиционного участка ${cad}`,
};
}
// ── Page ──────────────────────────────────────────────────────────────────────
// The ПТИЦА cockpit is now the PRIMARY analysis view: every entry point
// (entry-map click, recent parcels, cad input, direct URL) lands here. The old
// AnalysisPageContent stays in the repo for reference but is no longer rendered
// on this route. The sibling `[cad]/ptica` subroute redirects back here so a
// single PticaPageContent is the only live copy of the cockpit.
export default async function AnalysisPage({ params }: PageProps) {
const { cad: cadRaw } = await params;
const cad = decodeURIComponent(cadRaw);
@ -41,23 +36,18 @@ export default async function AnalysisPage({ params }: PageProps) {
<Suspense
fallback={
<div
// Inline hex intentionally duplicates --bg / --text-muted: the scoped
// CSS-module tokens live under .pticaRoot[data-theme="dark"] and aren't
// reachable from this server-rendered Suspense fallback.
style={{
minHeight: "100vh",
display: "grid",
placeItems: "center",
background: "#060f16",
color: "#8ba6b3",
padding: "40px 24px",
textAlign: "center",
color: "var(--fg-tertiary, #73767E)",
fontSize: 14,
}}
>
Загрузка ПТИЦА
Загрузка анализа
</div>
}
>
<PticaPageContent cad={cad} />
<AnalysisPageContent cad={cad} />
</Suspense>
);
}