[IMP] theme_anelusia: replace banner with text_cover

The new text_cover snippet introduced in commit [1] reproduces the same
result as the Anelusia banner. It makes more sense to use now this new
snippet and get rid of the banner customizations.

This commit removes banner customizations in favor of text_cover
snippet.

As the text_cover snippet is not yet managed in the svg preview, this
snippet uses the banner image.

[1]: https://github.com/odoo/odoo/commit/5ac340b1b27c9527463e2eed65fe2e7768b36702

task-3097005

Part-of: odoo/design-themes#687
This commit is contained in:
Brieuc-brd
2023-08-29 11:47:50 +02:00
committed by qsm-odoo
parent e3248ddfda
commit 68c68740bf
6 changed files with 21 additions and 14 deletions
+2 -2
View File
@@ -15,7 +15,7 @@
'views/snippets/s_cover.xml',
'views/snippets/s_image_gallery.xml',
'views/snippets/s_media_list.xml',
'views/snippets/s_banner.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_references.xml',
'views/snippets/s_call_to_action.xml',
@@ -45,7 +45,7 @@
'website.s_media_list_default_image_2': '/theme_anelusia/static/src/img/snippets/s_media_list_2.jpg',
},
'snippet_lists': {
'homepage': ['s_banner', 's_images_wall', 's_color_blocks_2', 's_references',
'homepage': ['s_text_cover', 's_images_wall', 's_color_blocks_2', 's_references',
's_media_list', 's_company_team', 's_call_to_action'],
},
'license': 'LGPL-3',
Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

+1 -1
View File
@@ -4,7 +4,7 @@ import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [
{
id: 's_banner',
id: 's_text_cover',
name: 'Banner',
},
{
+15
View File
@@ -7,6 +7,21 @@
<field name="name">website.s_banner_default_image</field>
<field name="url">/theme_anelusia/static/src/img/snippets/s_banner.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_anelusia/static/src/img/snippets/s_banner_2.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_anelusia/static/src/img/snippets/s_banner_3.jpg</field>
</record>
<record id="s_text_cover_default_image" model="theme.ir.attachment">
<field name="key">website.s_text_cover_default_image</field>
<field name="name">website.s_text_cover_default_image</field>
<field name="url">website.s_banner_default_image</field>
</record>
<record id="s_popup_default_image" model="theme.ir.attachment">
<field name="key">website.s_popup_default_image</field>
<field name="name">website.s_popup_default_image</field>
@@ -1,29 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_banner" inherit_id="website.s_banner">
<template id="s_text_cover" inherit_id="website.s_text_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt0 pb0 o_cc o_cc4" remove="pt96 pb96" separator=" "/>
<attribute name="class" add="o_cc o_cc4" separator=" "/>
</xpath>
<!-- Container -->
<xpath expr="//div[hasclass('container')]" position="attributes">
<attribute name="class" add="container-fluid" remove="container" separator=" "/>
</xpath>
<!-- Jumbotron -->
<xpath expr="//div[hasclass('col-lg-6')]" position="attributes">
<attribute name="class" add="col-lg-4 o_cc4 pt224 pb224" remove="col-lg-6 o_cc1 pt32 pb32" separator=" "/>
<xpath expr="//div[hasclass('row')]/div" position="attributes">
<attribute name="style">text-align: right;</attribute>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
The next<br/> summer<br/> collection
</xpath>
<!-- Paragraph -->
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
Color trends are already waiting to spring <br/>into action for the next summer.
<br/>
<br/>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="attributes">