This repository contains the Quartz-based source for slavx.ru: the main site content, custom landing components, legal pages, multicontent logic, and local tooling used to manage site variants.
content/— primary site contentdocs/— local project and Quartz-related docsquartz/— Quartz source plus custom components, scripts, and stylesquartz/static/data/— JSON-backed landing, form, and carousel datatools/multicontent-admin/— local admin for multicontent editing
Quartz requires Node >= 22.
npm cinpm run site:dev— build and serve the main site fromcontent/npm run docs— build and serve the docs tree fromdocs/npm run multicontent-admin— start the local multicontent adminnpm run check— typecheck + prettier checknpm run format— format the repo with prettiernpm test— run unit tests
This repo includes a services carousel component that can be embedded in Markdown pages.
Usage:
<services-carousel data-source="/static/data/services-carousel.json"></services-carousel>
Data file location:
quartz/static/data/services-carousel.json
Per-instance overrides (optional):
data-auto-speed,data-drag-sensitivity,data-height,data-radius-scaledata-min-radius,data-max-radius,data-min-gapdata-form-action,data-form-method
Data file shape (example):
{
"form": {
"action": "https://app.slavx.ru/api/v1/f/12a7dd50d5c0",
"method": "POST",
"submitLabel": "Send",
"privacyNote": "No spam"
},
"cards": [
{
"title": "Design",
"description": "UI/UX, prototypes, system.",
"price": "from 25 000",
"note": "Reply within a day",
"button": {
"text": "Order",
"href": "/Кoнтакты",
"action": "open-modal"
}
}
]
}
Notes:
- Multiple carousels are supported on the same page via different JSON files.
- Form submission is handled via AJAX to avoid redirects.
- Payload is sent as JSON with flat fields:
name,email,message,service,price. - API expects
application/json(orapplication/x-www-form-urlencoded). This component uses JSON. - Server-side redirects are treated as success and not followed to prevent
.../nullrequests.
- Integration audit and architecture notes:
docs/home-central-integration.md - Services carousel audit:
docs/carousel-audit.md
Upstream Quartz documentation: https://quartz.jzhao.xyz/