2.1 KiB
2.1 KiB
Layout: terms
apps/{bull,bear}/src/app/(flow)/terms/layout.tsx · wraps /terms and /terms/subscription · it awaits no read: its text is server i18n (rules), so it adds nothing to the first byte
| Section | Data | HTML | JS | Index | Notes |
|---|---|---|---|---|---|
| MobileTopBar (bull) | viewer | skeleton | hydrate | no | back to where the rules were opened, and support, in the first flush; the title «قوانین لومینا» waits for the viewer |
| DesktopHeader (bear) | viewer | skeleton | hydrate | no | brand <a href> and support in the first flush; nav, bell, account menu and login wait for the viewer (layout-main.md) |
| DesktopPageTitle, with the H1 (bear) | config | first flush | hydrate | no | «بازگشت» and the H1 rules:title; bull puts its H1 in each page instead |
| RulesTabs | config | first flush | hydrate | primary | TabLinks: <a href> to /terms and /terms/subscription; usePathname marks the current tab |
Scripts: none.
- (flow) adds
force-dynamicand no UI. The layout's staticmetadatagivesrules:meta-titleandrules:meta-description; each page overrides them. - bull: a white page with no bottom nav; bear:
DesktopHeaderover the 640px column, since (flow) has no header of its own. - Debt: bear's H1 lives here, so
/terms/subscriptiongets «قوانین لومینا» on bear and «شرایط اشتراک» on bull (apps/bear/src/app/(flow)/terms/layout.tsx:40). Pass each page's own title toDesktopPageTitle, or render the H1 in the page as bull does.