revert(ptica): старый Section1-6 дизайн как дефолтный роут #1865
1 changed files with 8 additions and 18 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { Suspense } from "react";
|
import { Suspense } from "react";
|
||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
|
||||||
import { PticaPageContent } from "./ptica/PticaPageContent";
|
import { AnalysisPageContent } from "./AnalysisPageContent";
|
||||||
|
|
||||||
// ── Metadata ──────────────────────────────────────────────────────────────────
|
// ── Metadata ──────────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
|
@ -21,18 +21,13 @@ export async function generateMetadata({
|
||||||
const { cad: cadRaw } = await params;
|
const { cad: cadRaw } = await params;
|
||||||
const cad = decodeURIComponent(cadRaw);
|
const cad = decodeURIComponent(cadRaw);
|
||||||
return {
|
return {
|
||||||
title: `ПТИЦА · ${cad}`,
|
title: `Анализ ${cad} — Site Finder`,
|
||||||
description: `Когнитивный анализ участка ${cad} — платформа ПТИЦА`,
|
description: `Анализ инвестиционного участка ${cad}`,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Page ──────────────────────────────────────────────────────────────────────
|
// ── 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) {
|
export default async function AnalysisPage({ params }: PageProps) {
|
||||||
const { cad: cadRaw } = await params;
|
const { cad: cadRaw } = await params;
|
||||||
const cad = decodeURIComponent(cadRaw);
|
const cad = decodeURIComponent(cadRaw);
|
||||||
|
|
@ -41,23 +36,18 @@ export default async function AnalysisPage({ params }: PageProps) {
|
||||||
<Suspense
|
<Suspense
|
||||||
fallback={
|
fallback={
|
||||||
<div
|
<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={{
|
style={{
|
||||||
minHeight: "100vh",
|
padding: "40px 24px",
|
||||||
display: "grid",
|
textAlign: "center",
|
||||||
placeItems: "center",
|
color: "var(--fg-tertiary, #73767E)",
|
||||||
background: "#060f16",
|
|
||||||
color: "#8ba6b3",
|
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Загрузка ПТИЦА…
|
Загрузка анализа…
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<PticaPageContent cad={cad} />
|
<AnalysisPageContent cad={cad} />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue