[IMP] test_themes, *: carousels adaptations

*: theme_anelusia, theme_artists, theme_avantgarde, theme_cobalt,
theme_cobalt, theme_enark, theme_loftspace, theme_notes,
theme_odoo_experts, theme_bewise, theme_bistro, theme_buzzy,
theme_clean, theme_graphene, theme_nano, theme_treehouse, theme_yes,
theme_aviato, theme_beauty, theme_bookstore, theme_kea, theme_kiddo,
theme_monglia, theme_orchid, theme_paptic, theme_real_estate,
theme_vehicle, theme_zap

This commit adapts the customizations related to `s_carousel`,
s_image_gallery` and `s_quotes_carousel` since these snippets has been
redesigned in PR[1].

task-3654328
Part of task-3619705

[1]: https://github.com/odoo/odoo/pull/172727

closes odoo/design-themes#836

Related: odoo/odoo#172727
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Brieuc-brd
2024-07-17 20:52:53 +02:00
parent 67053ce2bf
commit f66833de41
89 changed files with 495 additions and 182 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

+5 -5
View File
@@ -142,11 +142,6 @@
<field name="name">website.s_quotes_carousel_demo_image_2</field>
<field name="url">/theme_clean/static/src/img/backgrounds/bg_snippet_11.jpg</field>
</record>
<record id="s_quotes_carousel_demo_image_3" model="theme.ir.attachment">
<field name="key">website.s_quotes_carousel_demo_image_3</field>
<field name="name">website.s_quotes_carousel_demo_image_3</field>
<field name="url">/theme_clean/static/src/img/backgrounds/s_quotes_carousel_demo_image_3.jpg</field>
</record>
<record id="s_newsletter_block" model="theme.ir.attachment">
<field name="key">website.library_image_17</field>
<field name="name">website.library_image_17</field>
@@ -192,5 +187,10 @@
<field name="name">website.s_accordion_image_default_image</field>
<field name="url">/theme_clean/static/src/img/content/image_content_19.jpg</field>
</record>
<record id="library_image_08" model="theme.ir.attachment">
<field name="key">website.library_image_08</field>
<field name="name">website.library_image_08</field>
<field name="url">/theme_clean/static/src/img/content/image_content_39.jpg</field>
</record>
</odoo>
+34 -47
View File
@@ -2,53 +2,40 @@
<odoo>
<template id="s_carousel" inherit_id="website.s_carousel">
<!-- Container -->
<xpath expr="//div[hasclass('carousel-inner')]" position="replace">
<div class="carousel-inner">
<!-- Slide 1 -->
<div class="carousel-item pt256 pb256 oe_img_bg active o_cc o_cc3" style="background-image: url('/web/image/website.s_carousel_default_image_1'); background-position: 50% 20%; position: relative;" data-name="Slide">
<!-- Filter -->
<div class="o_we_bg_filter bg-black-50"/>
<div class="container">
<div class="row">
<div class="carousel-content col-lg-5">
<!-- Paragraph -->
<h2>Personal adviser</h2>
<p class="lead"><br/>At any moment, you may contact our advisor through the in-app video meeting system.</p>
</div>
</div>
</div>
</div>
<!-- Slide 2 -->
<div class="carousel-item pt256 pb256 oe_img_bg o_cc o_cc3" style="background-image: url('/web/image/website.s_carousel_default_image_2'); position: relative;" data-name="Slide">
<!-- Filter -->
<div class="o_we_bg_filter bg-black-50"/>
<div class="container">
<div class="row">
<div class="carousel-content col-lg-12 text-center">
<!-- Paragraph -->
<h2>Simplify things</h2>
<p class="lead"><br/>We invest in strategic advice tailored to your<br/>
business problems and needs.</p>
</div>
</div>
</div>
</div>
<!-- Slide 3 -->
<div class="carousel-item pt256 pb256 oe_img_bg o_cc o_cc3" style="background-image: url('/web/image/website.s_carousel_default_image_3'); position: relative; background-position: 50% 65%;" data-name="Slide">
<!-- Filter -->
<div class="o_we_bg_filter bg-black-50"/>
<div class="container">
<div class="row">
<div class="carousel-content col-lg-5 offset-lg-7">
<!-- Paragraph -->
<h2>Efficient team processes</h2>
<p class="lead"><br/>We integrate digital tools and solutions for better insights, enabling data-driven planning.</p>
</div>
</div>
</div>
</div>
</div>
<!-- Titles -->
<xpath expr="//h2" position="replace" mode="inner">
Personal adviser
</xpath>
<xpath expr="(//h2)[2]" position="replace" mode="inner">
Simplify things
</xpath>
<xpath expr="//h3" position="replace" mode="inner">
Efficient team processes
</xpath>
<xpath expr="//h6" position="replace"/>
<!-- Paragraphs -->
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
At any moment, you may contact our advisor through the in-app video meeting system.
</xpath>
<xpath expr="(//p[hasclass('lead')])[2]" position="replace" mode="inner">
We invest in strategic advice tailored to your business problems and needs.
</xpath>
<xpath expr="(//p[hasclass('lead')])[3]" position="replace" mode="inner">
We integrate digital tools and solutions for better insights, enabling data-driven planning.
</xpath>
<!-- Filter -->
<xpath expr="(//div[hasclass('container')])[2]" position="before">
<div class="o_we_bg_filter bg-white-50"/>
</xpath>
<xpath expr="(//div[hasclass('container')])[3]" position="before">
<div class="o_we_bg_filter bg-black-50"/>
</xpath>
<!-- Background -->
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
<attribute name="style" add="background-position: 50% 10%;" separator=" "/>
</xpath>
</template>