[IMP] theme_*: adapt theme with new s_image_hexagonal snippet

*: anelusia, artists, aviato, beauty, bewise, bistro, bookstore, buzzy,
kea, kiddo, monglia, notes, orchid, vehicle, yes

This commit adapts the design of new `s_image_hexagonal` snippet for
multiple themes

task-4094377

closes odoo/design-themes#857

Related: odoo/odoo#175813
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Antoine (anso)
2024-08-06 10:21:45 +02:00
parent 41f6799c52
commit 67bf2505a1
39 changed files with 270 additions and 0 deletions
+1
View File
@@ -33,6 +33,7 @@
'views/snippets/s_three_columns.xml',
'views/snippets/s_quotes_carousel.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_accordion_image.xml',
'views/snippets/s_pricelist_boxed.xml',
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Image -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_text_image_default_image</attribute>
</xpath>
</template>
</odoo>
+1
View File
@@ -36,6 +36,7 @@
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_accordion_image.xml',
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/new_page_template.xml',
Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

+5
View File
@@ -230,5 +230,10 @@ Check in theme_monglia's primary_variables.scss, theme.scss and theme_common's m
<field name="name">website.s_accordion_image_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/library_image_10.jpg</field>
</record>
<record id="s_image_hexagonal_default_image_1" model="theme.ir.attachment">
<field name="key">website.s_image_hexagonal_default_image_1</field>
<field name="name">website.s_image_hexagonal_default_image_1</field>
<field name="url">/theme_artists/static/src/img/snippets/s_image_hexagonal_1.jpg</field>
</record>
</odoo>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_text_image_default_image</attribute>
</xpath>
</template>
</odoo>
+1
View File
@@ -26,6 +26,7 @@
'views/snippets/s_accordion_image.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_carousel.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Travel to any corner of the world
</xpath>
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>
+1
View File
@@ -33,6 +33,7 @@
'views/snippets/s_accordion_image.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_carousel.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

+5
View File
@@ -250,5 +250,10 @@ Check in theme_loftspace's primary_variables.scss and theme.scss -->
<field name="name">website.s_accordion_image_default_image</field>
<field name="url">/theme_beauty/static/src/img/snippets/s_popup.jpg</field>
</record>
<record id="s_image_hexagonal_default_image_1" model="theme.ir.attachment">
<field name="key">website.s_image_hexagonal_default_image_1</field>
<field name="name">website.s_image_hexagonal_default_image_1</field>
<field name="url">/theme_beauty/static/src/img/snippets/s_image_hexagonal_1.jpg</field>
</record>
</odoo>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Working beauty from the inside out
</xpath>
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>
+12
View File
@@ -80,6 +80,18 @@
</xpath>
</template>
<!-- ======== IMAGE HEXAGONAL ======== -->
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Plan the brightest future with us
</xpath>
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
<!-- ======== NUMBERS ======== -->
<template id="s_numbers" inherit_id="website.s_numbers" name="Be Wise s_numbers">
<xpath expr="//section" position="attributes">
+1
View File
@@ -30,6 +30,7 @@
'views/snippets/s_accordion_image.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_carousel.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

+7
View File
@@ -364,4 +364,11 @@
<field name="url">/theme_bistro/static/src/img/backgrounds/s_pricelist_boxed_default_background.jpg</field>
</record>
<!-- Image Hexagonal -->
<record id="s_image_hexagonal_default_image_1" model="theme.ir.attachment">
<field name="key">website.s_image_hexagonal_default_image_1</field>
<field name="name">website.s_image_hexagonal_default_image_1</field>
<field name="url">/theme_bistro/static/src/img/content/s_image_hexagonal_1.jpg</field>
</record>
</odoo>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Savor the flavor: a culinary experience awaits
</xpath>
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>
+1
View File
@@ -36,6 +36,7 @@
'views/snippets/s_key_benefits.xml',
'views/snippets/s_carousel.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Discover the magic: a world of books awaits
</xpath>
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>
+1
View File
@@ -47,6 +47,7 @@
'views/snippets/s_key_benefits.xml',
'views/snippets/s_carousel.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>
+1
View File
@@ -31,6 +31,7 @@
'views/snippets/s_carousel.xml',
'views/snippets/s_quotes_carousel.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Images -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_media_list_default_image_1/web_editor/composition/composition_mixed_1.svg</attribute>
<attribute name="data-shape">web_editor/composition/composition_mixed_1</attribute>
</xpath>
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_carousel_default_image_1</attribute>
</xpath>
</template>
</odoo>
+1
View File
@@ -29,6 +29,7 @@
'views/snippets/s_key_benefits.xml',
'views/snippets/s_carousel.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
A little place of paradise
</xpath>
<!-- Columns -->
<xpath expr="//div[hasclass('o_grid_item_image')]" position="attributes">
<attribute name="class" remove="g-col-lg-4 col-lg-4" add="g-col-lg-3 col-lg-3" separator=" "/>
<attribute name="style">grid-area: 3 / 2 / 12 / 5; z-index: 1;</attribute>
</xpath>
<!-- Images -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.library_image_05/web_editor/composition/composition_mixed_1.svg</attribute>
<attribute name="data-shape">web_editor/composition/composition_mixed_1</attribute>
</xpath>
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+12
View File
@@ -148,6 +148,18 @@
</xpath>
</template>
<!-- ======== IMAGE HEXAGONAL ======== -->
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Section -->
<xpath expr="section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_text_cover_default_image</attribute>
</xpath>
</template>
<!-- ======== CAROUSEL ======== -->
<template id="s_carousel" inherit_id="website.s_carousel" name="Monglia s_carousel">
<xpath expr="//h2" position="replace" mode="inner">
+5
View File
@@ -265,6 +265,11 @@ Check in primary_variables.scss, theme.scss and theme_common's mixins.scss -->
<field name="name">website.s_accordion_image_default_image</field>
<field name="url">/theme_monglia/static/src/img/snippets/s_media_list_1.jpg</field>
</record>
<record id="s_image_hexagonal_default_image_1" model="theme.ir.attachment">
<field name="key">website.s_image_hexagonal_default_image_1</field>
<field name="name">website.s_image_hexagonal_default_image_1</field>
<field name="url">/theme_monglia/static/src/img/snippets/s_image_hexagonal_1.jpg</field>
</record>
<record id="library_image_02" model="theme.ir.attachment">
<field name="key">website.library_image_02</field>
+1
View File
@@ -35,6 +35,7 @@
'views/snippets/s_unveil.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

+5
View File
@@ -247,5 +247,10 @@
<field name="name">website.s_accordion_image_default_image</field>
<field name="url">/theme_notes/static/src/img/content/content_img_21.jpg</field>
</record>
<record id="s_image_hexagonal_default_image_1" model="theme.ir.attachment">
<field name="key">website.s_image_hexagonal_default_image_1</field>
<field name="name">website.s_image_hexagonal_default_image_1</field>
<field name="url">/theme_notes/static/src/img/content/s_image_hexagonal_1.jpg</field>
</record>
</odoo>
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Section -->
<xpath expr="section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Join the<br/>celebration
</xpath>
<!-- Images -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>
+1
View File
@@ -26,6 +26,7 @@
'views/snippets/s_unveil.xml',
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc4" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
A place of paradise for flower lovers
</xpath>
<!-- Images -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_masonry_block_default_image_1/web_editor/composition/composition_square_1.svg</attribute>
<attribute name="data-shape">web_editor/composition/composition_square_1</attribute>
</xpath>
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>
+8
View File
@@ -66,6 +66,14 @@
</xpath>
</template>
<!-- ======== IMAGE HEXAGONAL ======== -->
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Title -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
<!-- ======== NUMBERS ======== -->
<template id="s_numbers" inherit_id="website.s_numbers">
<!-- Section -->
+1
View File
@@ -32,6 +32,7 @@
'views/snippets/s_unveil.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_image_hexagonal.xml',
'views/new_page_template.xml',
],
'images': [
Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

+6
View File
@@ -290,5 +290,11 @@ Check in theme_kea's primary_variables.scss, theme.scss and theme_common's mixin
<field name="name">website.s_pricelist_boxed_default_background</field>
<field name="url">/theme_yes/static/src/img/snippets/s_pricelist_boxed_default_background.jpg</field>
</record>
<!-- // Image Hexagonal // -->
<record id="s_image_hexagonal_default_image_1" model="theme.ir.attachment">
<field name="key">website.s_image_hexagonal_default_image_1</field>
<field name="name">website.s_image_hexagonal_default_image_1</field>
<field name="url">/theme_yes/static/src/img/snippets/s_image_hexagonal_1.jpg</field>
</record>
</odoo>
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_image_hexagonal" inherit_id="website.s_image_hexagonal">
<!-- Title -->
<xpath expr="//h2" position="replace" mode="inner">
Enjoy the moment, we take care of everything
</xpath>
<!-- Image -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web/image/website.s_cover_default_image</attribute>
</xpath>
</template>
</odoo>