Skip to content

Commit 1affba5

Browse files
committed
[IMP] website: introduce s_cta_box snippet
This commit introduces a new snippet named `s_cta_box`. task-4094396 Part of task-4077427 closes odoo#175703 Related: odoo/design-themes#863 Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
1 parent ba3d6e4 commit 1affba5

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

addons/website/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
'views/snippets/s_parallax.xml',
7171
'views/snippets/s_quotes_carousel.xml',
7272
'views/snippets/s_numbers.xml',
73+
'views/snippets/s_cta_box.xml',
7374
'views/snippets/s_masonry_block.xml',
7475
'views/snippets/s_media_list.xml',
7576
'views/snippets/s_showcase.xml',

addons/website/data/image_library.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,5 +709,11 @@
709709
<field name="type">url</field>
710710
<field name="url">/website/static/src/img/snippets_demo/s_popup.jpg</field>
711711
</record>
712+
<record id="website.s_cta_box_default_image" model="ir.attachment">
713+
<field name="public" eval="True"/>
714+
<field name="name">s_cta_box_default_image.jpg</field>
715+
<field name="type">url</field>
716+
<field name="url">/website/static/src/img/snippets_demo/s_cta_box_default_image.jpg</field>
717+
</record>
712718

713719
</odoo>
27 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_cta_box" name="Box Call to Action">
5+
<section class="s_cta_box pt80 pb80">
6+
<div class="container">
7+
<div class="s_card o_card_img_horizontal flex-lg-row-reverse card o_cc o_cc4" data-snippet="s_card" data-vcss="001" data-vxml="001" data-name="Card" style="--card-spacer-x: 64px; --card-spacer-y: 64px; border-width: 0px !important;">
8+
<figure class="o_card_img_wrapper ratio ratio-1x1 mb-0">
9+
<img class="o_card_img rounded-end" src="/web/image/website.s_cta_box_default_image"/>
10+
</figure>
11+
<div class="card-body">
12+
<h2 class="card-title">50,000+ companies run Odoo<br/>to grow their businesses.</h2>
13+
<p class="card-text">Join us and make your company a better place.<br/><br/></p>
14+
<a t-att-href="cta_btn_href" class="btn btn-lg btn-secondary">Contact Us</a>
15+
</div>
16+
</div>
17+
</div>
18+
</section>
19+
</template>
20+
21+
</odoo>

addons/website/views/snippets/snippets.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@
6363
<t t-snippet="website.s_call_to_action" string="Call to Action" group="content">
6464
<keywords>CTA</keywords>
6565
</t>
66+
<t t-snippet="website.s_cta_box" string="Box Call to Action" group="content">
67+
<keywords>CTA, button, btn, action, engagement, link, offer, appeal, call to action, prompt, interact, trigger</keywords>
68+
</t>
6669
<t t-snippet="website.s_product_catalog" string="Pricelist" group="content">
6770
<keywords>menu, pricing</keywords>
6871
</t>

0 commit comments

Comments
 (0)