Skip to content

Commit 9b407cd

Browse files
committed
[IMP] website: introduce s_unveil snippet
This commit adds the new `s_unveil` snippet. task-4104471 closes odoo#176167 Part-of: task-4077427 Related: odoo/design-themes#860 Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
1 parent 4619b18 commit 9b407cd

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

addons/website/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
'views/snippets/s_image.xml',
104104
'views/snippets/s_video.xml',
105105
'views/snippets/s_cta_badge.xml',
106+
'views/snippets/s_unveil.xml',
106107
'views/new_page_template_templates.xml',
107108
'views/website_views.xml',
108109
'views/website_pages_views.xml',
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<odoo>
3+
4+
<template id="s_unveil" name="Unveil">
5+
<section class="s_unveil pt64 pb64">
6+
<div class="container">
7+
<div class="row o_grid_mode" data-row-count="13">
8+
<div class="o_grid_item g-height-3 g-col-lg-12 col-lg-12" style="grid-area: 1 / 1 / 4 / 13; z-index: 1;">
9+
<h2 style="text-align: center;">Unveiling our newest products</h2>
10+
<p class="lead" style="text-align: center;">Illustrate your services or your product’s main features.</p>
11+
</div>
12+
<div class="o_grid_item o_grid_item_image g-col-lg-4 g-height-5 col-lg-4 d-lg-block d-none o_snippet_mobile_invisible" style="z-index: 2; grid-area: 6 / 1 / 11 / 5;">
13+
<img class="img img-fluid mx-auto rounded" src="/web/image/website.s_carousel_default_image_3" alt=""/>
14+
</div>
15+
<div class="o_grid_item o_grid_item_image g-col-lg-4 g-height-5 col-lg-4 d-lg-block d-none o_snippet_mobile_invisible" style="z-index: 3; grid-area: 4 / 3 / 9 / 7;">
16+
<img class="img img-fluid mx-auto rounded" src="/web/image/website.s_masonry_block_default_image_1" alt=""/>
17+
</div>
18+
<div class="o_grid_item o_grid_item_image g-col-lg-4 g-height-6 col-lg-4" style="z-index: 4; grid-area: 7 / 4 / 13 / 8;">
19+
<img class="img img-fluid mx-auto rounded" src="/web/image/website.s_picture_default_image" alt=""/>
20+
</div>
21+
<div class="o_grid_item o_grid_item_image g-col-lg-4 g-height-7 col-lg-4 d-lg-block d-none o_snippet_mobile_invisible" style="z-index: 5; grid-area: 5 / 8 / 12 / 12;">
22+
<img class="img img-fluid mx-auto rounded" src="/web/image/website.s_carousel_default_image_2" alt=""/>
23+
</div>
24+
<div class="o_grid_item o_grid_item_image g-col-lg-4 g-height-5 col-lg-4 d-lg-block d-none o_snippet_mobile_invisible" style="z-index: 6; grid-area: 9 / 9 / 14 / 13;">
25+
<img class="img img-fluid mx-auto rounded" src="/web/image/website.s_carousel_default_image_1" alt=""/>
26+
</div>
27+
</div>
28+
</div>
29+
</section>
30+
</template>
31+
32+
</odoo>

addons/website/views/snippets/snippets.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@
108108
</t>
109109
<t t-snippet="website.s_images_wall" string="Images Wall" group="images"/>
110110
<t t-snippet="website.s_parallax" string="Parallax" group="images"/>
111+
<t t-snippet="website.s_unveil" string="Unveil" group="images">
112+
<keywords>reveal, showcase, launch, presentation, announcement, content, picture, photo, illustration, media, visual, article, combination</keywords>
113+
</t>
111114

112115
<!-- People group -->
113116
<t t-snippet="website.s_company_team" string="Team" group="people">

0 commit comments

Comments
 (0)