2026-03-09 10:36:03 +08:00
import type { Metadata } from "next" ;
2026-05-24 17:55:32 +08:00
import { redirect } from "next/navigation" ;
2026-05-25 00:16:32 +08:00
import { InstitutionalLandingPage } from "@/components/landing/InstitutionalLandingPage" ;
2026-03-09 10:36:03 +08:00
export const metadata : Metadata = {
2026-05-25 22:51:53 +08:00
title : "PolyWeather | Institutional Weather Signal Intelligence" ,
2026-03-09 10:36:03 +08:00
description :
2026-05-31 01:56:08 +08:00
"PolyWeather is a paid professional weather-signal intelligence terminal with METAR evidence, DEB forecast blending, and structured decision context." ,
2026-05-26 08:23:33 +08:00
other : {
preconnect : "https://api.polyweather.top" ,
},
2026-03-09 10:36:03 +08:00
};
2026-03-09 04:41:24 +08:00
2026-05-24 17:55:32 +08:00
export default async function HomePage ({
searchParams ,
} : {
searchParams : Promise < Record < string , string | string [] | undefined >>;
}) {
const params = await searchParams ;
const code = params . code ;
if ( typeof code === "string" && code . trim ()) {
const usp = new URLSearchParams ();
for ( const [ key , value ] of Object . entries ( params )) {
if ( value != null ) {
if ( Array . isArray ( value )) {
for ( const v of value ) usp . append ( key , v );
} else {
usp . set ( key , value );
}
}
}
const qs = usp . toString ();
redirect ( `/auth/callback ${ qs ? `? ${ qs } ` : "" } ` );
}
2026-05-26 08:43:55 +08:00
const jsonLd = {
"@context" : "https://schema.org" ,
"@type" : "WebApplication" ,
name : "PolyWeather" ,
description :
2026-05-31 01:56:08 +08:00
"Paid professional weather-signal intelligence terminal with METAR evidence, DEB forecast blending, and structured decision context." ,
2026-05-26 08:43:55 +08:00
url : "https://polyweather.top" ,
applicationCategory : "BusinessApplication" ,
operatingSystem : "Web" ,
2026-05-29 20:46:35 +08:00
offers : [
{
"@type" : "Offer" ,
name : "Pro monthly" ,
price : "29.90" ,
priceCurrency : "USD" ,
description :
2026-05-30 18:04:36 +08:00
"Pro subscription for 30 days. Referral users pay 20.00 USD-equivalent USDC for the first month." ,
2026-05-29 20:46:35 +08:00
availability : "https://schema.org/InStock" ,
},
{
"@type" : "Offer" ,
name : "Pro quarterly" ,
price : "79.90" ,
priceCurrency : "USD" ,
description : "Pro subscription for 90 days." ,
availability : "https://schema.org/InStock" ,
},
],
2026-05-26 08:43:55 +08:00
};
2026-05-26 08:23:33 +08:00
return (
<>
2026-05-26 08:43:55 +08:00
< script
type = "application/ld+json"
dangerouslySetInnerHTML = {{ __html : JSON.stringify ( jsonLd ) }}
/>
2026-05-26 08:23:33 +08:00
< InstitutionalLandingPage />
</>
);
2026-03-09 10:36:03 +08:00
}