mirror of
https://github.com/logos-co/logos-web.git
synced 2026-08-31 06:01:26 +00:00
* fix(sitemap): remove FAQ route from static indexable routes * feat(web): markdown-managed legal pages + Testnet FAQ & Terms Introduce a markdown-based system for legal/info documents and add the two testnet pages on the same docs route pattern. - Add getLegalDoc loader (gray-matter frontmatter + zod validation) and LegalMarkdown renderer (react-markdown + remark-gfm) mapped to Logos design tokens; render legal pages as a server component. - Refactor docs-page-factory to source content from content/legal/<slug>.md instead of next-intl namespaces; migrate terms, privacy, and security from messages/en.json to markdown. - Add /testnet-v01-faqs and /testnet-terms-and-conditions pages with content mirrored from logos.co; link the FAQ's testnet-terms references to the internal route. - Add Testnet FAQ and Testnet Terms to the docs ToC (remove the dead FAQ entry); register both routes in the sitemap. - Align docs content to the standard page gutter by removing the redundant px-3 on the docs page shell. * chore: optimise page imagery * feat(web): link Logos Devs X account in community section * chore(web): hide 'What you can build today' section on get-started and builders-hub * refactor: reuse builders hub start sections * feat(builders-hub): source RFPs from GitHub API at build time Fetch and parse RFPs from the logos-co/rfp repo (markdown + YAML frontmatter) at build time instead of local content, so the /rfps listing and [slug] detail pages render from a single live source. - add rfps-github lib: GitHub contents fetch, gray-matter frontmatter parse, stable slug from filename, draft/template exclusion - detail page renders frontmatter-stripped markdown via LegalMarkdown, with Apply + View on GitHub CTAs - widen RFP card/row/listing props to RfpListItem so GitHub data (no reward/image) and local Rfp both satisfy the UI - add optional markdown body to BuildersHubDetailLayout * refactor: share get started sections
23 lines
554 B
TypeScript
23 lines
554 B
TypeScript
import type { BuilderHubHomeRfpResolution } from '@repo/content/loaders'
|
|
import type { BuilderHubSettings } from '@repo/content/schemas'
|
|
|
|
import { DeveloperProgramsSection } from '@/components/sections/shared/developer-programs-section'
|
|
|
|
export function ProgramsSection({
|
|
data,
|
|
rfps,
|
|
}: {
|
|
data: NonNullable<BuilderHubSettings['programs']>
|
|
rfps: BuilderHubHomeRfpResolution['rfps']
|
|
}) {
|
|
return (
|
|
<DeveloperProgramsSection
|
|
id="builder-programs"
|
|
index="04"
|
|
title={data.title}
|
|
data={data}
|
|
rfps={rfps}
|
|
/>
|
|
)
|
|
}
|