2.2 KiB
2.2 KiB
Layout: terms
apps/{bull,bear}/src/app/(flow)/terms/(tabs)/layout.tsx · wraps /terms and /terms/subscription · it awaits no read: its bar and tabs are server i18n (rules), so it adds nothing to the first byte; each page reads its text in the browser
| 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 | no | 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/(tabs)/layout.tsx). Pass each page's own title toDesktopPageTitle, or render the H1 in the page as bull does.