Files
design-themes/theme_yes/views/snippets/s_cover.xml
T
Benoit Socias d206c11972 [IMP] theme_*: extract shapes to configurator-dedicated templates
This commit extracts the pre-defined section shapes from blocks into
templates that are dedicated to being used by the configurator.

For blocks that are not used in configurator pages, the configurator
templates have not been created.

task-3381714

Part-of: odoo/design-themes#692
2023-10-14 03:27:02 +00:00

45 lines
1.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height pt208 pb256" remove="pt96 pb96" separator=" "/>
</xpath>
<!-- Filter -->
<xpath expr="//*[hasclass('container')]" position="before">
<div class="o_we_bg_filter" style="background-color: rgba(25, 41, 37, 0.55) !important;"/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
<font style="font-size: 92px; font-weight: bold;">Once in a lifetime moments</font>
</xpath>
<!-- Paragraph -->
<xpath expr="//p" position="replace" mode="inner">
You focus on the big day, let us focus on you.
</xpath>
<!-- Button -->
<xpath expr="//a//t" position="replace" mode="inner">
Meet us
</xpath>
<!-- Scroll Down Button -->
<xpath expr="//*[hasclass('container')]" position="after">
<a class="o_scroll_button rounded-circle align-items-center justify-content-center mx-auto mb-5 text-white o_not_editable" href="#" contenteditable="false" title="" style="background-color: rgba(25, 41, 37, 0.55) !important;" data-bs-original-title="Scroll down to next section">
<i class="fa fa-chevron-down fa-1x"></i>
</a>
</xpath>
</template>
<template id="configurator_s_cover" inherit_id="website.configurator_s_cover">
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/14_001"}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//*[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_14_001"/>
</xpath>
</template>
</odoo>