easyorders 0.1.15 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/bin/cli.js +22 -8
- package/dist/server/index.js +10 -7
- package/dist/template/theme/config.json +19 -3
- package/dist/template/theme/home-sections/Tilted-Scrolling-Marque/config.json +107 -0
- package/dist/template/theme/home-sections/Tilted-Scrolling-Marque/template.liquid +171 -0
- package/dist/template/theme/home-sections/category-mosaic/config.json +89 -4
- package/dist/template/theme/home-sections/category-mosaic/template.liquid +84 -69
- package/dist/template/theme/home-sections/different-hero/config.json +199 -0
- package/dist/template/theme/home-sections/different-hero/template.liquid +219 -0
- package/dist/template/theme/home-sections/editorial-feature/config.json +27 -1
- package/dist/template/theme/home-sections/editorial-feature/template.liquid +11 -10
- package/dist/template/theme/home-sections/newsletter-luxe/config.json +28 -2
- package/dist/template/theme/home-sections/newsletter-luxe/template.liquid +19 -13
- package/dist/template/theme/home-sections/runway-hero/config.json +87 -30
- package/dist/template/theme/home-sections/runway-hero/template.liquid +59 -29
- package/dist/template/theme/home-sections/shop-the-look/config.json +93 -1
- package/dist/template/theme/home-sections/shop-the-look/template.liquid +41 -19
- package/dist/template/theme/home-sections/slider-before-after/config.json +213 -0
- package/dist/template/theme/home-sections/slider-before-after/template.liquid +336 -0
- package/dist/template/theme/home-sections/test-hero-allbird/config.json +130 -0
- package/dist/template/theme/home-sections/test-hero-allbird/template.liquid +149 -0
- package/dist/template/theme/home-sections/trust-promise/config.json +76 -2
- package/dist/template/theme/home-sections/trust-promise/template.liquid +34 -11
- package/dist/template/theme/home-sections/zoom-parallax/config.json +48 -0
- package/dist/template/theme/home-sections/zoom-parallax/template.liquid +135 -0
- package/dist/template/theme/product-data-schema.json +27 -0
- package/dist/template/theme/schema.json +114 -129
- package/dist/template/theme/script.js +694 -185
- package/dist/template/theme/sections/categories.liquid +20 -4
- package/dist/template/theme/sections/featured-products.liquid +65 -32
- package/dist/template/theme/sections/fixed-buy-button.liquid +6 -1
- package/dist/template/theme/sections/footer.liquid +90 -91
- package/dist/template/theme/sections/gallery.liquid +37 -33
- package/dist/template/theme/sections/header.liquid +105 -25
- package/dist/template/theme/sections/home-products-grid.liquid +68 -10
- package/dist/template/theme/sections/list-products.liquid +73 -30
- package/dist/template/theme/sections/order-invoice.liquid +39 -91
- package/dist/template/theme/sections/product-description.liquid +18 -8
- package/dist/template/theme/sections/product-details.liquid +9 -24
- package/dist/template/theme/sections/products-grid.liquid +102 -54
- package/dist/template/theme/sections/related-products.liquid +124 -60
- package/dist/template/theme/sections/reviews.liquid +43 -28
- package/dist/template/theme/style.css +2283 -589
- package/dist/template/theme/theme-data.json +25 -8
- package/package.json +2 -2
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
<section
|
|
2
|
-
class="category-mosaic
|
|
3
|
-
style="
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
class="eo-home-section category-mosaic{% if section_data.gap_tight %} category-mosaic--tight{% endif %}"
|
|
3
|
+
style="
|
|
4
|
+
--mosaic-cols: {{ section_data.columns | default: '3' }};
|
|
5
|
+
{% if section_data.section_background != blank %}--mosaic-section-bg: {{ section_data.section_background }};{% endif %}
|
|
6
|
+
{% if section_data.heading_title_color != blank %}--mosaic-head-title-color: {{ section_data.heading_title_color }};{% endif %}
|
|
7
|
+
--mosaic-head-title-size: {{ section_data.heading_title_size | default: 38 }}px;
|
|
8
|
+
--mosaic-head-title-weight: {{ section_data.heading_title_weight | default: '500' }};
|
|
9
|
+
{% if section_data.heading_subtitle_color != blank %}--mosaic-head-subtitle-color: {{ section_data.heading_subtitle_color }};{% endif %}
|
|
10
|
+
--mosaic-head-subtitle-size: {{ section_data.heading_subtitle_size | default: 16 }}px;
|
|
11
|
+
--mosaic-head-subtitle-weight: {{ section_data.heading_subtitle_weight | default: '400' }};
|
|
12
|
+
"
|
|
6
13
|
>
|
|
7
14
|
<div class="category-mosaic__head">
|
|
8
15
|
{% if section_data.title != blank %}
|
|
@@ -13,21 +20,51 @@
|
|
|
13
20
|
{% endif %}
|
|
14
21
|
</div>
|
|
15
22
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{% for
|
|
19
|
-
<
|
|
23
|
+
{% if section_data.tiles and section_data.tiles.size > 0 %}
|
|
24
|
+
<div class="category-mosaic__grid">
|
|
25
|
+
{% for tile in section_data.tiles %}
|
|
26
|
+
<a
|
|
27
|
+
class="category-mosaic__tile"
|
|
28
|
+
href="#"
|
|
29
|
+
{% if tile.category_id != blank %}
|
|
30
|
+
data-eo-hs-cta="1"
|
|
31
|
+
data-eo-hs-cta-entity="categories"
|
|
32
|
+
data-eo-hs-cta-id="{{ tile.category_id }}"
|
|
33
|
+
{% endif %}
|
|
34
|
+
>
|
|
35
|
+
<div class="category-mosaic__visual">
|
|
36
|
+
{% if tile.image != blank %}
|
|
37
|
+
<img
|
|
38
|
+
class="category-mosaic__img"
|
|
39
|
+
src="{{ tile.image }}"
|
|
40
|
+
alt="{{ tile.label }}"
|
|
41
|
+
loading="lazy"
|
|
42
|
+
width="640"
|
|
43
|
+
height="800"
|
|
44
|
+
/>
|
|
45
|
+
{% else %}
|
|
46
|
+
<div class="category-mosaic__img-fallback" aria-hidden="true"></div>
|
|
47
|
+
{% endif %}
|
|
48
|
+
<div class="category-mosaic__shade" aria-hidden="true"></div>
|
|
49
|
+
</div>
|
|
50
|
+
<div class="category-mosaic__meta">
|
|
51
|
+
{% if tile.label != blank %}
|
|
52
|
+
<span class="category-mosaic__label">{{ tile.label }}</span>
|
|
53
|
+
{% endif %}
|
|
54
|
+
{% if tile.tagline != blank %}
|
|
55
|
+
<span class="category-mosaic__tagline">{{ tile.tagline }}</span>
|
|
56
|
+
{% endif %}
|
|
57
|
+
</div>
|
|
58
|
+
</a>
|
|
20
59
|
{% endfor %}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
{% endif %}
|
|
24
|
-
</div>
|
|
60
|
+
</div>
|
|
61
|
+
{% endif %}
|
|
25
62
|
</section>
|
|
26
63
|
|
|
27
64
|
<style>
|
|
28
65
|
.category-mosaic {
|
|
29
66
|
padding: clamp(2.5rem, 5vw, 4rem) 1.25rem 3rem;
|
|
30
|
-
background: #fff;
|
|
67
|
+
background: var(--mosaic-section-bg, #fff);
|
|
31
68
|
color: #141218;
|
|
32
69
|
}
|
|
33
70
|
.category-mosaic--tight .category-mosaic__grid {
|
|
@@ -41,14 +78,16 @@
|
|
|
41
78
|
.category-mosaic__title {
|
|
42
79
|
margin: 0 0 0.5rem;
|
|
43
80
|
font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
|
|
44
|
-
font-weight: 500;
|
|
45
|
-
font-size: clamp(1.
|
|
81
|
+
font-weight: var(--mosaic-head-title-weight, 500);
|
|
82
|
+
font-size: clamp(1.25rem, 3vw, var(--mosaic-head-title-size, 38px));
|
|
83
|
+
color: var(--mosaic-head-title-color, #141218);
|
|
46
84
|
}
|
|
47
85
|
.category-mosaic__subtitle {
|
|
48
86
|
margin: 0;
|
|
49
|
-
font-size:
|
|
87
|
+
font-size: var(--mosaic-head-subtitle-size, 16px);
|
|
50
88
|
line-height: 1.6;
|
|
51
|
-
|
|
89
|
+
font-weight: var(--mosaic-head-subtitle-weight, 400);
|
|
90
|
+
color: var(--mosaic-head-subtitle-color, #5c5852);
|
|
52
91
|
}
|
|
53
92
|
.category-mosaic__grid {
|
|
54
93
|
max-width: 1200px;
|
|
@@ -57,9 +96,6 @@
|
|
|
57
96
|
grid-template-columns: repeat(var(--mosaic-cols, 3), minmax(0, 1fr));
|
|
58
97
|
gap: 1.25rem;
|
|
59
98
|
}
|
|
60
|
-
.category-mosaic__grid.eo-hs-loading {
|
|
61
|
-
opacity: 0.85;
|
|
62
|
-
}
|
|
63
99
|
@media (max-width: 899px) {
|
|
64
100
|
.category-mosaic__grid {
|
|
65
101
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -70,26 +106,7 @@
|
|
|
70
106
|
grid-template-columns: 1fr;
|
|
71
107
|
}
|
|
72
108
|
}
|
|
73
|
-
.category-
|
|
74
|
-
aspect-ratio: 3 / 4;
|
|
75
|
-
border-radius: 6px;
|
|
76
|
-
background: linear-gradient(110deg, #ece8e2 8%, #f5f2ee 18%, #ece8e2 33%);
|
|
77
|
-
background-size: 200% 100%;
|
|
78
|
-
animation: category-mosaic-shimmer 1.2s ease-in-out infinite;
|
|
79
|
-
}
|
|
80
|
-
.category-mosaic__placeholder {
|
|
81
|
-
grid-column: 1 / -1;
|
|
82
|
-
margin: 0;
|
|
83
|
-
padding: 1.25rem;
|
|
84
|
-
text-align: center;
|
|
85
|
-
color: #7a7368;
|
|
86
|
-
font-size: 0.9rem;
|
|
87
|
-
}
|
|
88
|
-
.category-mosaic.eo-hs--empty .category-mosaic__grid {
|
|
89
|
-
display: flex;
|
|
90
|
-
justify-content: center;
|
|
91
|
-
}
|
|
92
|
-
.category-mosaic .eo-hs-card--category {
|
|
109
|
+
.category-mosaic__tile {
|
|
93
110
|
position: relative;
|
|
94
111
|
display: block;
|
|
95
112
|
text-decoration: none;
|
|
@@ -99,57 +116,55 @@
|
|
|
99
116
|
background: #ece8e1;
|
|
100
117
|
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
|
101
118
|
}
|
|
102
|
-
.category-
|
|
119
|
+
.category-mosaic__tile:hover {
|
|
103
120
|
transform: translateY(-4px);
|
|
104
121
|
box-shadow: 0 22px 50px rgba(20, 18, 24, 0.18);
|
|
105
122
|
}
|
|
106
|
-
.category-
|
|
107
|
-
|
|
108
|
-
aspect-ratio:
|
|
109
|
-
background: #ece8e2;
|
|
123
|
+
.category-mosaic__visual {
|
|
124
|
+
position: relative;
|
|
125
|
+
aspect-ratio: 1 / 1;
|
|
110
126
|
overflow: hidden;
|
|
111
127
|
}
|
|
112
|
-
.category-
|
|
113
|
-
|
|
114
|
-
}
|
|
115
|
-
.category-mosaic .eo-hs-card--category .eo-hs-card__media img {
|
|
128
|
+
.category-mosaic__img,
|
|
129
|
+
.category-mosaic__img-fallback {
|
|
116
130
|
width: 100%;
|
|
117
131
|
height: 100%;
|
|
118
132
|
object-fit: cover;
|
|
119
133
|
display: block;
|
|
120
134
|
transition: transform 0.45s ease;
|
|
121
135
|
}
|
|
122
|
-
.category-
|
|
136
|
+
.category-mosaic__img-fallback {
|
|
137
|
+
background: linear-gradient(160deg, #d4cec4, #a39a8f);
|
|
138
|
+
}
|
|
139
|
+
.category-mosaic__tile:hover .category-mosaic__img {
|
|
123
140
|
transform: scale(1.04);
|
|
124
141
|
}
|
|
125
|
-
.category-
|
|
142
|
+
.category-mosaic__shade {
|
|
143
|
+
position: absolute;
|
|
144
|
+
inset: 0;
|
|
145
|
+
background: linear-gradient(to top, rgba(12, 10, 14, 0.72), transparent 55%);
|
|
146
|
+
pointer-events: none;
|
|
147
|
+
}
|
|
148
|
+
.category-mosaic__meta {
|
|
126
149
|
position: absolute;
|
|
127
150
|
left: 0;
|
|
128
151
|
right: 0;
|
|
129
152
|
bottom: 0;
|
|
130
153
|
padding: 1.25rem 1.1rem 1.1rem;
|
|
131
|
-
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: column;
|
|
156
|
+
gap: 0.2rem;
|
|
157
|
+
color: #fff;
|
|
132
158
|
}
|
|
133
|
-
.category-
|
|
159
|
+
.category-mosaic__label {
|
|
134
160
|
font-size: 1.05rem;
|
|
135
161
|
font-weight: 600;
|
|
136
162
|
letter-spacing: 0.02em;
|
|
137
|
-
color: #fff;
|
|
138
|
-
}
|
|
139
|
-
.category-mosaic .eo-hs-error {
|
|
140
|
-
grid-column: 1 / -1;
|
|
141
|
-
margin: 0;
|
|
142
|
-
padding: 1rem;
|
|
143
|
-
text-align: center;
|
|
144
|
-
font-size: 0.88rem;
|
|
145
|
-
color: #8b3225;
|
|
146
163
|
}
|
|
147
|
-
|
|
148
|
-
0
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
background-position: -100% 0;
|
|
153
|
-
}
|
|
164
|
+
.category-mosaic__tagline {
|
|
165
|
+
font-size: 0.82rem;
|
|
166
|
+
opacity: 0.88;
|
|
167
|
+
letter-spacing: 0.04em;
|
|
168
|
+
text-transform: uppercase;
|
|
154
169
|
}
|
|
155
170
|
</style>
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
{
|
|
2
|
+
"icon": "https://files.easy-orders.net/1778106603822306532.png",
|
|
3
|
+
"label": "Hero (Full width)",
|
|
4
|
+
"section_schema": [
|
|
5
|
+
{
|
|
6
|
+
"name": "image_desktop",
|
|
7
|
+
"type": "image",
|
|
8
|
+
"default": "",
|
|
9
|
+
"description": "صورة الخلفية (ديسكتوب)"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "image_mobile",
|
|
13
|
+
"type": "image",
|
|
14
|
+
"default": "",
|
|
15
|
+
"description": "صورة الخلفية (موبايل)"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "overlay_strength",
|
|
19
|
+
"type": "number",
|
|
20
|
+
"default": 42,
|
|
21
|
+
"description": "قوة التعتيم (0 - 100)"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "height_dt",
|
|
25
|
+
"type": "number",
|
|
26
|
+
"default": 70,
|
|
27
|
+
"description": "طول القسم للديسكتوب (svh) max:100 svh"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "height_mb",
|
|
31
|
+
"type": "number",
|
|
32
|
+
"default": 70,
|
|
33
|
+
"description": "طول القسم للموبايل (svh) max:100 svh"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "alignment",
|
|
37
|
+
"type": "select",
|
|
38
|
+
"default": "center",
|
|
39
|
+
"description": "محاذاة المحتوى",
|
|
40
|
+
"options": [
|
|
41
|
+
{ "label": "في المنتصف", "value": "center" },
|
|
42
|
+
{ "label": "لليسار", "value": "left" },
|
|
43
|
+
{ "label": "لليمين", "value": "right" }
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "gap_dt",
|
|
48
|
+
"type": "number",
|
|
49
|
+
"default": 24,
|
|
50
|
+
"description": "المسافة بين العناصر - ديسكتوب (px)"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "gap_mb",
|
|
54
|
+
"type": "number",
|
|
55
|
+
"default": 16,
|
|
56
|
+
"description": "المسافة بين العناصر - موبايل (px)"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "kicker",
|
|
60
|
+
"type": "string",
|
|
61
|
+
"default": "New season",
|
|
62
|
+
"description": "الكلمة الصغيرة فوق العنوان"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "accent_color",
|
|
66
|
+
"type": "color",
|
|
67
|
+
"default": "#C9A962",
|
|
68
|
+
"description": "اللون المميز (للكلمة الصغيرة وخلفية الزرار)"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "headline",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"default": "The spring edit",
|
|
74
|
+
"description": "العنوان الرئيسي"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "title_color",
|
|
78
|
+
"type": "color",
|
|
79
|
+
"default": "#FAF7F2",
|
|
80
|
+
"description": "لون العنوان"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "title_size_dt",
|
|
84
|
+
"type": "number",
|
|
85
|
+
"default": 60,
|
|
86
|
+
"description": "حجم العنوان - ديسكتوب (px)"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "title_size_mb",
|
|
90
|
+
"type": "number",
|
|
91
|
+
"default": 36,
|
|
92
|
+
"description": "حجم العنوان - موبايل (px)"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"name": "subheadline",
|
|
96
|
+
"type": "string",
|
|
97
|
+
"default": "Silhouettes, textures, and tones curated for everyday luxury.",
|
|
98
|
+
"description": "الوصف"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "desc_color",
|
|
102
|
+
"type": "color",
|
|
103
|
+
"default": "#FAF7F2",
|
|
104
|
+
"description": "لون الوصف"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "desc_size_dt",
|
|
108
|
+
"type": "number",
|
|
109
|
+
"default": 18,
|
|
110
|
+
"description": "حجم الوصف - ديسكتوب (px)"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "desc_size_mb",
|
|
114
|
+
"type": "number",
|
|
115
|
+
"default": 15,
|
|
116
|
+
"description": "حجم الوصف - موبايل (px)"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"name": "primary_label",
|
|
120
|
+
"type": "string",
|
|
121
|
+
"default": "Shop collection",
|
|
122
|
+
"description": "نص الزرار"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "cta_link_type",
|
|
126
|
+
"type": "select",
|
|
127
|
+
"default": "category",
|
|
128
|
+
"description": "نوع لينك الزرار مهم اختار اولا",
|
|
129
|
+
"options": [
|
|
130
|
+
{ "label": "قسم (Category)", "value": "category" },
|
|
131
|
+
{ "label": "منتج (Product)", "value": "product" }
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "cta_category_id",
|
|
136
|
+
"type": "category_single_select",
|
|
137
|
+
"description": "اختيار القسم (لو نوع اللينك = قسم)"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"name": "cta_product_id",
|
|
141
|
+
"type": "product_single_select",
|
|
142
|
+
"description": "اختيار المنتج (لو نوع اللينك = منتج)"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "btn_text_color",
|
|
146
|
+
"type": "color",
|
|
147
|
+
"default": "#141218",
|
|
148
|
+
"description": "لون نص الزرار"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"name": "btn_size_dt",
|
|
152
|
+
"type": "number",
|
|
153
|
+
"default": 14,
|
|
154
|
+
"description": "حجم خط الزرار - ديسكتوب (px)"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "btn_size_mb",
|
|
158
|
+
"type": "number",
|
|
159
|
+
"default": 13,
|
|
160
|
+
"description": "حجم خط الزرار - موبايل (px)"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"name": "btn_show_border",
|
|
164
|
+
"type": "select",
|
|
165
|
+
"default": "none",
|
|
166
|
+
"description": "إظهار حدود للزرار؟",
|
|
167
|
+
"options": [
|
|
168
|
+
{ "label": "بدون حدود (نص فقط)", "value": "none" },
|
|
169
|
+
{ "label": "بحدود (Solid)", "value": "solid" }
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "btn_radius",
|
|
174
|
+
"type": "number",
|
|
175
|
+
"default": 99,
|
|
176
|
+
"description": "استدارة حواف الزرار (px)"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "enable_animation",
|
|
180
|
+
"type": "boolean",
|
|
181
|
+
"default": true,
|
|
182
|
+
"description": "تشغيل أنيميشن السكشن"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "animation_style",
|
|
186
|
+
"type": "select",
|
|
187
|
+
"default": "fade-up",
|
|
188
|
+
"description": "شكل الأنيميشن",
|
|
189
|
+
"options": [
|
|
190
|
+
{ "label": "Fade Up", "value": "fade-up" },
|
|
191
|
+
{ "label": "Zoom In", "value": "zoom-in" },
|
|
192
|
+
{ "label": "Blur Reveal", "value": "blur-reveal" },
|
|
193
|
+
{ "label": "Slide Cascade", "value": "slide-cascade" },
|
|
194
|
+
{ "label": "Fade Right", "value": "fade-right" },
|
|
195
|
+
{ "label": "Flip Up", "value": "flip-up" }
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
<section
|
|
2
|
+
class="rnw-hero rnw-hero--{{ section_data.alignment | default: 'center' }}"
|
|
3
|
+
{% if section_data.enable_animation != false %}data-section-anim="{{ section_data.animation_style | default: 'fade-up' }}"{% endif %}
|
|
4
|
+
style="
|
|
5
|
+
--rnw-h-dt: {{ section_data.height_dt | default: 70 }}svh;
|
|
6
|
+
--rnw-h-mb: {{ section_data.height_mb | default: 70 }}svh;
|
|
7
|
+
--rnw-gap-dt: {{ section_data.gap_dt | default: 24 }}px;
|
|
8
|
+
--rnw-gap-mb: {{ section_data.gap_mb | default: 16 }}px;
|
|
9
|
+
--rnw-accent: {{ section_data.accent_color | default: '#C9A962' }};
|
|
10
|
+
--rnw-overlay: {{ section_data.overlay_strength | default: 42 }};
|
|
11
|
+
|
|
12
|
+
--rnw-t-color: {{ section_data.title_color | default: '#FAF7F2' }};
|
|
13
|
+
--rnw-t-dt: {{ section_data.title_size_dt | default: 60 }}px;
|
|
14
|
+
--rnw-t-mb: {{ section_data.title_size_mb | default: 36 }}px;
|
|
15
|
+
|
|
16
|
+
--rnw-d-color: {{ section_data.desc_color | default: '#FAF7F2' }};
|
|
17
|
+
--rnw-d-dt: {{ section_data.desc_size_dt | default: 18 }}px;
|
|
18
|
+
--rnw-d-mb: {{ section_data.desc_size_mb | default: 15 }}px;
|
|
19
|
+
|
|
20
|
+
--rnw-b-txt: {{ section_data.btn_text_color | default: '#141218' }};
|
|
21
|
+
--rnw-b-dt: {{ section_data.btn_size_dt | default: 14 }}px;
|
|
22
|
+
--rnw-b-mb: {{ section_data.btn_size_mb | default: 13 }}px;
|
|
23
|
+
--rnw-b-border: {{ section_data.btn_show_border | default: 'none' }};
|
|
24
|
+
--rnw-b-rad: {{ section_data.btn_radius | default: 99 }}px;
|
|
25
|
+
"
|
|
26
|
+
>
|
|
27
|
+
<div class="rnw-hero__bg">
|
|
28
|
+
{% assign img_dt = section_data.image_desktop %}
|
|
29
|
+
{% assign img_mb = section_data.image_mobile | default: img_dt %}
|
|
30
|
+
{% if img_dt != blank %}
|
|
31
|
+
<picture>
|
|
32
|
+
<source media="(max-width: 768px)" srcset="{{ img_mb }}">
|
|
33
|
+
<img src="{{ img_dt }}" alt="{{ section_data.headline }}" loading="lazy">
|
|
34
|
+
</picture>
|
|
35
|
+
{% else %}
|
|
36
|
+
<div class="rnw-placeholder"></div>
|
|
37
|
+
{% endif %}
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div class="rnw-hero__overlay" aria-hidden="true"></div>
|
|
41
|
+
|
|
42
|
+
<div class="rnw-hero__inner">
|
|
43
|
+
{% if section_data.kicker != blank %}
|
|
44
|
+
<p class="rnw-hero__kicker ab-anim-el">{{ section_data.kicker }}</p>
|
|
45
|
+
{% endif %}
|
|
46
|
+
|
|
47
|
+
{% if section_data.headline != blank %}
|
|
48
|
+
<h1 class="rnw-hero__title ab-anim-el">{{ section_data.headline }}</h1>
|
|
49
|
+
{% endif %}
|
|
50
|
+
|
|
51
|
+
{% if section_data.subheadline != blank %}
|
|
52
|
+
<p class="rnw-hero__lede ab-anim-el">{{ section_data.subheadline }}</p>
|
|
53
|
+
{% endif %}
|
|
54
|
+
|
|
55
|
+
<div class="rnw-hero__actions ab-anim-el">
|
|
56
|
+
{% if section_data.primary_label != blank %}
|
|
57
|
+
{% assign cta_type = section_data.cta_link_type | default: 'category' %}
|
|
58
|
+
{% if cta_type == 'category' and section_data.cta_category_id != blank %}
|
|
59
|
+
<a class="rnw-btn" href="#"
|
|
60
|
+
data-eo-hs-cta="1"
|
|
61
|
+
data-eo-hs-cta-entity="categories"
|
|
62
|
+
data-eo-hs-cta-id="{{ section_data.cta_category_id }}"
|
|
63
|
+
>
|
|
64
|
+
{{ section_data.primary_label }}
|
|
65
|
+
</a>
|
|
66
|
+
{% elsif cta_type == 'product' and section_data.cta_product_id != blank %}
|
|
67
|
+
<a class="rnw-btn" href="#"
|
|
68
|
+
data-eo-hs-cta="1"
|
|
69
|
+
data-eo-hs-cta-entity="products"
|
|
70
|
+
data-eo-hs-cta-id="{{ section_data.cta_product_id }}"
|
|
71
|
+
>
|
|
72
|
+
{{ section_data.primary_label }}
|
|
73
|
+
</a>
|
|
74
|
+
{% else %}
|
|
75
|
+
<a class="rnw-btn" href="/products">
|
|
76
|
+
{{ section_data.primary_label }}
|
|
77
|
+
</a>
|
|
78
|
+
{% endif %}
|
|
79
|
+
{% endif %}
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</section>
|
|
83
|
+
|
|
84
|
+
<style>
|
|
85
|
+
.rnw-hero {
|
|
86
|
+
position: relative;
|
|
87
|
+
isolation: isolate;
|
|
88
|
+
min-height: var(--rnw-h-mb);
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center; /* الوسط كوضع افتراضي */
|
|
92
|
+
padding: 3rem 1.5rem;
|
|
93
|
+
background-color: #141218;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
margin-left: -10px ;
|
|
96
|
+
margin-right: -10px ;
|
|
97
|
+
max-width: none ;
|
|
98
|
+
margin-bottom: 15px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/* التحكم في محاذاة الحاوية الداخلية بالنسبة للقسم الكبير */
|
|
102
|
+
.rnw-hero--left { justify-content: flex-start; }
|
|
103
|
+
.rnw-hero--right { justify-content: flex-end; }
|
|
104
|
+
|
|
105
|
+
.rnw-hero__bg { position: absolute; inset: 0; z-index: -2; }
|
|
106
|
+
.rnw-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
|
|
107
|
+
.rnw-placeholder { width: 100%; height: 100%; background-color: #141218; }
|
|
108
|
+
|
|
109
|
+
.rnw-hero__overlay {
|
|
110
|
+
position: absolute;
|
|
111
|
+
inset: 0;
|
|
112
|
+
z-index: -1;
|
|
113
|
+
background: linear-gradient(
|
|
114
|
+
105deg,
|
|
115
|
+
rgba(8, 6, 10, calc((var(--rnw-overlay) / 100) + 0.12)) 0%,
|
|
116
|
+
rgba(8, 6, 10, calc(var(--rnw-overlay) / 100)) 45%,
|
|
117
|
+
rgba(8, 6, 10, calc((var(--rnw-overlay) / 100) * 0.55)) 100%
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.rnw-hero__inner {
|
|
122
|
+
position: relative;
|
|
123
|
+
z-index: 1;
|
|
124
|
+
max-width: 42rem;
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
gap: var(--rnw-gap-mb);
|
|
128
|
+
/* السحر هنا: المحاذاة الداخلية للعناصر */
|
|
129
|
+
align-items: center;
|
|
130
|
+
text-align: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* تعديل المحاذاة الداخلية بناءً على اختيار اليوزر */
|
|
134
|
+
.rnw-hero--left .rnw-hero__inner { align-items: flex-start; text-align: left; }
|
|
135
|
+
.rnw-hero--right .rnw-hero__inner { align-items: flex-end; text-align: right; }
|
|
136
|
+
|
|
137
|
+
.rnw-hero__kicker {
|
|
138
|
+
margin: 0;
|
|
139
|
+
font-size: 0.75rem;
|
|
140
|
+
letter-spacing: 0.35em;
|
|
141
|
+
text-transform: uppercase;
|
|
142
|
+
color: var(--rnw-accent);
|
|
143
|
+
font-weight: 600;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.rnw-hero__title {
|
|
147
|
+
margin: 0;
|
|
148
|
+
color: var(--rnw-t-color);
|
|
149
|
+
font-family: Newsreader, serif !important;
|
|
150
|
+
font-weight: 300;
|
|
151
|
+
font-size: var(--rnw-t-mb);
|
|
152
|
+
line-height: 1.05;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.rnw-hero__lede {
|
|
156
|
+
margin: 0;
|
|
157
|
+
color: var(--rnw-d-color);
|
|
158
|
+
font-size: var(--rnw-d-mb);
|
|
159
|
+
line-height: 1.6;
|
|
160
|
+
opacity: 0.95;
|
|
161
|
+
font-family: Newsreader, serif !important;
|
|
162
|
+
font-weight: 200;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.rnw-hero__actions {
|
|
166
|
+
display: flex;
|
|
167
|
+
width: 100%;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
margin-top: 0.5rem;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/* في حالة اختيار المحاذاة لليسار */
|
|
173
|
+
.rnw-hero--left .rnw-hero__actions {
|
|
174
|
+
justify-content: flex-start;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* في حالة اختيار المحاذاة لليمين */
|
|
178
|
+
.rnw-hero--right .rnw-hero__actions {
|
|
179
|
+
justify-content: flex-end;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.rnw-btn {
|
|
183
|
+
display: inline-flex;
|
|
184
|
+
align-items: center;
|
|
185
|
+
justify-content: center;
|
|
186
|
+
text-decoration: none;
|
|
187
|
+
text-transform: uppercase;
|
|
188
|
+
font-weight: 600;
|
|
189
|
+
letter-spacing: 0.1em;
|
|
190
|
+
transition: all 0.3s ease;
|
|
191
|
+
|
|
192
|
+
background-color: var(--rnw-accent);
|
|
193
|
+
color: var(--rnw-b-txt);
|
|
194
|
+
font-size: var(--rnw-b-mb);
|
|
195
|
+
border-radius: var(--rnw-b-rad);
|
|
196
|
+
|
|
197
|
+
border: 1px var(--rnw-b-border) var(--rnw-b-txt);
|
|
198
|
+
padding: 12px 30px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* وضع "بدون حدود" للزرار */
|
|
202
|
+
.rnw-hero[style*="--rnw-b-border: none"] .rnw-btn {
|
|
203
|
+
background-color: transparent;
|
|
204
|
+
color: var(--rnw-accent);
|
|
205
|
+
padding: 5px 0;
|
|
206
|
+
border-radius: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.rnw-btn:hover { opacity: 0.8; transform: translateY(-2px); }
|
|
210
|
+
|
|
211
|
+
@media (min-width: 768px) {
|
|
212
|
+
.rnw-hero { min-height: var(--rnw-h-dt); }
|
|
213
|
+
.rnw-hero__inner { gap: var(--rnw-gap-dt); }
|
|
214
|
+
.rnw-hero__title { font-size: var(--rnw-t-dt); }
|
|
215
|
+
.rnw-hero__lede { font-size: var(--rnw-d-dt); }
|
|
216
|
+
.rnw-btn { font-size: var(--rnw-b-dt); }
|
|
217
|
+
|
|
218
|
+
}
|
|
219
|
+
</style>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"icon": "https://
|
|
2
|
+
"icon": "https://files.easy-orders.net/1778107613842485243.png",
|
|
3
3
|
"label": "Editorial feature",
|
|
4
4
|
"section_schema": [
|
|
5
5
|
{
|
|
@@ -57,11 +57,37 @@
|
|
|
57
57
|
{ "label": "Dark editorial", "value": "dark" }
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
+
{
|
|
61
|
+
"name": "section_background",
|
|
62
|
+
"type": "color",
|
|
63
|
+
"default": "",
|
|
64
|
+
"description": "Section background override (leave empty to use mood preset)"
|
|
65
|
+
},
|
|
60
66
|
{
|
|
61
67
|
"name": "accent_color",
|
|
62
68
|
"type": "color",
|
|
63
69
|
"default": "#8B7355",
|
|
64
70
|
"description": "Eyebrow and link accent"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "enable_animation",
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"default": true,
|
|
76
|
+
"description": "Enable section animation"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "animation_style",
|
|
80
|
+
"type": "select",
|
|
81
|
+
"default": "fade-up",
|
|
82
|
+
"description": "Animation style",
|
|
83
|
+
"options": [
|
|
84
|
+
{ "label": "Fade Up", "value": "fade-up" },
|
|
85
|
+
{ "label": "Zoom In", "value": "zoom-in" },
|
|
86
|
+
{ "label": "Blur Reveal", "value": "blur-reveal" },
|
|
87
|
+
{ "label": "Slide Cascade", "value": "slide-cascade" },
|
|
88
|
+
{ "label": "Fade Right", "value": "fade-right" },
|
|
89
|
+
{ "label": "Flip Up", "value": "flip-up" }
|
|
90
|
+
]
|
|
65
91
|
}
|
|
66
92
|
]
|
|
67
93
|
}
|