Add Site Studio themes and Theme Manager

Support categorized fragments, theme presets, block widths, and server-backed theme editing with onboarding and preview.

Include Site Studio, design sources, specification and verification reports; remove the legacy studio-site example.
This commit is contained in:
2026-11-13 14:04:49 +03:00
parent 231490bb7c
commit 0d171915d7
408 changed files with 11812 additions and 550 deletions
@@ -0,0 +1,19 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: card_grid
name: Сетка преимуществ
category: content
version: 1
fields:
- key: heading
type: text
required: false
- key: card1
type: text
required: false
- key: card2
type: text
required: false
- key: card3
type: text
required: false
slots: {}
@@ -0,0 +1,6 @@
name: Сетка преимуществ
props:
heading: ''
card1: ''
card2: ''
card3: ''
@@ -0,0 +1 @@
<section class="section alt" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Преимущества' }}</h2><div class="cards">{% for c in [props.card1,props.card2,props.card3] if c %}<article class="card"><small>0{{ loop.index }} / VALUE</small><strong>{{ c }}</strong><p>Практичный подход к реализации проекта.</p></article>{% endfor %}</div></div></section>
@@ -0,0 +1,10 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: disclaimer
name: Уведомление
category: content
version: 1
fields:
- key: text
type: textarea
required: true
slots: {}
@@ -0,0 +1,3 @@
name: Уведомление
props:
text: ''
@@ -0,0 +1 @@
<aside class="section disclaimer" id="{{ block.anchor or block.id }}"><div class="container"><p>{{ props.text }}</p></div></aside>
@@ -0,0 +1,16 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: faq
name: Вопросы и ответы
category: content
version: 1
fields:
- key: heading
type: text
required: false
- key: question
type: text
required: true
- key: answer
type: textarea
required: true
slots: {}
@@ -0,0 +1,5 @@
name: Вопросы и ответы
props:
heading: ''
question: ''
answer: ''
@@ -0,0 +1 @@
<section class="section alt" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Вопросы и ответы' }}</h2><details class="faq"><summary>{{ props.question }}</summary><p>{{ props.answer }}</p></details></div></section>
@@ -0,0 +1,13 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: richtext
name: Markdown-контент
category: content
version: 1
fields:
- key: heading
type: text
required: false
- key: source
type: select
required: false
slots: {}
@@ -0,0 +1,4 @@
name: Markdown-контент
props:
heading: ''
source: ''
@@ -0,0 +1 @@
<section class="section" id="{{ block.anchor or block.id }}"><div class="container prose">{% if props.heading %}<h2>{{ props.heading }}</h2>{% endif %}{{ render_markdown(content_body)|safe }}</div></section>
@@ -0,0 +1,13 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: section
name: Текстовая секция
category: content
version: 1
fields:
- key: heading
type: text
required: true
- key: text
type: textarea
required: false
slots: {}
@@ -0,0 +1,4 @@
name: Текстовая секция
props:
heading: ''
text: ''
@@ -0,0 +1 @@
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading }}</h2>{% if props.text %}<p>{{ props.text }}</p>{% endif %}</div></section>
@@ -0,0 +1,19 @@
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
id: steps
name: Этапы работы
category: content
version: 1
fields:
- key: heading
type: text
required: false
- key: step1
type: text
required: true
- key: step2
type: text
required: true
- key: step3
type: text
required: true
slots: {}
@@ -0,0 +1,6 @@
name: Этапы работы
props:
heading: ''
step1: ''
step2: ''
step3: ''
@@ -0,0 +1 @@
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Этапы' }}</h2><div class="steps">{% for step in [props.step1,props.step2,props.step3] if step %}<div><span>0{{ loop.index }}</span><b>{{ step }}</b></div>{% endfor %}</div></div></section>