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:
@@ -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>
|
||||
@@ -0,0 +1,19 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: collection_list
|
||||
name: Список коллекции
|
||||
category: data
|
||||
version: 1
|
||||
fields:
|
||||
- key: heading
|
||||
type: text
|
||||
required: false
|
||||
- key: collection
|
||||
type: select
|
||||
required: true
|
||||
- key: sort
|
||||
type: select
|
||||
required: false
|
||||
- key: limit
|
||||
type: number
|
||||
required: false
|
||||
slots: {}
|
||||
@@ -0,0 +1,6 @@
|
||||
name: Список коллекции
|
||||
props:
|
||||
heading: ''
|
||||
collection: ''
|
||||
sort: ''
|
||||
limit: ''
|
||||
@@ -0,0 +1 @@
|
||||
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Направления' }}</h2><p class="section-lead">Технологические решения для ваших процессов.</p><div class="cards">{% for item in query_entries(props.collection, props.sort or 'order', props.limit or 6) %}<a class="card" href="{{ site_link(item.url) }}"><small>0{{ loop.index }} / {{ item.collection|upper }}</small><strong>{{ item.title }}</strong><p>{{ item.summary }}</p></a>{% else %}<p>Пока нет опубликованных записей.</p>{% endfor %}</div></div></section>
|
||||
@@ -0,0 +1,13 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: entry_card
|
||||
name: Карточка записи
|
||||
category: data
|
||||
version: 1
|
||||
fields:
|
||||
- key: heading
|
||||
type: text
|
||||
required: false
|
||||
- key: entry
|
||||
type: ref
|
||||
required: true
|
||||
slots: {}
|
||||
@@ -0,0 +1,4 @@
|
||||
name: Карточка записи
|
||||
props:
|
||||
heading: ''
|
||||
entry: ''
|
||||
@@ -0,0 +1 @@
|
||||
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Рекомендуем' }}</h2>{% set item = entry_by_ref(props.entry) %}{% if item %}<a class="card standalone" href="{{ site_link(item.url) }}"><small>{{ item.collection|upper }}</small><strong>{{ item.title }}</strong><p>{{ item.summary }}</p></a>{% endif %}</div></section>
|
||||
@@ -0,0 +1,16 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: entry_header
|
||||
name: Заголовок записи
|
||||
category: data
|
||||
version: 1
|
||||
fields:
|
||||
- key: title
|
||||
type: text
|
||||
required: true
|
||||
- key: summary
|
||||
type: textarea
|
||||
required: false
|
||||
- key: image
|
||||
type: asset
|
||||
required: false
|
||||
slots: {}
|
||||
@@ -0,0 +1,5 @@
|
||||
name: Заголовок записи
|
||||
props:
|
||||
title: ''
|
||||
summary: ''
|
||||
image: ''
|
||||
@@ -0,0 +1 @@
|
||||
<section class="entry-intro"><div class="container"><div class="tag">STUDIO / {{ entry.collection|upper if entry else 'ENTRY' }}</div><h1>{{ props.title }}</h1>{% if props.summary %}<p>{{ props.summary }}</p>{% endif %}{% if props.image %}<img class="entry-cover" src="{{ asset_url(props.image) }}" alt="" loading="lazy">{% endif %}</div></section>
|
||||
@@ -0,0 +1,16 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: form
|
||||
name: Форма из схемы
|
||||
category: forms
|
||||
version: 1
|
||||
fields:
|
||||
- key: form_id
|
||||
type: ref
|
||||
required: true
|
||||
- key: heading
|
||||
type: text
|
||||
required: false
|
||||
- key: description
|
||||
type: textarea
|
||||
required: false
|
||||
slots: {}
|
||||
@@ -0,0 +1,5 @@
|
||||
name: Форма из схемы
|
||||
props:
|
||||
form_id: ''
|
||||
heading: ''
|
||||
description: ''
|
||||
@@ -0,0 +1 @@
|
||||
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.heading or 'Связаться' }}</h2>{% if props.description %}<p>{{ props.description }}</p>{% endif %}{% set form = get_form(props.form_id) %}{% if form %}<form class="demo-form" data-form="{{ form.id }}" novalidate>{% for field in form.fields if field.enabled %}<label>{{ field.label }}{% if field.type == 'textarea' %}<textarea name="{{ field.id }}" placeholder="Демонстрационный ввод" {% if field.required %}required{% endif %}></textarea>{% else %}<input type="{{ field.type if field.type in ['email','tel'] else 'text' }}" name="{{ field.id }}" placeholder="Демонстрационный ввод" {% if field.required %}required{% endif %}>{% endif %}</label>{% endfor %}<button type="submit" class="btn">Отправить демо-заявку</button><p class="form-feedback" role="status">Это статическая демонстрация. Заявки не отправляются и не сохраняются.</p></form>{% endif %}</div></section>
|
||||
@@ -0,0 +1,19 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: cta_banner
|
||||
name: Призыв к действию
|
||||
category: marketing
|
||||
version: 1
|
||||
fields:
|
||||
- key: title
|
||||
type: text
|
||||
required: true
|
||||
- key: text
|
||||
type: textarea
|
||||
required: false
|
||||
- key: button
|
||||
type: text
|
||||
required: false
|
||||
- key: buttonUrl
|
||||
type: link
|
||||
required: false
|
||||
slots: {}
|
||||
@@ -0,0 +1,6 @@
|
||||
name: Призыв к действию
|
||||
props:
|
||||
title: ''
|
||||
text: ''
|
||||
button: ''
|
||||
buttonUrl: ''
|
||||
@@ -0,0 +1 @@
|
||||
<section class="cta" id="{{ block.anchor or block.id }}"><div class="container"><h2>{{ props.title }}</h2>{% if props.text %}<p>{{ props.text }}</p>{% endif %}<a class="btn" href="{{ site_link(props.buttonUrl or '/request/') }}">{{ props.button or 'Оставить заявку' }} →</a></div></section>
|
||||
@@ -0,0 +1,22 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: hero
|
||||
name: Первый экран
|
||||
category: marketing
|
||||
version: 1
|
||||
fields:
|
||||
- key: title
|
||||
type: text
|
||||
required: true
|
||||
- key: subtitle
|
||||
type: textarea
|
||||
required: false
|
||||
- key: button
|
||||
type: text
|
||||
required: false
|
||||
- key: buttonUrl
|
||||
type: link
|
||||
required: false
|
||||
- key: background
|
||||
type: asset
|
||||
required: false
|
||||
slots: {}
|
||||
@@ -0,0 +1,7 @@
|
||||
name: Первый экран
|
||||
props:
|
||||
title: ''
|
||||
subtitle: ''
|
||||
button: ''
|
||||
buttonUrl: ''
|
||||
background: ''
|
||||
@@ -0,0 +1 @@
|
||||
<section class="hero" id="{{ block.anchor or block.id }}" {% if props.background %}style="--hero-image: url('{{ asset_url(props.background) }}')"{% endif %}><div class="container"><div class="tag">● DIGITAL / AI ENGINEERING</div><h1>{{ props.title }}</h1>{% if props.subtitle %}<p>{{ props.subtitle }}</p>{% endif %}{% if props.button %}<a class="btn hero-button" href="{{ site_link(props.buttonUrl or '/request/') }}">{{ props.button }} →</a>{% endif %}</div></section>
|
||||
@@ -0,0 +1,13 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: image
|
||||
name: Изображение
|
||||
category: media
|
||||
version: 1
|
||||
fields:
|
||||
- key: asset
|
||||
type: asset
|
||||
required: true
|
||||
- key: alt
|
||||
type: text
|
||||
required: true
|
||||
slots: {}
|
||||
@@ -0,0 +1,4 @@
|
||||
name: Изображение
|
||||
props:
|
||||
asset: ''
|
||||
alt: ''
|
||||
@@ -0,0 +1 @@
|
||||
<section class="section" id="{{ block.anchor or block.id }}"><div class="container"><figure class="site-image"><img src="{{ asset_url(props.asset) }}" alt="{{ props.alt or '' }}" loading="lazy">{% if props.alt %}<figcaption>{{ props.alt }}</figcaption>{% endif %}</figure></div></section>
|
||||
@@ -0,0 +1,10 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: site_footer
|
||||
name: Подвал сайта
|
||||
category: system
|
||||
version: 1
|
||||
fields:
|
||||
- key: menu
|
||||
type: select
|
||||
required: false
|
||||
slots: {}
|
||||
@@ -0,0 +1,3 @@
|
||||
name: Подвал сайта
|
||||
props:
|
||||
menu: ''
|
||||
@@ -0,0 +1 @@
|
||||
<footer class="site-footer"><div class="container footer-inner"><span><b>{{ company.short_name }}</b> © 2026 · {{ company.tagline }}</span><nav aria-label="Нижнее меню">{% for item in menus.footer if item.enabled %}<a href="{{ site_link(item.page) }}">{{ item.label }}</a>{% endfor %}</nav></div></footer>
|
||||
@@ -0,0 +1,16 @@
|
||||
# Контракт демонстрационного фрагмента. Renderer production может уточнить DTO.
|
||||
id: site_header
|
||||
name: Шапка сайта
|
||||
category: system
|
||||
version: 1
|
||||
fields:
|
||||
- key: menu
|
||||
type: select
|
||||
required: false
|
||||
- key: cta_label
|
||||
type: text
|
||||
required: false
|
||||
- key: cta_url
|
||||
type: link
|
||||
required: false
|
||||
slots: {}
|
||||
@@ -0,0 +1,5 @@
|
||||
name: Шапка сайта
|
||||
props:
|
||||
menu: ''
|
||||
cta_label: ''
|
||||
cta_url: ''
|
||||
@@ -0,0 +1 @@
|
||||
<header class="site-header"><div class="container"><a class="brand" href="{{ site_link('/') }}"><span class="brandmark">S</span> {{ company.short_name }}</a><nav aria-label="Главное меню">{% for item in menus.main if item.enabled %}<a href="{{ site_link(item.page) }}">{{ item.label }}</a>{% endfor %}</nav><a class="smallbtn" href="{{ site_link(props.cta_url or '/request/') }}">{{ props.cta_label or 'Обсудить проект' }}</a></div></header>
|
||||
Reference in New Issue
Block a user