mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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:
committed by
qsm-odoo
parent
05fdc8e75f
commit
3243aef15b
@@ -52,6 +52,7 @@
|
||||
'views/snippets/s_wavy_grid.xml',
|
||||
'views/snippets/s_shape_image.xml',
|
||||
'views/snippets/s_images_constellation.xml',
|
||||
'views/snippets/s_text_cover.xml',
|
||||
'views/new_page_template.xml',
|
||||
],
|
||||
'images': [
|
||||
|
||||
@@ -389,5 +389,10 @@
|
||||
<field name="name">website.s_images_constellation_default_image_2</field>
|
||||
<field name="url">/theme_kiddo/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_kiddo/static/src/img/snippets/s_banner.jpg</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="s_text_cover" inherit_id="website.s_text_cover">
|
||||
<!-- Title -->
|
||||
<xpath expr="//h1" position="replace" mode="inner">
|
||||
Discover<br/>our nursery
|
||||
</xpath>
|
||||
<!-- Paragraph -->
|
||||
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
|
||||
<br/>Discover our nursery’s welcoming environment and engaging programs with ease. Our platform helps you explore our activities, meet our staff, and see how we make early learning fun and enriching for your child.<br/>
|
||||
</xpath>
|
||||
<!-- Button -->
|
||||
<xpath expr="//a[hasclass('btn')]/t" position="replace" mode="inner">
|
||||
Learn more
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user