[IMP] theme_odoo_experts: revamp the theme

task-4178086
part of task-4177975

X-original-commit: 238f347935
Part-of: odoo/design-themes#971
Related: odoo/odoo#182039
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
Chrysanthe (chgo)
2024-09-14 22:57:45 +02:00
committed by qsm-odoo
parent 7f7540ab13
commit 54fc022773
20 changed files with 787 additions and 387 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 125 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 87 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 89 KiB

+13 -13
View File
@@ -5,9 +5,9 @@ import { _t } from "@web/core/l10n/translation";
const snippets = [
{
id: 's_picture',
name: 'Title - Image',
groupName: "Images",
id: 's_mockup_image',
name: 'Mockup Image',
groupName: "content",
},
{
id: 's_references',
@@ -25,24 +25,24 @@ const snippets = [
groupName: "Content",
},
{
id: 's_title',
name: 'Title',
groupName: "Text",
},
{
id: 's_comparisons',
name: 'Comparisons',
id: 's_showcase',
name: 'Showcase',
groupName: "Content",
},
{
id: 's_call_to_action',
name: 'Call to Action',
id: 's_faq_collapse',
name: 'FAQ Block',
groupName: "Text",
},
{
id: 's_cta_box',
name: 'Box Call to Action',
groupName: "Content",
},
];
wTourUtils.registerThemeHomepageTour("odoo_experts_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"odoo-experts-1"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"default-11"'),
...wTourUtils.insertSnippet(snippets[0]),
...wTourUtils.insertSnippet(snippets[1]),
...wTourUtils.insertSnippet(snippets[2]),
@@ -51,17 +51,17 @@ $o-theme-font-configs: (
'family': ('Anton', sans-serif),
'url': 'Anton:300,300i,400,400i,700,700i',
),
'Lato': (
'family': ('Lato', sans-serif),
'url': 'Lato:300,300i,400,400i,700,700i',
'Inter': (
'family': ('Inter', sans-serif),
'url': 'Inter:300,300i,400,400i,700,700i',
),
'Oswald': (
'family': ('Oswald', sans-serif),
'url': 'Oswald:300,300i,400,400i,700,700i',
),
'Work Sans': (
'family': ('Work Sans', sans-serif),
'url': 'Work+Sans:300,300i,400,400i,700,700i',
'Manrope': (
'family': ('Manrope', sans-serif),
'url': 'Manrope:300,300i,400,400i,700,700i',
),
);
@@ -71,30 +71,29 @@ $o-theme-font-configs: (
$o-website-values-palettes: (
(
'color-palettes-name': 'odoo-experts-1',
'color-palettes-name': 'default-11',
'logo-height': (52 / 16) * 1rem,
'fixed-logo-height': (52 / 16) * 1rem,
'header-font-size': 1rem,
'btn-border-radius': 10rem,
'btn-border-radius-lg': 10rem,
'btn-border-radius-sm': 10rem,
'btn-border-radius': .5rem,
'btn-border-radius-lg': .5rem,
'btn-border-radius-sm': .5rem,
'btn-padding-y': .45rem,
'btn-padding-x': 1.35rem,
'btn-padding-y-sm': .3rem,
'btn-padding-x-sm': .9rem,
'btn-padding-y-lg': .6rem,
'btn-padding-x-lg': 1.8rem,
'font': 'Lato',
'headings-font': 'Work Sans',
'navbar-font': 'Work Sans',
'header-template': 'sales_three',
'font': 'Inter',
'headings-font': 'Manrope',
'navbar-font': 'Inter',
'header-template': 'default',
'footer-template': 'contact',
'link-underline': 'never',
),
);
$o-palette-priority-prefix: 'odoo-experts';
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'odoo-experts-1');
$o-color-palettes-compatibility-indexes: (
1: 'odoo-experts-1',