[IMP] theme_bookstore: improve the theme

Revamp of `theme_bookstore`.

task-4109584

closes odoo/design-themes#862

Related: odoo/odoo#176503
Signed-off-by: Soukéina Bojabza (sobo) <sobo@odoo.com>
This commit is contained in:
Antoine (anso)
2024-08-12 11:57:54 +02:00
committed by Soukéina Bojabza
parent 7e7ca555f3
commit 4492c5dfa6
15 changed files with 85 additions and 80 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 65 KiB

+10 -16
View File
@@ -5,8 +5,8 @@ import { _t } from "@web/core/l10n/translation";
const snippets = [
{
id: 's_cover',
name: 'Cover',
id: 's_banner',
name: 'Banner',
groupName: "Intro",
},
{
@@ -15,29 +15,24 @@ const snippets = [
groupName: "Images",
},
{
id: 's_image_text',
name: 'Image - Text',
id: 's_process_steps',
name: 'Steps',
groupName: "Content",
},
{
id: 's_picture',
name: 'Title - Image',
groupName: "Images",
},
{
id: 's_product_list',
name: 'Items',
id: 's_showcase',
name: 'Showcase',
groupName: "Content",
},
{
id: 's_call_to_action',
name: 'Call to Action',
groupName: "Content",
id: 's_title',
name: 'Title',
groupName: "Text",
},
];
wTourUtils.registerThemeHomepageTour("bookstore_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"generic-8"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"default-26"'),
...wTourUtils.dragNDrop(snippets[0]),
...wTourUtils.clickOnText(snippets[0], 'h1'),
wTourUtils.goBackToBlocks(),
@@ -48,5 +43,4 @@ wTourUtils.registerThemeHomepageTour("bookstore_tour", () => [
...wTourUtils.clickOnSnippet(snippets[4]),
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
wTourUtils.goBackToBlocks(),
...wTourUtils.dragNDrop(snippets[5]),
]);
@@ -51,6 +51,10 @@ $o-theme-font-configs: (
'family': ('DM Serif Display', serif),
'url': 'DM+Serif+Display:400,400i',
),
'Inter': (
'family': ('Inter', sans-serif),
'url': 'Inter:300,300i,,400,400i,700,700i',
),
);
//------------------------------------------------------------------------------
@@ -59,20 +63,22 @@ $o-theme-font-configs: (
$o-website-values-palettes: (
(
'color-palettes-name': 'generic-8',
'color-palettes-name': 'default-26',
'header-font-size': 1rem,
'btn-border-radius': 0px,
'btn-border-radius-sm': 0px,
'btn-border-radius-lg': 0px,
'font': 'Source Sans Pro',
'btn-border-radius': 8px,
'btn-border-radius-sm': 4px,
'btn-border-radius-lg': 12px,
'btn-padding-x': 16px,
'btn-padding-x-lg': 20px,
'btn-padding-y-lg': 12px,
'font': 'Inter',
'headings-font': 'DM Serif Display',
'header-template': 'sales_one',
'footer-template': 'links',
'header-template': 'search',
'link-underline': 'never',
),
);
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'generic-8');
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'default-26');
$o-color-palettes-compatibility-indexes: (
1: 'bookstore-1',