[IMP] theme_*: adapt s_cards_grid

task-4104964

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
mano-odoo
2024-09-11 18:09:24 +02:00
committed by qsm-odoo
parent 11b9705708
commit 8e2ad3496f
34 changed files with 823 additions and 0 deletions
+1
View File
@@ -31,6 +31,7 @@
'views/snippets/s_references_grid.xml',
'views/snippets/s_call_to_action.xml',
'views/snippets/s_comparisons.xml',
'views/snippets/s_cards_grid.xml',
'views/snippets/s_freegrid.xml',
'views/snippets/s_product_list.xml',
'views/snippets/s_product_catalog.xml',
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_cards_grid" inherit_id="website.s_cards_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
<!-- Main Title -->
<xpath expr="//h3" position="replace" mode="inner">
Redefining Fashion
</xpath>
<!-- Card 1 -->
<xpath expr="(//div[hasclass('card')])[1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
</xpath>
<xpath expr="(//h5)[1]" position="replace" mode="inner">
Timeless Elegance
</xpath>
<xpath expr="(//p)[1]" position="replace" mode="inner">
Our collection captures the essence of timeless elegance, blending classic designs with modern sophistication for every occasion.
</xpath>
<!-- Card 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc1" separator=" "/>
</xpath>
<xpath expr="(//h5)[2]" position="replace" mode="inner">
Sustainable Craftsmanship
</xpath>
<xpath expr="(//p)[2]" position="replace" mode="inner">
We are committed to sustainable practices, using eco-friendly materials and supporting ethical craftsmanship in every piece we create.
</xpath>
<!-- Card 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
</xpath>
<xpath expr="(//h5)[3]" position="replace" mode="inner">
Versatile Style
</xpath>
<xpath expr="(//p)[3]" position="replace" mode="inner">
Designed for the modern individual, our fashion seamlessly transitions from day to night, offering versatile pieces for any wardrobe.
</xpath>
<!-- Card 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc1" separator=" "/>
</xpath>
<xpath expr="(//h5)[4]" position="replace" mode="inner">
Innovative Design
</xpath>
<xpath expr="(//p)[4]" position="replace" mode="inner">
Pushing the boundaries of fashion, our innovative designs merge cutting-edge trends with unparalleled comfort and quality.
</xpath>
</template>
</odoo>