[IMP] theme_real_estate: theme improvement

Revamp of `theme_real_estate`

task-4178611

closes odoo/design-themes#945

X-original-commit: 1201131f28
Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
This commit is contained in:
Antoine (anso)
2024-09-11 15:54:34 +00:00
parent 28233684cd
commit 4f1fdf7c41
23 changed files with 464 additions and 446 deletions
+16 -21
View File
@@ -4,29 +4,19 @@ import * as wTourUtils from "@website/js/tours/tour_utils";
const snippets = [
{
id: 's_banner',
name: 'Banner',
id: 's_cover',
name: 'Cover',
groupName: "Intro",
},
{
id: 's_text_block',
name: 'Text',
groupName: "Text",
},
{
id: 's_text_image',
name: 'Text - Image',
groupName: "Content",
},
{
id: 's_image_text',
name: 'Image - Text',
groupName: "Content",
},
{
id: 's_title',
name: 'Title',
groupName: "Text",
id: 's_image_text',
name: 'Image - Text',
groupName: "Content",
},
{
id: 's_three_columns',
@@ -39,13 +29,13 @@ const snippets = [
groupName: "Text",
},
{
id: 's_masonry_block',
name: 'Masonry',
groupName: "Images",
id: 's_references',
name: 'References',
groupName: "People",
},
{
id: 's_numbers',
name: 'Numbers',
id: 's_numbers_showcase',
name: 'Numbers Showcase',
groupName: "Content",
},
{
@@ -53,10 +43,15 @@ const snippets = [
name: 'Quotes',
groupName: "People",
},
{
id: 's_call_to_action',
name: 'Call To Action',
groupName: "Content",
},
];
wTourUtils.registerThemeHomepageTour("real_estate_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"real-estate-4"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"default-28"'),
...wTourUtils.dragNDrop(snippets[0]),
...wTourUtils.clickOnText(snippets[0], 'h1'),
wTourUtils.goBackToBlocks(),