diff --git a/drupal/logo-bar/components/company.html.twig b/drupal/logo-bar/components/company.html.twig new file mode 100644 index 0000000..34cb760 --- /dev/null +++ b/drupal/logo-bar/components/company.html.twig @@ -0,0 +1,16 @@ +
+ {% if company_url %} + + {% else %} +
+ {% endif %} + {% if company_image %} +
+ {{ company_image_alt }} + {% endif %} + {% if company_url %} +
+ {% else %} +
+ {% endif %} +
diff --git a/drupal/logo-bar/config/core.entity_form_display.node.company.default.yml b/drupal/logo-bar/config/core.entity_form_display.node.company.default.yml new file mode 100644 index 0000000..95eeaf1 --- /dev/null +++ b/drupal/logo-bar/config/core.entity_form_display.node.company.default.yml @@ -0,0 +1,83 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.company.repeat_link + - field.field.node.company.repeat_logo + - node.type.company + module: + - link + - media_library + - path +id: node.company.default +targetEntityType: node +bundle: company +mode: default +content: + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + repeat_link: + weight: 123 + settings: + placeholder_url: '' + placeholder_title: '' + third_party_settings: { } + type: link_default + region: content + repeat_logo: + type: media_library_widget + weight: 122 + settings: + media_types: { } + third_party_settings: { } + region: content + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + promote: + type: boolean_checkbox + settings: + display_label: true + weight: 15 + region: content + third_party_settings: { } + status: + type: boolean_checkbox + settings: + display_label: true + weight: 120 + region: content + third_party_settings: { } + sticky: + type: boolean_checkbox + settings: + display_label: true + weight: 16 + region: content + third_party_settings: { } + title: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + settings: + match_operator: CONTAINS + size: 60 + placeholder: '' + match_limit: 10 + region: content + third_party_settings: { } +hidden: { } diff --git a/drupal/logo-bar/config/core.entity_form_display.paragraph.logo_bar.default.yml b/drupal/logo-bar/config/core.entity_form_display.paragraph.logo_bar.default.yml new file mode 100644 index 0000000..ac1cff7 --- /dev/null +++ b/drupal/logo-bar/config/core.entity_form_display.paragraph.logo_bar.default.yml @@ -0,0 +1,24 @@ +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.logo_bar.repeat_companies + - paragraphs.paragraphs_type.logo_bar +id: paragraph.logo_bar.default +targetEntityType: paragraph +bundle: logo_bar +mode: default +content: + repeat_companies: + weight: 0 + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } + type: entity_reference_autocomplete + region: content +hidden: + created: true + status: true diff --git a/drupal/logo-bar/config/core.entity_view_display.node.company.default.yml b/drupal/logo-bar/config/core.entity_view_display.node.company.default.yml new file mode 100644 index 0000000..b79c722 --- /dev/null +++ b/drupal/logo-bar/config/core.entity_view_display.node.company.default.yml @@ -0,0 +1,42 @@ +langcode: en +status: true +dependencies: + config: + - field.field.node.company.repeat_link + - field.field.node.company.repeat_logo + - node.type.company + module: + - link + - user +id: node.company.default +targetEntityType: node +bundle: company +mode: default +content: + repeat_link: + weight: 103 + label: hidden + settings: + trim_length: 80 + url_only: false + url_plain: false + rel: '' + target: '' + third_party_settings: { } + type: link + region: content + repeat_logo: + type: entity_reference_entity_view + weight: 102 + label: hidden + settings: + view_mode: default + link: false + third_party_settings: { } + region: content + links: + weight: 100 + region: content + settings: { } + third_party_settings: { } +hidden: { } diff --git a/drupal/logo-bar/config/core.entity_view_display.node.company.teaser.yml b/drupal/logo-bar/config/core.entity_view_display.node.company.teaser.yml new file mode 100644 index 0000000..85fc779 --- /dev/null +++ b/drupal/logo-bar/config/core.entity_view_display.node.company.teaser.yml @@ -0,0 +1,23 @@ +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.company.repeat_link + - field.field.node.company.repeat_logo + - node.type.company + module: + - user +id: node.company.teaser +targetEntityType: node +bundle: company +mode: teaser +content: + links: + weight: 100 + settings: { } + third_party_settings: { } + region: content +hidden: + repeat_link: true + repeat_logo: true diff --git a/drupal/logo-bar/config/core.entity_view_display.paragraph.logo_bar.default.yml b/drupal/logo-bar/config/core.entity_view_display.paragraph.logo_bar.default.yml new file mode 100644 index 0000000..f6a9811 --- /dev/null +++ b/drupal/logo-bar/config/core.entity_view_display.paragraph.logo_bar.default.yml @@ -0,0 +1,21 @@ +langcode: en +status: true +dependencies: + config: + - field.field.paragraph.logo_bar.repeat_companies + - paragraphs.paragraphs_type.logo_bar +id: paragraph.logo_bar.default +targetEntityType: paragraph +bundle: logo_bar +mode: default +content: + repeat_companies: + weight: 0 + label: hidden + settings: + link: true + view_mode: default + third_party_settings: { } + type: entity_reference_entity_view + region: content +hidden: { } diff --git a/drupal/logo-bar/config/field.field.node.company.field_repeat_link.yml b/drupal/logo-bar/config/field.field.node.company.field_repeat_link.yml new file mode 100644 index 0000000..36095ba --- /dev/null +++ b/drupal/logo-bar/config/field.field.node.company.field_repeat_link.yml @@ -0,0 +1,22 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.repeat_link + - node.type.company + module: + - link +id: node.company.repeat_link +field_name: repeat_link +entity_type: node +bundle: company +label: link +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + link_type: 17 + title: 0 +field_type: link diff --git a/drupal/logo-bar/config/field.field.node.company.field_repeat_logo.yml b/drupal/logo-bar/config/field.field.node.company.field_repeat_logo.yml new file mode 100644 index 0000000..a8f9e5f --- /dev/null +++ b/drupal/logo-bar/config/field.field.node.company.field_repeat_logo.yml @@ -0,0 +1,28 @@ +uuid: b99c2b43-923b-4f7a-90d0-fbe823ce966d +langcode: en +status: true +dependencies: + config: + - field.storage.node.repeat_logo + - media.type.image + - node.type.company +id: node.company.repeat_logo +field_name: repeat_logo +entity_type: node +bundle: company +label: logo +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:media' + handler_settings: + target_bundles: + image: image + sort: + field: _none + auto_create: true + auto_create_bundle: '' +field_type: entity_reference diff --git a/drupal/logo-bar/config/field.field.node.component_standard.field_paragraph_reference.yml b/drupal/logo-bar/config/field.field.node.component_standard.field_paragraph_reference.yml new file mode 100644 index 0000000..fcb97a2 --- /dev/null +++ b/drupal/logo-bar/config/field.field.node.component_standard.field_paragraph_reference.yml @@ -0,0 +1,51 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_paragraph_reference + - node.type.component_standard + - paragraphs.paragraphs_type.accordion_item + module: + - entity_reference_revisions +id: node.component_standard.field_paragraph_reference +field_name: field_paragraph_reference +entity_type: node +bundle: component_standard +label: 'Paragraph reference' +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + negate: 1 + target_bundles: + accordion_item: accordion_item + target_bundles_drag_drop: + accordion: + weight: 3 + enabled: false + accordion_item: + enabled: true + weight: 4 + card_layout: + weight: 10 + enabled: false + cta_section: + weight: 11 + enabled: false + hero_layout: + weight: 12 + enabled: false + image_text_feature: + weight: 13 + enabled: false + logo_bar: + weight: 15 + enabled: false + quote: + weight: 14 + enabled: false +field_type: entity_reference_revisions diff --git a/drupal/logo-bar/config/field.field.paragraph.logo_bar.field_repeat_companies.yml b/drupal/logo-bar/config/field.field.paragraph.logo_bar.field_repeat_companies.yml new file mode 100644 index 0000000..e651db6 --- /dev/null +++ b/drupal/logo-bar/config/field.field.paragraph.logo_bar.field_repeat_companies.yml @@ -0,0 +1,27 @@ +langcode: en +status: true +dependencies: + config: + - field.storage.paragraph.repeat_companies + - node.type.company + - paragraphs.paragraphs_type.logo_bar +id: paragraph.logo_bar.repeat_companies +field_name: repeat_companies +entity_type: paragraph +bundle: logo_bar +label: Companies +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:node' + handler_settings: + target_bundles: + company: company + sort: + field: _none + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/drupal/logo-bar/config/field.storage.node.field_repeat_link.yml b/drupal/logo-bar/config/field.storage.node.field_repeat_link.yml new file mode 100644 index 0000000..75b9671 --- /dev/null +++ b/drupal/logo-bar/config/field.storage.node.field_repeat_link.yml @@ -0,0 +1,18 @@ +langcode: en +status: true +dependencies: + module: + - link + - node +id: node.repeat_link +field_name: repeat_link +entity_type: node +type: link +settings: { } +module: link +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/drupal/logo-bar/config/field.storage.node.field_repeat_logo.yml b/drupal/logo-bar/config/field.storage.node.field_repeat_logo.yml new file mode 100644 index 0000000..2bc6e7f --- /dev/null +++ b/drupal/logo-bar/config/field.storage.node.field_repeat_logo.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - media + - node +id: node.repeat_logo +field_name: repeat_logo +entity_type: node +type: entity_reference +settings: + target_type: media +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/drupal/logo-bar/config/field.storage.paragraph.field_repeat_companies.yml b/drupal/logo-bar/config/field.storage.paragraph.field_repeat_companies.yml new file mode 100644 index 0000000..f3262bb --- /dev/null +++ b/drupal/logo-bar/config/field.storage.paragraph.field_repeat_companies.yml @@ -0,0 +1,19 @@ +langcode: en +status: true +dependencies: + module: + - node + - paragraphs +id: paragraph.repeat_companies +field_name: repeat_companies +entity_type: paragraph +type: entity_reference +settings: + target_type: node +module: core +locked: false +cardinality: -1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/drupal/logo-bar/config/field.storage.paragraph.repeat_company_name.yml b/drupal/logo-bar/config/field.storage.paragraph.repeat_company_name.yml new file mode 100644 index 0000000..06bee40 --- /dev/null +++ b/drupal/logo-bar/config/field.storage.paragraph.repeat_company_name.yml @@ -0,0 +1,20 @@ +langcode: en +status: true +dependencies: + module: + - paragraphs +id: paragraph.repeat_company_name +field_name: repeat_company_name +entity_type: paragraph +type: string +settings: + max_length: 255 + is_ascii: false + case_sensitive: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/drupal/logo-bar/config/node.type.company.yml b/drupal/logo-bar/config/node.type.company.yml new file mode 100644 index 0000000..82f4c0a --- /dev/null +++ b/drupal/logo-bar/config/node.type.company.yml @@ -0,0 +1,17 @@ +langcode: en +status: true +dependencies: + module: + - menu_ui +third_party_settings: + menu_ui: + available_menus: + - main + parent: 'main:' +name: Company +type: company +description: '' +help: '' +new_revision: true +preview_mode: 1 +display_submitted: true diff --git a/drupal/logo-bar/config/paragraphs.paragraphs_type.logo_bar.yml b/drupal/logo-bar/config/paragraphs.paragraphs_type.logo_bar.yml new file mode 100644 index 0000000..05fead4 --- /dev/null +++ b/drupal/logo-bar/config/paragraphs.paragraphs_type.logo_bar.yml @@ -0,0 +1,9 @@ +langcode: en +status: true +dependencies: { } +id: logo_bar +label: 'Logo bar' +icon_uuid: null +icon_default: null +description: '' +behavior_plugins: { } diff --git a/drupal/logo-bar/sass/3.components/paragraphs/_logo-bar.scss b/drupal/logo-bar/sass/3.components/paragraphs/_logo-bar.scss new file mode 100644 index 0000000..7bf3de0 --- /dev/null +++ b/drupal/logo-bar/sass/3.components/paragraphs/_logo-bar.scss @@ -0,0 +1,21 @@ +.paragraph--logo-bar { + background-size: contain; + padding: 5rem 2rem; + + .l-logo-bar-container { + margin-left: auto; + margin-right: auto; + max-width: 1200px; + display: flex; + flex-wrap: wrap; + justify-content: space-evenly; + } + + .company { + min-width: 200px; + margin: 1rem; + .company__img_bg { + padding-bottom: 56.25%; + } + } +} diff --git a/drupal/logo-bar/templates/paragraphs/paragraph--logo-bar.html.twig b/drupal/logo-bar/templates/paragraphs/paragraph--logo-bar.html.twig new file mode 100644 index 0000000..0116b35 --- /dev/null +++ b/drupal/logo-bar/templates/paragraphs/paragraph--logo-bar.html.twig @@ -0,0 +1,19 @@ +{% + set classes = [ + 'paragraph', + 'paragraph--' ~ paragraph.bundle|clean_class, + 'paragraph--' ~ paragraph.bundle|clean_class ~ '--' ~ view_mode|clean_class, + 'paragraph--type--' ~ paragraph.bundle|clean_class, + view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class, + not paragraph.isPublished() ? 'paragraph--unpublished' + ] +%} +{% block paragraph %} + + {% block content %} +
+ {{ content.field_repeat_companies|field_value }} +
+ {% endblock %} + +{% endblock paragraph %}