Skip to content

Commit

Permalink
fix(YALB-mega-footer-2): add new 3:1 horizontal logo crop type, add n…
Browse files Browse the repository at this point in the history
…ew 3:1 image styles and responsive image style
  • Loading branch information
joetower committed Sep 13, 2023
1 parent c66bd51 commit 19c9ed5
Show file tree
Hide file tree
Showing 8 changed files with 195 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ content:
crop_list:
- banner_16_5
- card_3_2
- logo_horizontal_3_1
- profile_1_1_
crop_types_required: { }
warn_multiple_usages: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
uuid: 6b052cd9-2d1c-4b86-9349-7f3b7f7ba104
langcode: en
status: true
dependencies:
module:
- entity_redirect
third_party_settings:
entity_redirect:
redirect:
add:
active: 0
destination: default
url: ''
external: ''
edit:
active: 0
destination: default
url: ''
external: ''
delete:
active: 0
destination: default
url: ''
external: ''
anonymous:
active: 0
destination: default
url: ''
external: ''
label: 'Logo Horizontal (3:1)'
id: logo_horizontal_3_1
description: 'Crop type for landscape/horizontal logos in 3:1 aspect ratio.'
aspect_ratio: '3:1'
soft_limit_width: null
soft_limit_height: null
hard_limit_width: null
hard_limit_height: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: 5a51324b-359a-43fd-bcb4-2be349b5084f
langcode: en
status: true
dependencies:
config:
- crop.type.logo_horizontal_3_1
module:
- crop
name: '3_1_300'
label: '3:1 (300)'
effects:
aa428c6a-4f01-463a-a2a8-60826c4d4a66:
uuid: aa428c6a-4f01-463a-a2a8-60826c4d4a66
id: crop_crop
weight: 1
data:
crop_type: logo_horizontal_3_1
automatic_crop_provider: null
8a3873d2-9ad7-46cb-bdf9-5df37ba25a51:
uuid: 8a3873d2-9ad7-46cb-bdf9-5df37ba25a51
id: image_scale_and_crop
weight: 2
data:
width: 300
height: 100
anchor: center-center
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: 36d76d1d-fd7a-4deb-94e8-87b4f059b78b
langcode: en
status: true
dependencies:
config:
- crop.type.logo_horizontal_3_1
module:
- crop
name: '3_1_400'
label: '3:1 (400)'
effects:
06a2fdc7-3eb2-437b-b96e-2b06edb78127:
uuid: 06a2fdc7-3eb2-437b-b96e-2b06edb78127
id: crop_crop
weight: 1
data:
crop_type: logo_horizontal_3_1
automatic_crop_provider: null
1779826d-ec52-4a15-b9e1-3ad08b1549a3:
uuid: 1779826d-ec52-4a15-b9e1-3ad08b1549a3
id: image_scale_and_crop
weight: 2
data:
width: 400
height: 133
anchor: center-center
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: d9ccb021-af76-427d-9704-d622356eb0ee
langcode: en
status: true
dependencies:
config:
- crop.type.logo_horizontal_3_1
module:
- crop
name: '3_1_500'
label: '3:1 (500)'
effects:
53979460-2d06-41ed-8c19-0606690aca30:
uuid: 53979460-2d06-41ed-8c19-0606690aca30
id: crop_crop
weight: 1
data:
crop_type: logo_horizontal_3_1
automatic_crop_provider: null
5fd3c76d-3e51-4a42-a62c-002a6134504a:
uuid: 5fd3c76d-3e51-4a42-a62c-002a6134504a
id: image_scale_and_crop
weight: 2
data:
width: 500
height: 166
anchor: center-center
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: 5efd596b-b64b-462a-8464-1d708d55bf08
langcode: en
status: true
dependencies:
config:
- crop.type.logo_horizontal_3_1
module:
- crop
name: '3_1_600'
label: '3:1 (600)'
effects:
31133b06-51c3-40a2-b493-a5015514cf48:
uuid: 31133b06-51c3-40a2-b493-a5015514cf48
id: crop_crop
weight: 1
data:
crop_type: logo_horizontal_3_1
automatic_crop_provider: null
283af2b5-646f-4ac0-8651-fc56402b161c:
uuid: 283af2b5-646f-4ac0-8651-fc56402b161c
id: image_scale_and_crop
weight: 2
data:
width: 600
height: 200
anchor: center-center
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
uuid: 1fc31537-285c-4d51-a818-e679ab7b4277
langcode: en
status: true
dependencies:
config:
- crop.type.logo_horizontal_3_1
module:
- crop
name: '3_1_700'
label: '3:1 (700)'
effects:
40a36e6d-3a30-4c7c-9adb-eb2a89ecda22:
uuid: 40a36e6d-3a30-4c7c-9adb-eb2a89ecda22
id: crop_crop
weight: 1
data:
crop_type: logo_horizontal_3_1
automatic_crop_provider: null
09e9582c-0f44-431a-a684-1c35cea092e7:
uuid: 09e9582c-0f44-431a-a684-1c35cea092e7
id: image_scale_and_crop
weight: 2
data:
width: 700
height: 233
anchor: center-center
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 5a91f1a5-323d-4607-b493-7bcbed8e18db
langcode: en
status: true
dependencies:
config:
- image.style.3_1_300
- image.style.3_1_400
- image.style.3_1_500
- image.style.3_1_600
- image.style.3_1_700
id: image_horizontal_logos
label: 'Image - Horizontal Logos'
image_style_mappings:
-
image_mapping_type: sizes
image_mapping:
sizes: '(min-width:556px) 500px, 100vw'
sizes_image_styles:
- '3_1_300'
- '3_1_400'
- '3_1_500'
- '3_1_600'
- '3_1_700'
breakpoint_id: responsive_image.viewport_sizing
multiplier: 1x
breakpoint_group: responsive_image
fallback_image_style: '3_1_300'

0 comments on commit 19c9ed5

Please sign in to comment.