Skip to content

Commit

Permalink
[IMP] theme_*: adapt images in s_striped_center_top snippet
Browse files Browse the repository at this point in the history
*: avantgarde, loftspace, real_estate, zap

This commit updates the images in the `s_striped_center_top` snippet for
specific themes. The previous images were not visually good due to their
height. The new, more landscape-oriented images provide a better visual
fit, improving the overall design and aesthetics across the themes.

task-4179589
Part of task-4077427

closes #904

Related: odoo/odoo#179888
Signed-off-by: Quentin Smetz (qsm) <[email protected]>
  • Loading branch information
xlu-odoo authored and qsm-odoo committed Oct 29, 2024
1 parent 3fdecf4 commit f63862f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions theme_avantgarde/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,10 @@
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
Discover More
</xpath>
<!-- Image -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web/image/website.s_image_title_default_image</attribute>
</xpath>
<!-- Figcaption -->
<xpath expr="//figcaption" position="replace" mode="inner">
Where creativity knows no bounds
Expand Down
4 changes: 4 additions & 0 deletions theme_loftspace/views/snippets/s_striped_center_top.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
Furnish Your Home
</xpath>
<!-- Image -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web/image/website.s_quotes_carousel_demo_image_1</attribute>
</xpath>
<!-- Figcaption -->
<xpath expr="//figcaption" position="replace" mode="inner">
Elegance in every piece
Expand Down
1 change: 1 addition & 0 deletions theme_real_estate/views/snippets/s_striped_center_top.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<!-- Image -->
<xpath expr="//img" position="attributes">
<attribute name="class" remove="rounded" separator=" "/>
<attribute name="src">/web/image/website.s_accordion_image_default_image</attribute>
</xpath>
<!-- Figcaption -->
<xpath expr="//figcaption" position="replace" mode="inner">
Expand Down
2 changes: 1 addition & 1 deletion theme_zap/views/snippets/s_striped_center_top.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</xpath>
<!-- Image -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web/image/website.s_three_columns_default_image_2</attribute>
<attribute name="src">/web/image/website.s_masonry_block_default_image_2</attribute>
</xpath>
</template>

Expand Down

0 comments on commit f63862f

Please sign in to comment.