diff --git a/theme_vehicle/__manifest__.py b/theme_vehicle/__manifest__.py index fdcdc6d3d..a0a55de1a 100644 --- a/theme_vehicle/__manifest__.py +++ b/theme_vehicle/__manifest__.py @@ -14,13 +14,15 @@ ], 'images': [ 'static/description/vehicle_description.png', - 'static/description/vehicle_screenshot.jpeg', + 'static/description/vehicle_screenshot.png', ], 'images_preview_theme': { 'website.s_cover_default_image': '/theme_vehicle/static/src/img/snippets/s_cover.jpg', 'website.s_text_image_default_image': '/theme_vehicle/static/src/img/snippets/s_text_image.jpg', 'website.s_masonry_block_default_image_1': '/theme_vehicle/static/src/img/snippets/s_masonry_block.jpg', 'website.s_image_text_default_image': '/theme_vehicle/static/src/img/snippets/s_image_text.jpg', + 'website.s_parallax_default_image': '/theme_vehicle/static/src/img/snippets/s_parallax.jpg', + 'website.s_picture_default_image': '/theme_vehicle/static/src/img/snippets/s_picture.jpg', }, 'license': 'LGPL-3', 'live_test_url': 'https://theme-vehicle.odoo.com', diff --git a/theme_vehicle/data/ir_asset.xml b/theme_vehicle/data/ir_asset.xml index 2ddfa6fcb..98a0c07c1 100644 --- a/theme_vehicle/data/ir_asset.xml +++ b/theme_vehicle/data/ir_asset.xml @@ -17,5 +17,13 @@ + + theme_vehicle.bootstrap_overridden_scss + Bootstrap overridden SCSS + web._assets_frontend_helpers + prepend + theme_vehicle/static/src/scss/bootstrap_overridden.scss + + diff --git a/theme_vehicle/models/theme_vehicle.py b/theme_vehicle/models/theme_vehicle.py index b6f59d3bc..f204ec0f3 100644 --- a/theme_vehicle/models/theme_vehicle.py +++ b/theme_vehicle/models/theme_vehicle.py @@ -8,9 +8,5 @@ class ThemeVehicle(models.AbstractModel): # For compatibility # self.enable_asset('theme_common.compatibility_saas_10_1') - self.disable_view('website.template_header_default') - self.enable_view('website.template_header_hamburger') - self.enable_header_off_canvas() - self.disable_view('website.footer_custom') self.enable_view('website.template_footer_minimalist') diff --git a/theme_vehicle/static/description/icon.png b/theme_vehicle/static/description/icon.png new file mode 100644 index 000000000..e2118b114 Binary files /dev/null and b/theme_vehicle/static/description/icon.png differ diff --git a/theme_vehicle/static/description/vehicle_description.png b/theme_vehicle/static/description/vehicle_description.png index aaeb071e1..09f44ab54 100644 Binary files a/theme_vehicle/static/description/vehicle_description.png and b/theme_vehicle/static/description/vehicle_description.png differ diff --git a/theme_vehicle/static/description/vehicle_screenshot.jpeg b/theme_vehicle/static/description/vehicle_screenshot.jpeg deleted file mode 100644 index 58a079dd7..000000000 Binary files a/theme_vehicle/static/description/vehicle_screenshot.jpeg and /dev/null differ diff --git a/theme_vehicle/static/description/vehicle_screenshot.png b/theme_vehicle/static/description/vehicle_screenshot.png new file mode 100644 index 000000000..5c6e078b0 Binary files /dev/null and b/theme_vehicle/static/description/vehicle_screenshot.png differ diff --git a/theme_vehicle/static/src/img/snippets/s_image_text.jpg b/theme_vehicle/static/src/img/snippets/s_image_text.jpg index b060a85f8..585c5f744 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_image_text.jpg and b/theme_vehicle/static/src/img/snippets/s_image_text.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_images_wall_1.jpg b/theme_vehicle/static/src/img/snippets/s_images_wall_1.jpg new file mode 100644 index 000000000..4a5ebd286 Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_images_wall_1.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_images_wall_2.jpg b/theme_vehicle/static/src/img/snippets/s_images_wall_2.jpg new file mode 100644 index 000000000..c0e3db22d Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_images_wall_2.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_images_wall_3.jpg b/theme_vehicle/static/src/img/snippets/s_images_wall_3.jpg new file mode 100644 index 000000000..33337102c Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_images_wall_3.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_images_wall_4.jpg b/theme_vehicle/static/src/img/snippets/s_images_wall_4.jpg new file mode 100644 index 000000000..e35f0d28c Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_images_wall_4.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_images_wall_5.jpg b/theme_vehicle/static/src/img/snippets/s_images_wall_5.jpg new file mode 100644 index 000000000..2d8f08cf7 Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_images_wall_5.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_img_gallery_1.jpg b/theme_vehicle/static/src/img/snippets/s_img_gallery_1.jpg new file mode 100644 index 000000000..2bcd63741 Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_img_gallery_1.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_img_gallery_3.jpg b/theme_vehicle/static/src/img/snippets/s_img_gallery_3.jpg new file mode 100644 index 000000000..0e9e452ea Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_img_gallery_3.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_masonry_block.jpg b/theme_vehicle/static/src/img/snippets/s_masonry_block.jpg index e312e1f02..8c9406ec0 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_masonry_block.jpg and b/theme_vehicle/static/src/img/snippets/s_masonry_block.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_masonry_block_2.jpg b/theme_vehicle/static/src/img/snippets/s_masonry_block_2.jpg new file mode 100644 index 000000000..0eb1c0be0 Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_masonry_block_2.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_media_list_1.jpg b/theme_vehicle/static/src/img/snippets/s_media_list_1.jpg index 53ffeb80d..52f5ac578 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_media_list_1.jpg and b/theme_vehicle/static/src/img/snippets/s_media_list_1.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_media_list_2.jpg b/theme_vehicle/static/src/img/snippets/s_media_list_2.jpg index aaccf1280..543806028 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_media_list_2.jpg and b/theme_vehicle/static/src/img/snippets/s_media_list_2.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_media_list_3.jpg b/theme_vehicle/static/src/img/snippets/s_media_list_3.jpg index 3d69153ea..7233f7b61 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_media_list_3.jpg and b/theme_vehicle/static/src/img/snippets/s_media_list_3.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_picture.jpg b/theme_vehicle/static/src/img/snippets/s_picture.jpg index 69e0d5695..7d611a0ad 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_picture.jpg and b/theme_vehicle/static/src/img/snippets/s_picture.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_product_1.jpg b/theme_vehicle/static/src/img/snippets/s_product_1.jpg index 54bbfc504..9d262b175 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_product_1.jpg and b/theme_vehicle/static/src/img/snippets/s_product_1.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_product_2.jpg b/theme_vehicle/static/src/img/snippets/s_product_2.jpg index e43a08c03..489d8ede1 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_product_2.jpg and b/theme_vehicle/static/src/img/snippets/s_product_2.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_product_3.jpg b/theme_vehicle/static/src/img/snippets/s_product_3.jpg index f1b678265..f446e6477 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_product_3.jpg and b/theme_vehicle/static/src/img/snippets/s_product_3.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_product_4.jpg b/theme_vehicle/static/src/img/snippets/s_product_4.jpg index 703dafa24..0669a8a38 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_product_4.jpg and b/theme_vehicle/static/src/img/snippets/s_product_4.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_product_5.jpg b/theme_vehicle/static/src/img/snippets/s_product_5.jpg index 8bfc6d00e..715bfaf13 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_product_5.jpg and b/theme_vehicle/static/src/img/snippets/s_product_5.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_product_6.jpg b/theme_vehicle/static/src/img/snippets/s_product_6.jpg index 277097cd2..db4934714 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_product_6.jpg and b/theme_vehicle/static/src/img/snippets/s_product_6.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_quotes_carousel_1.jpg b/theme_vehicle/static/src/img/snippets/s_quotes_carousel_1.jpg index b4974810f..1670537f0 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_quotes_carousel_1.jpg and b/theme_vehicle/static/src/img/snippets/s_quotes_carousel_1.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_quotes_carousel_2.jpg b/theme_vehicle/static/src/img/snippets/s_quotes_carousel_2.jpg index 5070ac498..ad3553b47 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_quotes_carousel_2.jpg and b/theme_vehicle/static/src/img/snippets/s_quotes_carousel_2.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_text_image.jpg b/theme_vehicle/static/src/img/snippets/s_text_image.jpg index adb89f09f..535d2bb7d 100644 Binary files a/theme_vehicle/static/src/img/snippets/s_text_image.jpg and b/theme_vehicle/static/src/img/snippets/s_text_image.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_three_columns_1.jpg b/theme_vehicle/static/src/img/snippets/s_three_columns_1.jpg new file mode 100644 index 000000000..b3ea5a79f Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_three_columns_1.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_three_columns_2.jpg b/theme_vehicle/static/src/img/snippets/s_three_columns_2.jpg new file mode 100644 index 000000000..df8246fee Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_three_columns_2.jpg differ diff --git a/theme_vehicle/static/src/img/snippets/s_three_columns_3.jpg b/theme_vehicle/static/src/img/snippets/s_three_columns_3.jpg new file mode 100644 index 000000000..a33b7e7ca Binary files /dev/null and b/theme_vehicle/static/src/img/snippets/s_three_columns_3.jpg differ diff --git a/theme_vehicle/static/src/js/tour.js b/theme_vehicle/static/src/js/tour.js index 2d70ec5bc..0bce8c722 100644 --- a/theme_vehicle/static/src/js/tour.js +++ b/theme_vehicle/static/src/js/tour.js @@ -16,42 +16,35 @@ const snippets = [ id: 's_text_image', name: 'Text - Image', }, + { + id: 's_image_text', + name: 'Image - Text', + }, + { + id: 's_picture', + name: 'Picture', + }, { id: 's_masonry_block', name: 'Masonry', }, - { - id: 's_text_image:last-of-type', - name: 'Image - Text', - }, - { - id: 's_table_of_content', - name: 'Table of Content', - }, { id: 's_call_to_action', name: 'Call to Action', }, - { - id: 's_references', - name: 'References', - }, ]; wTourUtils.registerThemeHomepageTour("vehicle_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'), - wTourUtils.dragNDrop(snippets[6], 'top'), - wTourUtils.clickOnSnippet(snippets[6], 'top'), - wTourUtils.changeOption('BackgroundShape', 'we-toggler', _t('Background Shape')), - wTourUtils.selectNested('we-select-page', 'BackgroundShape', ':not(.o_we_pager_controls)', _t('Background Shape')), + wTourUtils.clickOnSnippet(snippets[5]), + wTourUtils.changeBackgroundColor(), + wTourUtils.selectColorPalette(), ]); }); diff --git a/theme_vehicle/static/src/scss/bootstrap_overridden.scss b/theme_vehicle/static/src/scss/bootstrap_overridden.scss new file mode 100644 index 000000000..f2860b4c2 --- /dev/null +++ b/theme_vehicle/static/src/scss/bootstrap_overridden.scss @@ -0,0 +1,6 @@ + +// Typography +// +// Font, line-height, and color for body text, headings, and more. + +$headings-font-weight: $o-theme-headings-font-weight !default; diff --git a/theme_vehicle/static/src/scss/primary_variables.scss b/theme_vehicle/static/src/scss/primary_variables.scss index 83a335e1c..0de62958a 100644 --- a/theme_vehicle/static/src/scss/primary_variables.scss +++ b/theme_vehicle/static/src/scss/primary_variables.scss @@ -1,4 +1,4 @@ -// Theme colors +// Theme colors - compatibility $o-theme-color-palettes: map-merge($o-theme-color-palettes, ( 'vehicle-1': ( @@ -45,46 +45,32 @@ $o-theme-color-palettes: map-merge($o-theme-color-palettes, ), ) ); - //------------------------------------------------------------------------------ // Fonts //------------------------------------------------------------------------------ -$o-theme-h1-font-size-multiplier: (48.83 / 16); -$o-theme-h2-font-size-multiplier: (39.06 / 16); -$o-theme-h3-font-size-multiplier: (31.25 / 16); -$o-theme-h4-font-size-multiplier: (25.00 / 16); -$o-theme-h5-font-size-multiplier: (20.00 / 16); -$o-theme-h6-font-size-multiplier: 1.1; + +$o-theme-h1-font-size-multiplier: (50 / 16); +$o-theme-h2-font-size-multiplier: (38 / 16); +$o-theme-h3-font-size-multiplier: (24 / 16); +$o-theme-h4-font-size-multiplier: (20 / 16); +$o-theme-h5-font-size-multiplier: (18 / 16); +$o-theme-h6-font-size-multiplier: (16 / 16); + +$o-theme-headings-font-weight: 600; $o-theme-font-configs: ( - 'Handlee': ( - 'family': ('Handlee', cursive), - 'url': 'Handlee:300,300i,400,400i,700,700i', + 'Fira Code': ( + 'family': ('Fira Code', mono), + 'url': 'Fira+Code:300,300i,400,400i,700,700i', ), - 'Gruppo': ( - 'family': ('Gruppo', cursive), - 'url': 'Gruppo:300,300i,400,400i,700,700i', - ), - 'Darker Grotesque': ( - 'family': ('Darker Grotesque', sans-serif), - 'url': 'Darker+Grotesque:300,300i,500,500i,700,700i', + 'Fira Sans': ( + 'family': ('Fira Sans', sans-serif), + 'url': 'Fira Sans:300,300i,400,400i,700,700i', ), 'Droid Sans': ( 'family': ('Droid Sans', sans-serif), ), - 'Bowlby One SC': ( - 'family': ('Bowlby One SC', cursive), - 'url': 'Bowlby+One+SC:300,300i,400,400i,700,700i', - ), - 'Lobster': ( - 'family': ('Lobster', cursive), - 'url': 'Lobster:300,300i,400,400i,700,700i', - ), - 'Nunito': ( - 'family': ('Nunito', sans-serif), - 'url': 'Nunito:300,300i,400,400i,700,700i', - ), 'Raleway': ( 'family': ('Raleway', sans-serif), 'url': 'Raleway:300,300i,400,400i,700,700i', @@ -109,22 +95,6 @@ $o-theme-font-configs: ( 'family': ('Roboto', sans-serif), 'url': 'Roboto:300,300i,400,400i,700,700i', ), - 'Permanent Marker': ( - 'family': ('Permanent Marker', cursive), - 'url': 'Permanent+Marker:300,300i,400,400i,700,700i', - ), - 'Pacifico': ( - 'family': ('Pacifico', cursive), - 'url': 'Pacifico:300,300i,400,400i,700,700i', - ), - 'Playfair Display': ( - 'family': ('Playfair Display', serif), - 'url': 'Playfair+Display:300,300i,400,400i,700,700i', - ), - 'Playfair Display SC': ( - 'family': ('Playfair Display SC', serif), - 'url': 'Playfair+Display+SC:300,300i,400,400i,700,700i', - ), ); //------------------------------------------------------------------------------ @@ -135,12 +105,11 @@ $o-website-values-palettes: ( ( 'color-palettes-name': 'vehicle-1', - 'header-font-size': 1rem, - 'font': 'Droid Sans', - 'headings-font': 'Oswald', - 'navbar-font': 'Oswald', + 'font': 'Fira Code', + 'headings-font': 'Fira Sans', + 'navbar-font': 'Fira Sans', - 'buttons-font': 'Oswald', + 'buttons-font': 'Fira Sans', 'btn-primary-outline': false, 'btn-secondary-outline': true, @@ -155,9 +124,8 @@ $o-website-values-palettes: ( 'btn-font-size': 1.2rem, 'btn-font-size-lg': 2rem, - 'header-template': 'hamburger', - 'hamburger-type': 'off-canvas', - 'hamburger-position': 'left', + 'header-template': 'default', + 'header-links-style': 'border-bottom', 'footer-template': 'minimalist', ), ); @@ -194,3 +162,12 @@ $o-theme-color-palettes-compatibility-indexes: ( 5: 'vehicle-5', 6: 'vehicle-6', ); + +//------------------------------------------------------------------------------ +// Shapes +//------------------------------------------------------------------------------ + +$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Floats/09', (1: 3)); +$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Origins/18', (1: 1)); +$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Origins/05', (1: 1)); +$o-bg-shapes: change-shape-colors-mapping('web_editor', 'Rainy/09_001', (1: 1)); diff --git a/theme_vehicle/views/customizations.xml b/theme_vehicle/views/customizations.xml index c36f4c8ea..72bfdf0ee 100644 --- a/theme_vehicle/views/customizations.xml +++ b/theme_vehicle/views/customizations.xml @@ -1,170 +1,352 @@ + + + - -