[IMP] theme_*: adapt s_empowerment

task-4077615
Part of task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
Chrysanthe (chgo)
2024-08-13 11:37:04 +02:00
committed by qsm-odoo
parent 3243aef15b
commit 75fc5fbaf0
97 changed files with 898 additions and 0 deletions
+1
View File
@@ -61,6 +61,7 @@
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_shape_image.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/new_page_template.xml',
],
'images': [
Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

+5
View File
@@ -380,5 +380,10 @@ Check in theme_monglia's primary_variables.scss, theme.scss and theme_common's m
<field name="name">website.s_text_cover_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/s_text_cover.jpg</field>
</record>
<record id="s_empowerment_default_image" model="theme.ir.attachment">
<field name="key">website.s_empowerment_default_image</field>
<field name="name">website.s_empowerment_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/s_empowerment_default_image.jpg</field>
</record>
</odoo>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_empowerment" inherit_id="website.s_empowerment">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
<!-- Badge background -->
<xpath expr="//span[hasclass('s_cta_badge')]" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Badge content -->
<xpath expr="//span[hasclass('s_cta_badge')]" position="replace" mode="inner">
<i class="fa fa-fw fa-info-circle o_not-animable" role="img"/>&#160;&#160;Don't miss the final show ! &#160;&#160;&#160;&#160;
<a href="#">Grab your tickets&#160;&#160; <i class="fa fa-long-arrow-right" role="img"/></a>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
Lunar Echoes:<br/>Around the World tour
</xpath>
<!-- Paragraphs -->
<xpath expr="//p" position="replace" mode="inner">
<br/>The very last date of our World tour !<br/><br/>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')][1]" position="replace" mode="inner">
Tour agenda
</xpath>
<!-- Second Button -->
<xpath expr="//a[hasclass('btn')][2]" position="replace"/>
</template>
</odoo>