mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[IMP] theme_zap: theme improvement
Revamp of `theme_zap` task-4178094 closes odoo/design-themes#908 Signed-off-by: Alice Gaudon (agau) <agau@odoo.com>
This commit is contained in:
committed by
Alice Gaudon
parent
8fda02fca5
commit
0dd9e17b8f
@@ -4,39 +4,44 @@ import * as wTourUtils from '@website/js/tours/tour_utils';
|
||||
|
||||
const snippets = [
|
||||
{
|
||||
id: 's_banner',
|
||||
name: 'Banner',
|
||||
id: 's_discovery',
|
||||
name: 'Discovery',
|
||||
groupName: "Intro",
|
||||
},
|
||||
{
|
||||
id: 's_three_columns',
|
||||
name: 'Columns',
|
||||
id: 's_key_images',
|
||||
name: 'Key Images',
|
||||
groupName: "Columns",
|
||||
},
|
||||
{
|
||||
id: 's_color_blocks_2',
|
||||
name: 'Big Boxes',
|
||||
id: 's_striped',
|
||||
name: 'Striped',
|
||||
groupName: "Content",
|
||||
},
|
||||
{
|
||||
id: 's_features',
|
||||
name: 'Features',
|
||||
id: 's_showcase',
|
||||
name: 'Showcase',
|
||||
groupName: "Content",
|
||||
},
|
||||
{
|
||||
id: 's_masonry_block',
|
||||
name: 'Masonry',
|
||||
id: 's_image_title',
|
||||
name: 'Image Title',
|
||||
groupName: "Images",
|
||||
},
|
||||
{
|
||||
id: 's_references',
|
||||
name: 'References',
|
||||
groupName: "People",
|
||||
id: 's_numbers_charts',
|
||||
name: 'Numbers Charts',
|
||||
groupName: "Content",
|
||||
},
|
||||
{
|
||||
id: 's_cta_card',
|
||||
name: 'CTA Card',
|
||||
groupName: "Content",
|
||||
},
|
||||
];
|
||||
|
||||
wTourUtils.registerThemeHomepageTour("zap_tour", () => [
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"zap-1"'),
|
||||
wTourUtils.assertCssVariable('--color-palettes-name', '"base-2"'),
|
||||
...wTourUtils.dragNDrop(snippets[0]),
|
||||
...wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
|
||||
wTourUtils.goBackToBlocks(),
|
||||
@@ -48,4 +53,5 @@ wTourUtils.registerThemeHomepageTour("zap_tour", () => [
|
||||
...wTourUtils.clickOnSnippet(snippets[5], 'top'),
|
||||
wTourUtils.changeBackgroundColor(),
|
||||
wTourUtils.selectColorPalette(),
|
||||
...wTourUtils.dragNDrop(snippets[6]),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user