[FIX] theme_*: fix s_text_cover design

This commit has two main goals:

1. Adapt the copy of the `s_text_cover` snippet to fit each theme

2. Introduce custom images for each themes, as the `s_text_cover` was
   always using the same image until now

This commit also fixes some conflicting classes due to a change of
`background-color` in the default snippet.

task-4119904
Part of task-3619705

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:
Chrysanthe (chgo)
2024-08-08 18:55:23 +02:00
committed by qsm-odoo
parent 05fdc8e75f
commit 3243aef15b
61 changed files with 457 additions and 28 deletions
+1
View File
@@ -60,6 +60,7 @@
'views/snippets/s_image_frame.xml',
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_shape_image.xml',
'views/snippets/s_text_cover.xml',
'views/new_page_template.xml',
],
'images': [
Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

+5
View File
@@ -375,5 +375,10 @@ Check in theme_monglia's primary_variables.scss, theme.scss and theme_common's m
<field name="name">website.s_images_constellation_default_image_2</field>
<field name="url">/theme_artists/static/src/img/snippets/s_images_constellation_default_image_2.jpg</field>
</record>
<record id="s_text_cover_default_image" model="theme.ir.attachment">
<field name="key">website.s_text_cover_default_image</field>
<field name="name">website.s_text_cover_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/s_text_cover.jpg</field>
</record>
</odoo>
+1 -7
View File
@@ -111,13 +111,7 @@
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
</template>
<template id="new_page_template_about_s_text_cover" inherit_id="website.new_page_template_about_s_text_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
</template>
</template>
<template id="new_page_template_about_full_s_image_text" inherit_id="website.new_page_template_about_full_s_image_text">
<xpath expr="//section" position="attributes">
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_text_cover" inherit_id="website.s_text_cover">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<xpath expr="//h1" position="replace" mode="inner">
Share Art.<br/>Effortlessly.
</xpath>
<!-- Paragraph -->
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
<br/>Showcase your artwork and updates online with a user-friendly platform that simplifies everything, making it easy for art lovers to discover and appreciate your creations.<br/>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
Learn more
</xpath>
</template>
</odoo>