[IMP] theme_bewise: revamp the theme

task-4178020
part of task-4177975

X-original-commit: f06ffd5c26
Part-of: odoo/design-themes#971
Related: odoo/odoo#182039
Signed-off-by: Outagant Mehdi (mou) <mou@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
stefanorigano (SRI)
2024-09-18 19:54:16 +02:00
committed by qsm-odoo
parent 6f379e8b1c
commit 46b7e7bd35
8 changed files with 246 additions and 336 deletions
+21 -32
View File
@@ -1,58 +1,47 @@
/** @odoo-module */
import * as wTourUtils from '@website/js/tours/tour_utils';
import { _t } from "@web/core/l10n/translation";
const snippets = [
{
id: 's_cover',
name: 'Cover',
id: 's_striped_center_top',
name: 'Striped Center Top',
groupName: "Intro",
},
{
id: 's_call_to_action',
name: 'Call to Action',
groupName: "Content",
},
{
id: 's_text_image',
name: 'Text - Image',
groupName: "Content",
},
{
id: 's_numbers',
name: 'Numbers',
groupName: "Content",
},
{
id: 's_image_text',
name: 'Image - Text',
groupName: "Content",
},
{
id: 's_quotes_carousel',
name: 'Quotes',
groupName: "People",
id: 's_title',
name: 'Title',
groupName: "Text",
},
{
id: 's_color_blocks_2',
name: 'Big Boxes',
groupName: "Content",
},
{
id: 's_faq_collapse',
name: 'FAQ Block',
groupName: "Text",
},
{
id: 's_masonry_block',
name: 'Masonry',
groupName: "Images",
},
{
id: 's_company_team_shapes',
name: 'Team Shapes',
groupName: "People",
},
];
wTourUtils.registerThemeHomepageTour("bewise_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"bewise-1"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"default-19"'),
...wTourUtils.insertSnippet(snippets[0], 'top'),
...wTourUtils.clickOnText(snippets[0], 'h1', 'top'),
wTourUtils.goBackToBlocks(),
...wTourUtils.insertSnippet(snippets[1], 'top'),
...wTourUtils.insertSnippet(snippets[2], 'top'),
...wTourUtils.insertSnippet(snippets[3], 'top'),
...wTourUtils.clickOnSnippet(snippets[3], 'top'),
wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')),
wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')),
wTourUtils.goBackToBlocks(),
...wTourUtils.insertSnippet(snippets[4], 'top'),
...wTourUtils.insertSnippet(snippets[5], 'top'),
...wTourUtils.insertSnippet(snippets[6], 'top'),
]);