[IMP] theme_bewise: adapt s_banner

Since the redesign of the original banner snippet, the customizations
made in theme_bewise have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
This commit is contained in:
Brieuc-brd
2023-08-28 11:54:24 +02:00
committed by qsm-odoo
parent 6e3b30d3f9
commit a8287d377e
4 changed files with 10 additions and 34 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

-34
View File
@@ -32,40 +32,6 @@
</xpath>
</template>
<!-- ======== BANNER ======== -->
<template id="s_banner" inherit_id="website.s_banner" name="Be Wise s_banner">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/18","flip":["x"]}</attribute>
</xpath>
<!-- Parallax Background -->
<xpath expr="//span[hasclass('s_parallax_bg')]" position="attributes">
<attribute name="style" add="background-position: 50% 100%;" remove="background-position: 50% 0;" separator=";"/>
</xpath>
<!-- Filter & shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_bg_filter bg-black-50"/>
<div class="o_we_shape o_web_editor_Origins_18" style="background-image: url('/web_editor/shape/web_editor/Origins/18.svg?c1=o-color-1&amp;flip=x'); background-position: 50% 50%;"/>
</xpath>
<!-- Wrap -->
<xpath expr="//div[hasclass('col-lg-6')]" position="attributes">
<attribute name="class" remove="o_cc o_cc1" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
Sell Online. <br/>Easily.
</xpath>
<!-- Space after the text -->
<xpath expr="//p" position="after">
<p><br/></p>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="attributes">
<attribute name="class" add="btn-lg btn-secondary" remove="btn-primary" separator=" "/>
</xpath>
</template>
<!-- ======== TEXT-IMAGE ======== -->
<template id="s_text_image" inherit_id="website.s_text_image" name="Be Wise s_text_image">
<xpath expr="//h2" position="replace" mode="inner">
+10
View File
@@ -7,6 +7,16 @@
<field name="name">website.s_banner_default_image</field>
<field name="url">/theme_bewise/static/src/img/backgrounds/college_bg_2.jpg</field>
</record>
<record id="s_banner_default_image_2" model="theme.ir.attachment">
<field name="key">website.s_banner_default_image_2</field>
<field name="name">website.s_banner_default_image_2</field>
<field name="url">/theme_bewise/static/src/img/backgrounds/college_bg_6.jpg</field>
</record>
<record id="s_banner_default_image_3" model="theme.ir.attachment">
<field name="key">website.s_banner_default_image_3</field>
<field name="name">website.s_banner_default_image_3</field>
<field name="url">/theme_bewise/static/src/img/backgrounds/college_bg_7.jpg</field>
</record>
<record id="s_cover_default_image" model="theme.ir.attachment">
<field name="key">website.s_cover_default_image</field>
<field name="name">website.s_cover_default_image</field>