[IMP] theme_vehicle: update the theme

This commit updates the theme to improve the design with shapes, new
pictures and new custom snippets.

task-2567592

Part-of: odoo/design-themes#29
This commit is contained in:
xlu-odoo
2021-07-06 09:44:46 +00:00
committed by qsm-odoo
parent 16b316ed4e
commit c4f1a7265a
38 changed files with 380 additions and 181 deletions
+11 -18
View File
@@ -16,42 +16,35 @@ const snippets = [
id: 's_text_image',
name: 'Text - Image',
},
{
id: 's_image_text',
name: 'Image - Text',
},
{
id: 's_picture',
name: 'Picture',
},
{
id: 's_masonry_block',
name: 'Masonry',
},
{
id: 's_text_image:last-of-type',
name: 'Image - Text',
},
{
id: 's_table_of_content',
name: 'Table of Content',
},
{
id: 's_call_to_action',
name: 'Call to Action',
},
{
id: 's_references',
name: 'References',
},
];
wTourUtils.registerThemeHomepageTour("vehicle_tour", [
wTourUtils.dragNDrop(snippets[0], 'top'),
wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[1], 'top'),
wTourUtils.dragNDrop(snippets[2], 'top'),
wTourUtils.dragNDrop(snippets[3], 'top'),
wTourUtils.dragNDrop(snippets[4], 'top'),
wTourUtils.dragNDrop(snippets[5], 'top'),
wTourUtils.dragNDrop(snippets[6], 'top'),
wTourUtils.clickOnSnippet(snippets[6], 'top'),
wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')),
wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')),
wTourUtils.clickOnSnippet(snippets[5]),
wTourUtils.changeBackgroundColor(),
wTourUtils.selectColorPalette(),
]);
});