[IMP] theme_enark: revamp the theme

task-4178071
Part of task-4177978

closes odoo/design-themes#932

Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
This commit is contained in:
Brieuc-brd
2024-09-23 11:53:04 +02:00
parent c31b3c7c83
commit ff95793399
15 changed files with 396 additions and 174 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 148 KiB

After

Width:  |  Height:  |  Size: 96 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 94 KiB

+20 -14
View File
@@ -4,24 +4,24 @@ import * as wTourUtils from "@website/js/tours/tour_utils";
const snippets = [
{
id: 's_banner',
name: 'Banner',
groupName: "Intro",
id: 's_freegrid',
name: 'Free grid',
groupName: "Columns",
},
{
id: 's_picture',
name: 'Title - Image',
groupName: "Images",
id: 's_features_wall',
name: 'Features Wall',
groupName: "Columns",
},
{
id: 's_numbers',
name: 'Numbers',
id: 's_numbers_list',
name: 'Numbers list',
groupName: "Content",
},
{
id: 's_text_image',
name: 'Text - Image',
groupName: "Content",
id: 's_title',
name: 'Title',
groupName: "Text",
},
{
id: 's_images_wall',
@@ -29,14 +29,19 @@ const snippets = [
groupName: "Images",
},
{
id: 's_call_to_action',
name: 'Call to Action',
id: 's_references',
name: 'References',
groupName: "People",
},
{
id: 's_cta_box',
name: 'Box Call to Action',
groupName: "Content",
},
];
wTourUtils.registerThemeHomepageTour("enark_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"enark-1"'),
wTourUtils.assertCssVariable('--color-palettes-name', '"default-light-12"'),
...wTourUtils.dragNDrop(snippets[0]),
...wTourUtils.clickOnText(snippets[0], 'h1'),
wTourUtils.goBackToBlocks(),
@@ -45,4 +50,5 @@ wTourUtils.registerThemeHomepageTour("enark_tour", () => [
...wTourUtils.dragNDrop(snippets[3]),
...wTourUtils.dragNDrop(snippets[4]),
...wTourUtils.dragNDrop(snippets[5]),
...wTourUtils.dragNDrop(snippets[6]),
]);
@@ -127,6 +127,14 @@ $o-theme-font-configs: (
'family': ('Vollkorn', serif),
'url': 'Vollkorn:300,300i,400,400i,700,700i',
),
'Inter': (
'family': ('Inter', sans-serif),
'url': 'Inter:300,300i,400,400i,700,700i',
),
'Oxygen': (
'family': ('Oxygen', sans-serif),
'url': 'Oxygen:300,400,700',
),
);
//------------------------------------------------------------------------------
@@ -135,20 +143,19 @@ $o-theme-font-configs: (
$o-website-values-palettes: (
(
'color-palettes-name': 'enark-1',
'color-palettes-name': 'default-light-12',
'header-font-size': 1rem,
'font': 'Open Sans',
'headings-font': 'Bitter',
'navbar-font': 'Bitter',
'buttons-font': 'Bitter',
'font': 'Inter',
'headings-font': 'Oxygen',
'footer-template': 'descriptive',
'header-links-style': 'outline',
'btn-primary-outline': true,
'header-links-style': 'flat',
'btn-primary-flat': true,
'btn-secondary-flat': true,
'btn-border-radius': 0,
'input-border-radius': 0,
),
);
$o-selected-color-palettes-names: append($o-selected-color-palettes-names, 'enark-1');
$o-color-palettes-compatibility-indexes: (
1: 'enark-1',
2: 'enark-2',