Skip to content

Commit

Permalink
[IMP] theme_artists: adapt existing snippets
Browse files Browse the repository at this point in the history
wip

[IMP] theme_artists: test

to squash
  • Loading branch information
mano-odoo committed Sep 27, 2024
1 parent 4e8c826 commit 971d296
Show file tree
Hide file tree
Showing 47 changed files with 554 additions and 59 deletions.
35 changes: 35 additions & 0 deletions theme_artists/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,40 @@

'views/snippets/s_striped_top.xml',
'views/snippets/s_cta_box.xml',
'views/snippets/s_countdown.xml',
'views/snippets/s_company_team_detail.xml',
'views/snippets/s_contact_info.xml',
'views/snippets/s_parallax.xml',
'views/snippets/s_text_image.xml',
'views/snippets/s_framed_intro.xml',
'views/snippets/s_card_offset.xml',
'views/snippets/s_three_columns.xml',
'views/snippets/s_call_to_action.xml',
'views/snippets/s_cards_grid.xml',
'views/snippets/s_cards_soft.xml',
'views/snippets/s_carousel.xml',
'views/snippets/s_carousel_intro.xml',
'views/snippets/s_cta_mockups.xml',
'views/snippets/s_cta_card.xml',
'views/snippets/s_faq_list.xml',
'views/snippets/s_faq_collapse.xml',
'views/snippets/s_faq_horizontal.xml',
'views/snippets/s_title.xml',
'views/snippets/s_image_gallery.xml',
'views/snippets/s_image_punchy.xml',
'views/snippets/s_sidegrid.xml',
'views/snippets/s_banner.xml',
'views/snippets/s_opening_hours.xml',
'views/snippets/s_cover.xml',
'views/snippets/s_features.xml',
'views/snippets/s_media_list.xml',
'views/snippets/s_masonry_block.xml',
'views/snippets/s_numbers_list.xml',
'views/snippets/s_image_title.xml',
'views/snippets/s_numbers.xml',
'views/snippets/s_numbers_charts.xml',
'views/snippets/s_motto.xml',
'views/snippets/s_closer_look.xml',
'views/snippets/s_quadrant.xml',
'views/snippets/s_numbers_grid.xml',
'views/snippets/s_picture.xml',
Expand All @@ -50,17 +65,37 @@
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_company_team_shapes.xml',
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_mockup_image.xml',
'views/snippets/s_accordion_image.xml',
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_intro_pill.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_kickoff.xml',
'views/snippets/s_discovery.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_big_number.xml',
'views/snippets/s_image_frame.xml',
'views/snippets/s_references.xml',
'views/snippets/s_references_social.xml',
'views/snippets/s_references_grid.xml',
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_shape_image.xml',
'views/snippets/s_showcase.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_text_block.xml',
'views/snippets/s_image_text_box.xml',
'views/snippets/s_image_text_overlap.xml',
'views/snippets/s_process_steps.xml',
'views/snippets/s_pricelist_cafe.xml',
'views/snippets/s_searchbar.xml',
'views/snippets/s_striped.xml',
'views/snippets/s_table_of_content.xml',
'views/snippets/s_timeline.xml',
'views/snippets/s_timeline_list.xml',
'views/snippets/s_title_form.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_empowerment.xml',
'views/new_page_template.xml',
],
Expand Down
24 changes: 14 additions & 10 deletions theme_artists/views/images.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,33 +388,37 @@ Check in theme_monglia's primary_variables.scss, theme.scss and theme_common's m
<record id="s_sidegrid_default_image_1" model="theme.ir.attachment">
<field name="key">website.s_sidegrid_default_image_1</field>
<field name="name">website.s_sidegrid_default_image_1</field>
<field name="url">website.s_text_image_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/s_text_image.jpg</field>
</record>
<record id="s_sidegrid_default_image_2" model="theme.ir.attachment">
<field name="key">website.s_sidegrid_default_image_2</field>
<field name="name">website.s_sidegrid_default_image_2</field>
<field name="url">website.s_banner_default_image_2</field>
<field name="url">/theme_artists/static/src/img/snippets/s_banner_2.jpg</field>
</record>
<record id="s_sidegrid_default_image_3" model="theme.ir.attachment">
<field name="key">website.s_sidegrid_default_image_3</field>
<field name="name">website.s_sidegrid_default_image_3</field>
<field name="url">/web/image/website.s_banner_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/s_banner_3.jpg</field>
</record>
<record id="s_sidegrid_default_image_4" model="theme.ir.attachment">
<field name="key">website.s_sidegrid_default_image_4</field>
<field name="name">website.s_sidegrid_default_image_4</field>
<field name="url">/web/image/website.library_image_08</field>
<field name="url">/theme_artists/static/src/img/snippets/library_image_08.jpg</field>
</record>
<record id="s_image_frame_default_image" model="theme.ir.attachment">
<field name="key">website.s_image_frame_default_image</field>
<field name="name">website.s_image_frame_default_image</field>
<field name="url">website.s_cover_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/s_cover.jpg</field>
</record>
<record id="s_cta_box_default_image" model="ir.attachment">
<field name="key">website.s_cta_box_default_image</field>
<field name="name">website.s_cta_box_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/library_image_02.jpg</field>
</record>
<record id="website.s_cta_box_default_image" model="ir.attachment">
<field name="public" eval="True"/>
<field name="name">s_cta_box_default_image.jpg</field>
<field name="type">url</field>
<field name="url">website.library_image_02</field>
<record id="s_showcase_default_image" model="ir.attachment">
<field name="key">website.s_showcase_default_image</field>
<field name="name">website.s_showcase_default_image</field>
<field name="url">/theme_artists/static/src/img/snippets/s_carousel_1.jpg</field>
</record>

</odoo>
44 changes: 7 additions & 37 deletions theme_artists/views/new_page_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

<template id="new_page_template_basic_2_s_text_block_h1" inherit_id="website.new_page_template_basic_2_s_text_block_h1">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
<attribute name="class" remove="o_cc2" separator=" "/>
</xpath>
</template>

Expand All @@ -107,12 +107,6 @@
</xpath>
</template>

<template id="new_page_template_about_s_text_block_h1" inherit_id="website.new_page_template_about_s_text_block_h1">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
</template>

<template id="new_page_template_about_full_s_image_text" inherit_id="website.new_page_template_about_full_s_image_text">
<xpath expr="//section" position="attributes">
<attribute name="class" remove="pt48" separator=" "/>
Expand All @@ -137,24 +131,12 @@
</xpath>
</template>

<template id="new_page_template_about_full_1_s_text_block_h2" inherit_id="website.new_page_template_about_full_1_s_text_block_h2">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
</template>

<template id="new_page_template_about_map_s_text_block_h1" inherit_id="website.new_page_template_about_map_s_text_block_h1">
<xpath expr="//section" position="attributes">
<attribute name="class" add="pb0" remove="pb0 o_cc5" separator=" "/>
</xpath>
</template>

<template id="new_page_template_about_map_s_text_block_h2" inherit_id="website.new_page_template_about_map_s_text_block_h2">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
</template>

<template id="new_page_template_about_personal_s_numbers" inherit_id="website.new_page_template_about_personal_s_numbers">
<xpath expr="//section" position="attributes">
<attribute name="class" remove="o_cc3 pt0" separator=" "/>
Expand All @@ -163,7 +145,7 @@

<template id="new_page_template_about_personal_s_text_block_h2" inherit_id="website.new_page_template_about_personal_s_text_block_h2">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc3" separator=" "/>
<attribute name="class" remove="o_cc o_cc3" separator=" "/>
</xpath>
</template>

Expand All @@ -189,13 +171,13 @@

<template id="new_page_template_landing_2_s_text_block_h2" inherit_id="website.new_page_template_landing_2_s_text_block_h2">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
<attribute name="class" add="o_cc4" remove="o_cc2 o_cc5" separator=" "/>
</xpath>
</template>

<template id="new_page_template_landing_3_s_text_block_h2" inherit_id="website.new_page_template_landing_3_s_text_block_h2">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
<attribute name="class" add="o_cc4" remove="o_cc2 o_cc5" separator=" "/>
</xpath>
</template>

Expand Down Expand Up @@ -235,18 +217,6 @@
</xpath>
</template>

<template id="new_page_template_gallery_s_text_block_2nd" inherit_id="website.new_page_template_gallery_s_text_block_2nd">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
</template>

<template id="new_page_template_gallery_s_text_block_h2" inherit_id="website.new_page_template_gallery_s_text_block_h2">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" separator=" "/>
</xpath>
</template>

<!-- Snippet customization Services Pages -->

<template id="new_page_template_services_s_image_text_2nd" inherit_id="website.new_page_template_services_s_image_text_2nd">
Expand Down Expand Up @@ -320,7 +290,7 @@

<template id="new_page_template_team_s_text_block_h1" inherit_id="website.new_page_template_team_s_text_block_h1">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4" separator=" "/>
<attribute name="class" add="o_cc4" remove="o_cc5" separator=" "/>
</xpath>
</template>

Expand All @@ -338,13 +308,13 @@

<template id="new_page_template_team_1_s_text_block_h1" inherit_id="website.new_page_template_team_1_s_text_block_h1">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5 pb0" remove="o_cc4 pb40" separator=" "/>
<attribute name="class" add="pb0" remove="o_cc4 pb40" separator=" "/>
</xpath>
</template>

<template id="new_page_template_team_2_s_text_block_h1" inherit_id="website.new_page_template_team_2_s_text_block_h1">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc4" separator=" "/>
<attribute name="class" remove="o_cc4" separator=" "/>
</xpath>
</template>

Expand Down
2 changes: 1 addition & 1 deletion theme_artists/views/snippets/s_cards_grid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<template id="s_cards_grid" inherit_id="website.s_cards_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>

<!-- Title -->
Expand Down
21 changes: 21 additions & 0 deletions theme_artists/views/snippets/s_cards_soft.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_cards_soft" inherit_id="website.s_cards_soft">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5 pt56 pb48" remove="o_cc1 pt48 pb32" separator=" "/>
</xpath>
<!-- Cards -->
<xpath expr="//div[hasclass('s_card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('s_card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('s_card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
10 changes: 10 additions & 0 deletions theme_artists/views/snippets/s_closer_look.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_closer_look" inherit_id="website.s_closer_look">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
</template>

</odoo>
11 changes: 11 additions & 0 deletions theme_artists/views/snippets/s_company_team_detail.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_detail" inherit_id="website.s_company_team_detail">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
</template>

</odoo>
11 changes: 11 additions & 0 deletions theme_artists/views/snippets/s_contact_info.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_contact_info" inherit_id="website.s_contact_info">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
</template>

</odoo>
11 changes: 11 additions & 0 deletions theme_artists/views/snippets/s_countdown.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_countdown" inherit_id="website.s_countdown">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
</template>

</odoo>
8 changes: 6 additions & 2 deletions theme_artists/views/snippets/s_cover.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="pt200 pb200" remove="pt232 pb232 s_parallax_bg parallax s_parallax_is_fixed bg-black-50" separator=" "/>
<attribute name="data-oe-shape-data">{'shape':'web_editor/Floats/02','colors':{'c1':'o-color-1','c2':'o-color-1'},'flip':[]}</attribute>
<attribute name="data-oe-shape-data">{'shape':'web_editor/Origins/04_001','colors':{'c3': 'o-color-1'},'flip':[], 'showOnMobile':true}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Floats_02 o_we_animated" style="background-image: url('/web_editor/shape/web_editor/Floats/02.svg?c1=o-color-1&amp;c2=o-color-1');"/>
<div class="o_we_shape o_web_editor_Origins_04_001 o_we_animated" style="background-image: url('/web_editor/shape/web_editor/Origins/04_001.svg?c3=o-color-1'); background-position: 50% 100%;"/>
</xpath>
<!-- Remove filter & parallax -->
<xpath expr="//div[hasclass('o_we_bg_filter')]" position="replace"/>
Expand All @@ -21,6 +21,10 @@
<xpath expr="//h1" position="after">
<p><br/></p>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn-secondary')]" position="attributes">
<attribute name="class" add="btn-primary" remove="btn-secondary" separator=" "/>
</xpath>
</template>

</odoo>
11 changes: 11 additions & 0 deletions theme_artists/views/snippets/s_cta_card.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_cta_card" inherit_id="website.s_cta_card">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
11 changes: 11 additions & 0 deletions theme_artists/views/snippets/s_cta_mockups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_cta_mockups" inherit_id="website.s_cta_mockups">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
11 changes: 11 additions & 0 deletions theme_artists/views/snippets/s_discovery.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_discovery" inherit_id="website.s_discovery">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
</template>

</odoo>
11 changes: 11 additions & 0 deletions theme_artists/views/snippets/s_faq_collapse.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_faq_collapse" inherit_id="website.s_faq_collapse">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc o_cc5" separator=" "/>
</xpath>
</template>

</odoo>
Loading

0 comments on commit 971d296

Please sign in to comment.