This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
463 additions
and
16 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions
61
config/install/core.entity_form_display.paragraph.gated_content.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- entity_browser.browser.images_library | ||
- field.field.paragraph.gated_content.field_prgf_description | ||
- field.field.paragraph.gated_content.field_prgf_image | ||
- field.field.paragraph.gated_content.field_prgf_link | ||
- field.field.paragraph.gated_content.field_prgf_title | ||
- paragraphs.paragraphs_type.gated_content | ||
module: | ||
- link | ||
- openy_focal_point | ||
- text | ||
id: paragraph.gated_content.default | ||
targetEntityType: paragraph | ||
bundle: gated_content | ||
mode: default | ||
content: | ||
field_prgf_description: | ||
weight: 1 | ||
settings: | ||
rows: 5 | ||
placeholder: '' | ||
third_party_settings: { } | ||
type: text_textarea | ||
region: content | ||
field_prgf_image: | ||
weight: 3 | ||
settings: | ||
entity_browser: images_library | ||
field_widget_display: rendered_entity | ||
field_widget_edit: '1' | ||
field_widget_remove: '1' | ||
selection_mode: selection_append | ||
field_widget_display_settings: | ||
view_mode: embedded_half | ||
field_widget_replace: 0 | ||
open: 0 | ||
third_party_settings: { } | ||
type: openy_focal_point_entity_browser_entity_reference | ||
region: content | ||
field_prgf_link: | ||
weight: 2 | ||
settings: | ||
placeholder_url: '' | ||
placeholder_title: '' | ||
third_party_settings: { } | ||
type: link_default | ||
region: content | ||
field_prgf_title: | ||
weight: 0 | ||
settings: | ||
size: 60 | ||
placeholder: '' | ||
third_party_settings: { } | ||
type: string_textfield | ||
region: content | ||
hidden: | ||
created: true | ||
status: true |
56 changes: 56 additions & 0 deletions
56
config/install/core.entity_view_display.paragraph.gated_content.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.field.paragraph.gated_content.field_prgf_description | ||
- field.field.paragraph.gated_content.field_prgf_image | ||
- field.field.paragraph.gated_content.field_prgf_link | ||
- field.field.paragraph.gated_content.field_prgf_title | ||
- image.style.virtual_y_paragraph_headline | ||
- paragraphs.paragraphs_type.gated_content | ||
module: | ||
- link | ||
- media | ||
- text | ||
id: paragraph.gated_content.default | ||
targetEntityType: paragraph | ||
bundle: gated_content | ||
mode: default | ||
content: | ||
field_prgf_description: | ||
weight: 1 | ||
label: above | ||
settings: { } | ||
third_party_settings: { } | ||
type: text_default | ||
region: content | ||
field_prgf_image: | ||
weight: 3 | ||
label: above | ||
settings: | ||
image_style: virtual_y_paragraph_headline | ||
image_link: '' | ||
third_party_settings: { } | ||
type: media_thumbnail | ||
region: content | ||
field_prgf_link: | ||
weight: 2 | ||
label: above | ||
settings: | ||
trim_length: 80 | ||
url_only: false | ||
url_plain: false | ||
rel: '' | ||
target: '' | ||
third_party_settings: { } | ||
type: link | ||
region: content | ||
field_prgf_title: | ||
weight: 0 | ||
label: above | ||
settings: | ||
link_to_entity: false | ||
third_party_settings: { } | ||
type: string | ||
region: content | ||
hidden: { } |
25 changes: 25 additions & 0 deletions
25
config/install/field.field.paragraph.gated_content.field_prgf_description.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_prgf_description | ||
- paragraphs.paragraphs_type.gated_content | ||
module: | ||
- datalayer | ||
- text | ||
third_party_settings: | ||
datalayer: | ||
expose: 0 | ||
label: field_prgf_description | ||
id: paragraph.gated_content.field_prgf_description | ||
field_name: field_prgf_description | ||
entity_type: paragraph | ||
bundle: gated_content | ||
label: 'Headline Description' | ||
description: '' | ||
required: false | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: text_long |
33 changes: 33 additions & 0 deletions
33
config/install/field.field.paragraph.gated_content.field_prgf_image.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_prgf_image | ||
- media.type.image | ||
- paragraphs.paragraphs_type.gated_content | ||
module: | ||
- datalayer | ||
third_party_settings: | ||
datalayer: | ||
expose: 0 | ||
label: field_prgf_image | ||
id: paragraph.gated_content.field_prgf_image | ||
field_name: field_prgf_image | ||
entity_type: paragraph | ||
bundle: gated_content | ||
label: 'Headline Background Image' | ||
description: '' | ||
required: false | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:media' | ||
handler_settings: | ||
target_bundles: | ||
image: image | ||
sort: | ||
field: _none | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
27 changes: 27 additions & 0 deletions
27
config/install/field.field.paragraph.gated_content.field_prgf_link.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_prgf_link | ||
- paragraphs.paragraphs_type.gated_content | ||
module: | ||
- datalayer | ||
- link | ||
third_party_settings: | ||
datalayer: | ||
expose: 0 | ||
label: field_prgf_link | ||
id: paragraph.gated_content.field_prgf_link | ||
field_name: field_prgf_link | ||
entity_type: paragraph | ||
bundle: gated_content | ||
label: 'Headline Link' | ||
description: '' | ||
required: false | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
link_type: 17 | ||
title: 2 | ||
field_type: link |
24 changes: 24 additions & 0 deletions
24
config/install/field.field.paragraph.gated_content.field_prgf_title.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.paragraph.field_prgf_title | ||
- paragraphs.paragraphs_type.gated_content | ||
module: | ||
- datalayer | ||
third_party_settings: | ||
datalayer: | ||
expose: 0 | ||
label: field_prgf_title | ||
id: paragraph.gated_content.field_prgf_title | ||
field_name: field_prgf_title | ||
entity_type: paragraph | ||
bundle: gated_content | ||
label: 'Headline Title' | ||
description: '' | ||
required: false | ||
translatable: true | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: { } | ||
field_type: string |
16 changes: 16 additions & 0 deletions
16
config/install/image.style.virtual_y_paragraph_headline.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- focal_point | ||
name: virtual_y_paragraph_headline | ||
label: 'Virtual Y Paragraph Headline' | ||
effects: | ||
e3e4696b-3963-4259-9042-48fac1fa7676: | ||
uuid: e3e4696b-3963-4259-9042-48fac1fa7676 | ||
id: focal_point_scale_and_crop | ||
weight: 1 | ||
data: | ||
width: 2400 | ||
height: 960 | ||
crop_type: focal_point |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<div class="paragraph-headline" :style="styleObject"> | ||
<div class="paragraph-headline__content"> | ||
<div | ||
v-if="getHeadlineTitle" | ||
class="paragraph-headline__title" | ||
>{{ getHeadlineTitle }} | ||
</div> | ||
<div | ||
v-if="getHeadlineDescription" | ||
class="paragraph-headline__description" | ||
v-html="getHeadlineDescription" | ||
></div> | ||
<a | ||
v-if="getHeadlineLinkText" | ||
class="paragraph-headline__link" | ||
:href="getHeadlineLinkUrl" | ||
>{{ getHeadlineLinkText }}</a> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { mapGetters } from 'vuex'; | ||
export default { | ||
computed: { | ||
...mapGetters([ | ||
'getHeadlineTitle', | ||
'getHeadlineDescription', | ||
'getHeadlineLinkUrl', | ||
'getHeadlineLinkText', | ||
'getHeadlineBackgroundImage', | ||
]), | ||
styleObject() { | ||
return { | ||
'background-image': this.getHeadlineBackgroundImage | ||
? `url('${this.getHeadlineBackgroundImage}')` | ||
: '', | ||
}; | ||
}, | ||
}, | ||
mounted() { | ||
console.log(this.getHeadlineBackgroundImage); | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@mixin median($property, $desktop, $tablet:$desktop, $mobile:$tablet) { | ||
#{$property}: $desktop; | ||
|
||
@media (max-width: 900px) { | ||
#{$property}: $tablet; | ||
} | ||
|
||
@if $mobile != $tablet { | ||
@media (max-width: 600px) { | ||
#{$property}: $mobile; | ||
} | ||
} | ||
} |
Oops, something went wrong.