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