Files
design-themes/theme_treehouse/views/snippets/s_text_cover.xml
T
Chrysanthe (chgo) 3243aef15b [FIX] theme_*: fix s_text_cover design
This commit has two main goals:

1. Adapt the copy of the `s_text_cover` snippet to fit each theme

2. Introduce custom images for each themes, as the `s_text_cover` was
   always using the same image until now

This commit also fixes some conflicting classes due to a change of
`background-color` in the default snippet.

task-4119904
Part of task-3619705

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>
2024-09-21 16:34:53 +00:00

24 lines
1014 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_text_cover" inherit_id="website.s_text_cover">
<xpath expr="//div[hasclass('col-lg-6')][1]" position="attributes">
<attribute name="style" add="grid-area: 2 / 3 / 11 / 9;" remove="grid-area: 2 / 3 / 11 / 8;" separator="; "/>
<attribute name="class" add="g-col-lg-6" remove="g-col-lg-5" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace" mode="inner">
Promote<br/>Sustainability.
</xpath>
<!-- Paragraph -->
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
<br/>Highlight your environmental initiatives and projects with a user-friendly platform that simplifies all the steps, from setup to campaign management, making it easy to engage supporters and drive positive change.<br/>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
Start promoting
</xpath>
</template>
</odoo>