Files
design-themes/theme_yes/views/snippets/s_call_to_action.xml
T
Chrysanthe (chgo) 7f7540ab13 [FIX] theme_yes: fix s_call_to_action minor issues
This commit fixes three minors issues about the `s_call_to_action` snippet.

1) The `background-image` is missing the classes to set it to cover,
leading to a weird positioning of the image ;

2) The `background-image` was not the right one ;

3) The `s_call_to_action` snippet was missing from the theme screenshot.

task-4217986
follow-up of task-4178092

X-original-commit: 35ba43166a
Part-of: odoo/design-themes#971
Related: odoo/odoo#182039
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2024-09-30 16:38:13 +00:00

29 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_call_to_action" inherit_id="website.s_call_to_action">
<xpath expr="//section" position="attributes">
<attribute name="style" add="background-image: url('/web/image/website.s_parallax_default_image');" separator=";"/>
<attribute name="class" add="oe_img_bg o_bg_img_center" separator=" "/>
</xpath>
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_bg_filter bg-black-25"/>
</xpath>
<!-- Title -->
<xpath expr="//h3" position="replace">
<h2>Discover how we can help you<br/>making this day unforgettable.</h2>
</xpath>
<!-- Paragraph -->
<xpath expr="//p" position="replace">
<p><br/></p>
</xpath>
<!-- CTA -->
<xpath expr="//p" position="after">
<a t-att-href="cta_btn_href" class="btn btn-primary btn-lg"><t t-esc="cta_btn_text">Contact us</t></a>
</xpath>
<!-- Remove right-side button -->
<xpath expr="//div[hasclass('col-lg-3')]" position="replace"/>
</template>
</odoo>