Compare commits

...

1 Commits

Author SHA1 Message Date
celine de lannoy
5b006225e7 [IMP] tutorials/website_theme: update from 16 to 17 2025-05-15 18:04:55 +02:00
3 changed files with 30 additions and 30 deletions

View File

@@ -34,33 +34,31 @@ as content in the page.
:caption: ``/website_airproof/data/pages/home.xml``
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Deactivate default homepage -->
<record id="website.homepage" model="ir.ui.view">
<field name="active" eval="False"/>
</record>
<!-- Home -->
<record id="page_home" model="website.page">
<field name="name">Home</field>
<field name="is_published" eval="True"/>
<field name="key">website_airproof.page_home</field>
<field name="url">/</field>
<field name="type">qweb</field>
<field name="arch" type="xml">
<t t-name="website_airproof.page_home">
<t t-call="website.layout">
<!-- Title -->
<t t-set="additional_title">One step beyond the horizon | Airproof</t>
<!-- Content -->
<div id="wrap" class="oe_structure">
<p>Hello</p>
</div>
</t>
<odoo noupdate="1">
<!-- Deactivate default homepage -->
<record id="website.homepage" model="ir.ui.view">
<field name="active" eval="False"/>
</record>
<!-- Home -->
<record id="page_home" model="website.page">
<field name="name">Home</field>
<field name="is_published" eval="True"/>
<field name="key">website_airproof.page_home</field>
<field name="url">/</field>
<field name="type">qweb</field>
<field name="arch" type="xml">
<t t-name="website_airproof.page_home">
<t t-call="website.layout">
<!-- Title -->
<t t-set="additional_title">One step beyond the horizon | Airproof</t>
<!-- Content -->
<div id="wrap" class="oe_structure">
<p>Hello</p>
</div>
</t>
</field>
</record>
</data>
</t>
</field>
</record>
</odoo>
.. _tutorials/website_theme/build_website/media:

View File

@@ -134,6 +134,8 @@ You can find the `logo
- declare your :file:`website_templates.xml` file along with all the new ones in your
:file:`manifest`.
- disable the options you dont want in your header via the `presets
<{GITHUB_TUTO_PATH}/website_airproof/data/presets.xml>`_.
- make the use of `primaries
<{GITHUB_TUTO_PATH}/website_airproof/static/src/scss/primary_variables.scss>`_ like
`header-template`, `navbar-font`, `header-font-size`...

View File

@@ -29,8 +29,8 @@ that can be animated and customized with different colors.
.. tip::
| **Be careful,** there is a trick!
| In your shape SVG file, you have to use the colors from the default Odoo palette.
| Here, I want it to match my primary color 3 (`#CEF8A1`). Therefore, in the SVG file, you must
use color 3 from Odoo's default palette (`#F6F6F6`).
| Here, I want it to match my primary color 1 (`#CEF8A1`). Therefore, in the SVG file, you must
use color 3 from Odoos default palette (`#3AADAA`).
.. spoiler:: Solutions
@@ -64,9 +64,9 @@ that can be animated and customized with different colors.
:caption: ``/website_airproof/data/pages/home.xml``
<!-- Text-image block & Background shape -->
<section class="s_text_image o_cc o_cc5 o_colored_level pt120 pb96"
<section class="s_text_image o_cc o_cc3 o_colored_level pt120 pb96"
data-snippet="s_image_text" data-name="Image - Text" style="background-color: rgb(41, 128,
187);" data-oe-shape-data="{'shape': 'illustration/airproof/waves', 'colors': {'c3': '#BBE1FA'},
187);" data-oe-shape-data="{'shape': 'illustration/airproof/waves', 'colors': {'c1': '#BBE1FA'},
'flip': ['x']}">
<div class="o_we_shape o_illustration_airproof_waves o_we_flip_x" style="background-image:
url('/web_editor/shape/illustration%2Fairproof%2Fwaves.svg?c2=%23BBE1FA');