[IMP] theme_kea: update the theme

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

task-2591476

X-original-commit: 88b81d41da
Part-of: odoo/design-themes#498
This commit is contained in:
xlu-odoo
2021-07-13 08:39:35 +00:00
parent 5f2b968199
commit 004e38398a
58 changed files with 520 additions and 250 deletions
+11 -16
View File
@@ -1,16 +1,16 @@
odoo.define("theme_kea.tour.kea", function (require) {
"use strict";
/** @odoo-module */
const core = require("web.core");
const _t = core._t;
const wTourUtils = require("website.tour_utils");
var tour = require("web_tour.tour");
import wTourUtils from 'website.tour_utils';
const snippets = [
{
id: 's_cover',
name: 'Cover',
},
{
id: 's_text_image',
name: 'Text - Image',
},
{
id: 's_picture',
name: 'Picture',
@@ -20,17 +20,13 @@ const snippets = [
name: 'Image - Text',
},
{
id: 's_three_columns',
name: 'Columns',
id: 's_color_blocks_2',
name: 'Big Boxes',
},
{
id: 's_media_list',
name: 'Media List',
},
{
id: 's_references',
name: 'References',
},
];
wTourUtils.registerThemeHomepageTour("kea_tour", [
@@ -40,10 +36,9 @@ wTourUtils.registerThemeHomepageTour("kea_tour", [
wTourUtils.dragNDrop(snippets[1]),
wTourUtils.dragNDrop(snippets[2]),
wTourUtils.dragNDrop(snippets[3]),
wTourUtils.clickOnSnippet(snippets[3]),
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[4]),
wTourUtils.dragNDrop(snippets[5]),
wTourUtils.clickOnSnippet(snippets[5], 'top'),
wTourUtils.changeBackgroundColor(),
wTourUtils.selectColorPalette(),
]);
});