[IMP] theme_bistro: revamp the theme

task-4178021
Part of task-4177975

closes odoo/design-themes#919

Related: odoo/odoo#180736
Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
Brieuc-brd
2024-09-19 10:58:09 +02:00
committed by qsm-odoo
parent f0e216f031
commit 97683ee283
21 changed files with 266 additions and 201 deletions
+14 -20
View File
@@ -4,39 +4,34 @@ import * as wTourUtils from '@website/js/tours/tour_utils';
const snippets = [
{
id: 's_cover',
name: 'Cover',
groupName: "Intro",
},
{
id: 's_features',
name: 'Features',
groupName: "Content",
},
{
id: 's_picture',
name: 'Title - Image',
id: 's_image_title',
name: 'Image Title',
groupName: "Images",
},
{
id: 's_product_catalog',
name: 'Pricelist',
groupName: "Content",
id: 's_key_images',
name: 'Key Images',
groupName: "Columns",
},
{
id: 's_text_block',
name: 'Text',
groupName: "Text",
id: 's_pricelist_cafe',
name: 'Pricelist cafe',
groupName: "Content",
},
{
id: 's_quotes_carousel',
name: 'Quotes',
groupName: "People",
},
{
id: 's_quadrant',
name: 'Quadrant',
groupName: "Images",
},
];
wTourUtils.registerThemeHomepageTour("bistro_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"bistro-5"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"default-22"'),
...wTourUtils.dragNDrop(snippets[0]),
...wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
wTourUtils.goBackToBlocks(),
@@ -48,5 +43,4 @@ wTourUtils.registerThemeHomepageTour("bistro_tour", () => [
wTourUtils.goBackToBlocks(),
...wTourUtils.dragNDrop(snippets[3]),
...wTourUtils.dragNDrop(snippets[4]),
...wTourUtils.dragNDrop(snippets[5]),
]);