Files
design-themes/theme_bookstore/views/snippets/s_cta_box.xml
T
Antoine (anso) 4492c5dfa6 [IMP] theme_bookstore: improve the theme
Revamp of `theme_bookstore`.

task-4109584

closes odoo/design-themes#862

Related: odoo/odoo#176503
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
2024-08-15 05:56:34 +00:00

28 lines
999 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_cta_box" inherit_id="website.s_cta_box">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc4" separator=" "/>
</xpath>
<!-- Card -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc4" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h2" position="replace">
<h2 class="card-title h1-fs">Discover new reads,<br/> shop our bestsellers today!</h2>
</xpath>
<!-- Paragraphs -->
<xpath expr="//p" position="replace" mode="inner">
Uncover hidden gems, indulge in literary adventures now<br/><br/>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="replace">
<a t-att-href="cta_btn_href" class="btn btn-lg btn-secondary">Start Now<i class="fa fa-angle-right ms-2" role="img"/></a>
</xpath>
</template>
</odoo>