7.3 KiB
7.3 KiB
Landing
/ · apps/{bull,bear}/src/app/(landing)/page.tsx · Type: home · Layout: layout.md
| Field | Value |
|---|---|
| Robots | index |
| Status | 200; prerendered with force-static and revalidate = 600 (0026), so a failed revalidation keeps serving the last good page |
| loading.tsx | none: the whole landing is in the first flush (0070) |
| First flush | loadLandingPage() → getFeaturedCreators(), awaited by the page entry at build and at each revalidation; the metadata is fixed, in the metadata export (landingMetadata) |
| Canonical | /, from landingMetadata |
| H1 | landing:hero.title from i18n, in LandingHero |
| JSON-LD | faqJsonLd(faqEntries(labels.faq)): FAQPage, a raw <script type="application/ld+json"> after the template |
| Scripts | none |
Sections
In bull's document order. The header and footer belong to LandingTemplate, not a layout.
| Section | Data | HTML | JS | Index | Notes |
|---|---|---|---|---|---|
| LandingHeader | config | first flush | none | no | brand <a href="#top">, login <a href> to /auth/login |
| ↳ Section links (bear) | config | first flush | none | no | in-page #fragment links to the bands |
| ↳ SupportEntry | config | first flush | hydrate | no | the icon trigger; its SupportDialog mounts closed, bull: bottom sheet, bear: popover |
| LandingHero, with the H1 | config | first flush | none | primary | register <a href> (investor) and #how |
| LandingTrust | config | first flush | none | secondary | |
| LandingMarkets | config | first flush | hydrate | secondary | MarketTabs: every panel in the DOM, closed ones hidden; sample data at the fixed SAMPLE_NOW |
| FeaturedAnalysts | getFeaturedCreators() |
first flush | hydrate | primary | an AnalystCard <a href> per channel, the landing's only links to channels; AnalystCarousel only scrolls; left out, with its header link, below FEATURED_MIN_COUNT |
| LandingRecord | config | first flush | none | secondary | sample track record at SAMPLE_NOW |
| LandingSteps | config | first flush | none | secondary | |
| LandingPlans | config | first flush | hydrate | secondary | a sample locked PostCard as a guest sees it; its share popover is the client leaf |
| LandingForAnalysts | config | first flush | none | secondary | apply <a href> to creator registration |
| LandingFaq | config | first flush | hydrate | primary | <details>, every answer in the DOM, the first open; the support link is the client leaf |
| LandingClosing | config | first flush | none | secondary | register and login <a href> |
| LandingFooter | config | first flush | none | primary | #fragment links, /terms/subscription, Bale and Telegram chats |
| LandingRedirect | viewer | none | hydrate | no | renders nothing; sends a member to homeRoute with router.replace (0027) |
Notes
- 0070: the landing is the only page whose content the server renders; every other page reads its data in the browser.
- bull:
layout="mobile"; bear:layout="desktop", which adds the header's section links and opens support as a popover. Both apps hold the same primary and secondary sections. force-staticcontradicts the skill's "never static rendering"; accepted decision 0026 overrides it. The page reads no session, so the prerender is the same for every visitor.- Debt:
FAQPagemarkup (platforms/market/src/app/seo/landing.ts:31), which Google no longer shows; the home page getsOrganizationandWebSitefrom config instead. The graph is a rawElementscript after the template (apps/{bull,bear}/src/app/(landing)/page.tsx:58), not one<JsonLd>before it: the repo has no json-ld lib or islandJsonLdyet.