/
githubmirror
/
marktext
Обзор
Документация
Войти
/
githubmirror
/
marktext
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/website/src/lib/sections.ts
22 строки
603 B
Ran Luo
refactor(website): simplify landing page (helpers, types, data-driven blocks) (#4350)
02 июн 2026, 19:38
Не верифицирован
02 июн 2026, 19:38
1c7058a
Код
Авторство
О чём код?
export const SECTIONS = { top: 'top', preview: 'preview', extensions: 'extensions', themes: 'themes', support: 'support', download: 'download' } as const export type SectionId = (typeof SECTIONS)[keyof typeof SECTIONS] export const hash = (id: SectionId) => `#${id}` as const export type RevealDelay = 'd1' | 'd2' | 'd3' | 'd4' export function revealClass(delay?: RevealDelay, extra?: string): string { const base = extra ? `${extra} reveal` : 'reveal' return delay ? `${base} ${delay}` : base } export const THEME_STORAGE_KEY = 'marktext-theme' export const DEFAULT_THEME = 'dark'