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: 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>
|
||||
Reference in New Issue
Block a user