[IMP] theme_avantgarde: theme improvement

Revamp of `theme_avantgarde`

task-4178015

closes odoo/design-themes#912

Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
Antoine (anso)
2024-09-17 11:27:14 +02:00
parent d8e52e96b5
commit 2d06f47f79
28 changed files with 442 additions and 317 deletions
+21 -15
View File
@@ -3,34 +3,39 @@ import * as wTourUtils from '@website/js/tours/tour_utils';
const snippets = [
{
id: 's_cover',
name: 'Cover',
id: 's_sidegrid',
name: 'Sidegrid',
groupName: "Intro",
},
{
id: 's_picture',
name: 'Title - Image',
groupName: "Images",
},
{
id: 's_three_columns',
name: 'Columns',
id: 's_features_wall',
name: 'Features Wall',
groupName: "Columns",
},
{
id: 's_text_image',
name: 'Text - Image',
id: 's_masonry_block',
name: 'Masonry',
groupName: "Images",
},
{
id: 's_carousel',
name: 'Carousel',
groupName: "Intro",
},
{
id: 's_timeline',
name: 'Timeline',
groupName: "Content",
},
{
id: 's_call_to_action',
name: 'Call to Action',
groupName: "Content",
id: 's_quadrant',
name: 'Quadrant',
groupName: "Images",
},
];
wTourUtils.registerThemeHomepageTour("avantgarde_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"avantgarde-3"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"default-15"'),
...wTourUtils.dragNDrop(snippets[0], 'top'),
...wTourUtils.clickOnText(snippets[0], 'h1', 'left'),
wTourUtils.goBackToBlocks(),
@@ -41,4 +46,5 @@ wTourUtils.registerThemeHomepageTour("avantgarde_tour", () => [
wTourUtils.goBackToBlocks(),
...wTourUtils.dragNDrop(snippets[3], 'top'),
...wTourUtils.dragNDrop(snippets[4], 'top'),
...wTourUtils.dragNDrop(snippets[5], 'top'),
]);