Files
design-themes/theme_paptic/static/src/js/tour.js
T
Brieuc-brd a416e49105 [IMP] theme_paptic: update the theme
This commit updates the theme to improve the design with shapes, new
pictures and new custom snippets.

task-2602618

closes odoo/design-themes#467

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2021-09-16 14:59:43 +00:00

43 lines
928 B
JavaScript

/** @odoo-module */
import wTourUtils from 'website.tour_utils';
const snippets = [
{
id: 's_cover',
name: 'Cover',
},
{
id: 's_image_text',
name: 'Image - Text',
},
{
id: 's_references',
name: 'References',
},
{
id: 's_three_columns',
name: 'Columns',
},
{
id: 's_comparisons',
name: 'Comparisons',
},
{
id: 's_call_to_action',
name: 'Call to Action',
},
];
wTourUtils.registerThemeHomepageTour("paptic_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'),
]);