From ba6bd9e409bc0daff5b74124f73fd4d62540bf44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alba=20Rinc=C3=B3n?= Date: Thu, 2 Nov 2023 14:40:55 +0100 Subject: [PATCH] Change the "chessboard" pattern structure to improve mobile view (#11545) * Change the "chessboard" pattern structure to improve mobile view * Fix AI prompts --- patterns/hero-product-chessboard.php | 81 ++++++++-------------------- src/Patterns/dictionary.json | 28 +++------- 2 files changed, 28 insertions(+), 81 deletions(-) diff --git a/patterns/hero-product-chessboard.php b/patterns/hero-product-chessboard.php index f533bf85872..0e174f83c87 100644 --- a/patterns/hero-product-chessboard.php +++ b/patterns/hero-product-chessboard.php @@ -15,14 +15,10 @@ $first_title = $content['titles'][0]['default'] ?? ''; $second_title = $content['titles'][1]['default'] ?? ''; $third_title = $content['titles'][2]['default'] ?? ''; -$fourth_title = $content['titles'][3]['default'] ?? ''; -$fifth_title = $content['titles'][4]['default'] ?? ''; $first_description = $content['descriptions'][0]['default'] ?? ''; $second_description = $content['descriptions'][1]['default'] ?? ''; $third_description = $content['descriptions'][2]['default'] ?? ''; -$fourth_description = $content['descriptions'][3]['default'] ?? ''; -$fifth_description = $content['descriptions'][4]['default'] ?? ''; ?> @@ -44,17 +40,16 @@ -
-

+

-

+

@@ -77,63 +72,31 @@
- +
- -
- -
- -

- - - -

- -
- - - -
- -

- - - -

- -
- + +
+ +
+ + + +

+
- - - -
- -
- -

- - - -

- -
- + - -
- -

- + +
+ +
+ - -

- -
- + +

+
- +
diff --git a/src/Patterns/dictionary.json b/src/Patterns/dictionary.json index ee68e302842..613f30690f9 100644 --- a/src/Patterns/dictionary.json +++ b/src/Patterns/dictionary.json @@ -170,47 +170,31 @@ "images_format": "landscape", "content": { "titles": [ - { - "default": "The Fall Collection", - "ai_prompt": "An impact phrase that advertises the displayed product: {image.0}" - }, { "default": "Quality Materials", - "ai_prompt": "A title describing the first displayed product feature" + "ai_prompt": "A title describing the first displayed product feature. The title must have less than 20 characters." }, { "default": "Expert Craftsmanship", - "ai_prompt": "A title describing the second displayed product feature" - }, - { - "default": "Unique Design", - "ai_prompt": "A title describing the third displayed product feature" + "ai_prompt": "A title describing the second displayed product feature. The title must have less than 20 characters." }, { "default": "Customer Satisfaction", - "ai_prompt": "A title describing the fourth displayed product feature" + "ai_prompt": "A title describing the fourth displayed product feature. The title must have less than 20 characters." } ], "descriptions": [ - { - "default": "With high-quality materials and expert craftsmanship, our products are built to last and exceed your expectations.", - "ai_prompt": "A description of the product" - }, { "default": "We use only the highest-quality materials in our products, ensuring that they look great and last for years to come.", - "ai_prompt": "A description of the first displayed product feature" + "ai_prompt": "A description of the first displayed product feature. The text must have less than 120 characters." }, { "default": "Our products are made with expert craftsmanship and attention to detail, ensuring that every stitch and seam is perfect.", - "ai_prompt": "A description of the second displayed product feature" - }, - { - "default": "From bold prints and colors to intricate details and textures, our products are a perfect combination of style and function.", - "ai_prompt": "A description of the third displayed product feature" + "ai_prompt": "A description of the second displayed product feature. The text must have less than 120 characters." }, { "default": "Our top priority is customer satisfaction, and we stand behind our products 100%. ", - "ai_prompt": "A description of the fourth displayed product feature" + "ai_prompt": "A description of the fourth displayed product feature. The text must have less than 120 characters." } ] }