easyorders 0.1.16 → 0.1.18

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.
@@ -1,189 +1,189 @@
1
- {% assign runway_mh = section_data.min_height_vh %}
2
- {% if runway_mh == blank or runway_mh == nil %}
3
- {% assign runway_mh = 72 %}
4
- {% if section_data.min_height == 'compact' %}
5
- {% assign runway_mh = 52 %}
6
- {% elsif section_data.min_height == 'screen' %}
7
- {% assign runway_mh = 92 %}
8
- {% elsif section_data.min_height == 'tall' %}
9
- {% assign runway_mh = 72 %}
10
- {% endif %}
11
- {% endif %}
12
- {% assign runway_mh = runway_mh | plus: 0 %}
13
- {% if runway_mh < 20 %}{% assign runway_mh = 20 %}{% endif %}
14
- {% if runway_mh > 100 %}{% assign runway_mh = 100 %}{% endif %}
15
- <section
16
- class="eo-home-section runway-hero runway-hero--{{ section_data.alignment | default: 'center' }}"
17
- {% if section_data.enable_animation != false %}data-section-anim="{{ section_data.animation_style | default: 'fade-up' }}"{% endif %}
18
- style="
19
- --runway-text: {{ section_data.text_color | default: '#FAF7F2' }};
20
- --runway-accent: {{ section_data.accent_color | default: '#C9A962' }};
21
- --runway-overlay: {{ section_data.overlay_strength | default: 42 | divided_by: 100.0 }};
22
- --runway-min-h: {{ runway_mh }}vh;
23
- {% if section_data.image != blank %}background-image: url('{{ section_data.image }}');{% endif %}
24
- "
25
- >
26
- <div class="runway-hero__overlay" aria-hidden="true"></div>
27
- <div class="runway-hero__inner">
28
- {% if section_data.kicker != blank %}
29
- <p class="runway-hero__kicker ab-anim-el">{{ section_data.kicker }}</p>
30
- {% endif %}
31
- {% if section_data.headline != blank %}
32
- <h1 class="runway-hero__title ab-anim-el">{{ section_data.headline }}</h1>
33
- {% endif %}
34
- {% if section_data.subheadline != blank %}
35
- <p class="runway-hero__lede ab-anim-el">{{ section_data.subheadline }}</p>
36
- {% endif %}
37
- <div class="runway-hero__actions ab-anim-el">
38
- {% if section_data.primary_label != blank %}
39
- {% assign p_type = section_data.primary_link_type | default: 'category' %}
40
- {% if p_type == 'category' and section_data.primary_category_id != blank %}
41
- <a class="runway-hero__btn runway-hero__btn--primary" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="categories" data-eo-hs-cta-id="{{ section_data.primary_category_id }}">
42
- {{ section_data.primary_label }}
43
- </a>
44
- {% elsif p_type == 'product' and section_data.primary_product_id != blank %}
45
- <a class="runway-hero__btn runway-hero__btn--primary" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="products" data-eo-hs-cta-id="{{ section_data.primary_product_id }}">
46
- {{ section_data.primary_label }}
47
- </a>
48
- {% elsif p_type == 'page' and section_data.primary_page_id != blank %}
49
- <a class="runway-hero__btn runway-hero__btn--primary" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="pages" data-eo-hs-cta-id="{{ section_data.primary_page_id }}">
50
- {{ section_data.primary_label }}
51
- </a>
52
- {% else %}
53
- <a class="runway-hero__btn runway-hero__btn--primary" href="/products">
54
- {{ section_data.primary_label }}
55
- </a>
56
- {% endif %}
57
- {% endif %}
58
-
59
- {% if section_data.secondary_label != blank %}
60
- {% assign s_type = section_data.secondary_link_type | default: 'page' %}
61
- {% if s_type == 'category' and section_data.secondary_category_id != blank %}
62
- <a class="runway-hero__btn runway-hero__btn--ghost" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="categories" data-eo-hs-cta-id="{{ section_data.secondary_category_id }}">
63
- {{ section_data.secondary_label }}
64
- </a>
65
- {% elsif s_type == 'product' and section_data.secondary_product_id != blank %}
66
- <a class="runway-hero__btn runway-hero__btn--ghost" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="products" data-eo-hs-cta-id="{{ section_data.secondary_product_id }}">
67
- {{ section_data.secondary_label }}
68
- </a>
69
- {% elsif s_type == 'page' and section_data.secondary_page_id != blank %}
70
- <a class="runway-hero__btn runway-hero__btn--ghost" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="pages" data-eo-hs-cta-id="{{ section_data.secondary_page_id }}">
71
- {{ section_data.secondary_label }}
72
- </a>
73
- {% else %}
74
- <a class="runway-hero__btn runway-hero__btn--ghost" href="#">
75
- {{ section_data.secondary_label }}
76
- </a>
77
- {% endif %}
78
- {% endif %}
79
- </div>
80
- </div>
81
- </section>
82
-
83
- <style>
84
- .runway-hero {
85
- position: relative;
86
- isolation: isolate;
87
- min-height: var(--runway-min-h, 72vh);
88
- display: flex;
89
- align-items: center;
90
- justify-content: center;
91
- padding: clamp(2rem, 6vw, 5rem) 1.5rem;
92
- background-color: #141218;
93
- background-size: cover;
94
- background-position: center;
95
- color: var(--runway-text, #faf7f2);
96
- text-align: center;margin-bottom: 15px;
97
- }
98
- .runway-hero--left {
99
- text-align: left;
100
- justify-content: flex-start;
101
- }
102
- .runway-hero__overlay {
103
- position: absolute;
104
- inset: 0;
105
- z-index: 0;
106
- background: linear-gradient(
107
- 105deg,
108
- rgba(8, 6, 10, calc(var(--runway-overlay, 0.45) + 0.12)) 0%,
109
- rgba(8, 6, 10, var(--runway-overlay, 0.45)) 45%,
110
- rgba(8, 6, 10, calc(var(--runway-overlay, 0.45) * 0.55)) 100%
111
- );
112
- }
113
- .runway-hero__inner {
114
- position: relative;
115
- z-index: 1;
116
- max-width: 40rem;
117
- display: flex;
118
- flex-direction: column;
119
- gap: 1rem;
120
- }
121
- .runway-hero--left .runway-hero__inner {
122
- margin-right: auto;
123
- }
124
- .runway-hero__kicker {
125
- margin: 0;
126
- font-size: 0.75rem;
127
- letter-spacing: 0.35em;
128
- text-transform: uppercase;
129
- color: var(--runway-accent, #c9a962);
130
- font-weight: 600;
131
- }
132
- .runway-hero__title {
133
- margin: 0;
134
- font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
135
- font-weight: 500;
136
- font-size: clamp(2.25rem, 6vw, 3.75rem);
137
- line-height: 1.05;
138
- }
139
- .runway-hero__lede {
140
- margin: 0;
141
- font-size: clamp(1rem, 2.2vw, 1.2rem);
142
- line-height: 1.65;
143
- opacity: 0.92;
144
- max-width: 36rem;
145
- }
146
- .runway-hero--left .runway-hero__lede {
147
- margin-left: 0;
148
- }
149
- .runway-hero__actions {
150
- display: flex;
151
- flex-wrap: wrap;
152
- gap: 0.75rem;
153
- margin-top: 0.5rem;
154
- justify-content: center;
155
- }
156
- .runway-hero--left .runway-hero__actions {
157
- justify-content: flex-start;
158
- }
159
- .runway-hero__btn {
160
- display: inline-flex;
161
- align-items: center;
162
- justify-content: center;
163
- padding: 0.85rem 1.75rem;
164
- font-size: 0.8rem;
165
- font-weight: 600;
166
- letter-spacing: 0.12em;
167
- text-transform: uppercase;
168
- text-decoration: none;
169
- border-radius: 999px;
170
- transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
171
- }
172
- .runway-hero__btn--primary {
173
- background: var(--runway-accent, #c9a962);
174
- color: #141218;
175
- box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
176
- }
177
- .runway-hero__btn--primary:hover {
178
- transform: translateY(-1px);
179
- box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
180
- }
181
- .runway-hero__btn--ghost {
182
- border: 1px solid rgba(255, 255, 255, 0.45);
183
- color: inherit;
184
- background: rgba(255, 255, 255, 0.04);
185
- }
186
- .runway-hero__btn--ghost:hover {
187
- background: rgba(255, 255, 255, 0.1);
188
- }
189
- </style>
1
+ {% assign runway_mh = section_data.min_height_vh %}
2
+ {% if runway_mh == blank or runway_mh == nil %}
3
+ {% assign runway_mh = 72 %}
4
+ {% if section_data.min_height == 'compact' %}
5
+ {% assign runway_mh = 52 %}
6
+ {% elsif section_data.min_height == 'screen' %}
7
+ {% assign runway_mh = 92 %}
8
+ {% elsif section_data.min_height == 'tall' %}
9
+ {% assign runway_mh = 72 %}
10
+ {% endif %}
11
+ {% endif %}
12
+ {% assign runway_mh = runway_mh | plus: 0 %}
13
+ {% if runway_mh < 20 %}{% assign runway_mh = 20 %}{% endif %}
14
+ {% if runway_mh > 100 %}{% assign runway_mh = 100 %}{% endif %}
15
+ <section
16
+ class="eo-home-section runway-hero runway-hero--{{ section_data.alignment | default: 'center' }}"
17
+ {% if section_data.enable_animation != false %}data-section-anim="{{ section_data.animation_style | default: 'fade-up' }}"{% endif %}
18
+ style="
19
+ --runway-text: {{ section_data.text_color | default: '#FAF7F2' }};
20
+ --runway-accent: {{ section_data.accent_color | default: '#C9A962' }};
21
+ --runway-overlay: {{ section_data.overlay_strength | default: 42 | divided_by: 100.0 }};
22
+ --runway-min-h: {{ runway_mh }}vh;
23
+ {% if section_data.image != blank %}background-image: url('{{ section_data.image }}');{% endif %}
24
+ "
25
+ >
26
+ <div class="runway-hero__overlay" aria-hidden="true"></div>
27
+ <div class="runway-hero__inner">
28
+ {% if section_data.kicker != blank %}
29
+ <p class="runway-hero__kicker ab-anim-el">{{ section_data.kicker }}</p>
30
+ {% endif %}
31
+ {% if section_data.headline != blank %}
32
+ <h1 class="runway-hero__title ab-anim-el">{{ section_data.headline }}</h1>
33
+ {% endif %}
34
+ {% if section_data.subheadline != blank %}
35
+ <p class="runway-hero__lede ab-anim-el">{{ section_data.subheadline }}</p>
36
+ {% endif %}
37
+ <div class="runway-hero__actions ab-anim-el">
38
+ {% if section_data.primary_label != blank %}
39
+ {% assign p_type = section_data.primary_link_type | default: 'category' %}
40
+ {% if p_type == 'category' and section_data.primary_category_id != blank %}
41
+ <a class="runway-hero__btn runway-hero__btn--primary" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="categories" data-eo-hs-cta-id="{{ section_data.primary_category_id }}">
42
+ {{ section_data.primary_label }}
43
+ </a>
44
+ {% elsif p_type == 'product' and section_data.primary_product_id != blank %}
45
+ <a class="runway-hero__btn runway-hero__btn--primary" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="products" data-eo-hs-cta-id="{{ section_data.primary_product_id }}">
46
+ {{ section_data.primary_label }}
47
+ </a>
48
+ {% elsif p_type == 'page' and section_data.primary_page_id != blank %}
49
+ <a class="runway-hero__btn runway-hero__btn--primary" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="pages" data-eo-hs-cta-id="{{ section_data.primary_page_id }}">
50
+ {{ section_data.primary_label }}
51
+ </a>
52
+ {% else %}
53
+ <a class="runway-hero__btn runway-hero__btn--primary" href="/products">
54
+ {{ section_data.primary_label }}
55
+ </a>
56
+ {% endif %}
57
+ {% endif %}
58
+
59
+ {% if section_data.secondary_label != blank %}
60
+ {% assign s_type = section_data.secondary_link_type | default: 'page' %}
61
+ {% if s_type == 'category' and section_data.secondary_category_id != blank %}
62
+ <a class="runway-hero__btn runway-hero__btn--ghost" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="categories" data-eo-hs-cta-id="{{ section_data.secondary_category_id }}">
63
+ {{ section_data.secondary_label }}
64
+ </a>
65
+ {% elsif s_type == 'product' and section_data.secondary_product_id != blank %}
66
+ <a class="runway-hero__btn runway-hero__btn--ghost" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="products" data-eo-hs-cta-id="{{ section_data.secondary_product_id }}">
67
+ {{ section_data.secondary_label }}
68
+ </a>
69
+ {% elsif s_type == 'page' and section_data.secondary_page_id != blank %}
70
+ <a class="runway-hero__btn runway-hero__btn--ghost" href="#" data-eo-hs-cta="1" data-eo-hs-cta-entity="pages" data-eo-hs-cta-id="{{ section_data.secondary_page_id }}">
71
+ {{ section_data.secondary_label }}
72
+ </a>
73
+ {% else %}
74
+ <a class="runway-hero__btn runway-hero__btn--ghost" href="#">
75
+ {{ section_data.secondary_label }}
76
+ </a>
77
+ {% endif %}
78
+ {% endif %}
79
+ </div>
80
+ </div>
81
+ </section>
82
+
83
+ <style>
84
+ .runway-hero {
85
+ position: relative;
86
+ isolation: isolate;
87
+ min-height: var(--runway-min-h, 72vh);
88
+ display: flex;
89
+ align-items: center;
90
+ justify-content: center;
91
+ padding: clamp(2rem, 6vw, 5rem) 1.5rem;
92
+ background-color: #141218;
93
+ background-size: cover;
94
+ background-position: center;
95
+ color: var(--runway-text, #faf7f2);
96
+ text-align: center;margin-bottom: 15px;
97
+ }
98
+ .runway-hero--left {
99
+ text-align: left;
100
+ justify-content: flex-start;
101
+ }
102
+ .runway-hero__overlay {
103
+ position: absolute;
104
+ inset: 0;
105
+ z-index: 0;
106
+ background: linear-gradient(
107
+ 105deg,
108
+ rgba(8, 6, 10, calc(var(--runway-overlay, 0.45) + 0.12)) 0%,
109
+ rgba(8, 6, 10, var(--runway-overlay, 0.45)) 45%,
110
+ rgba(8, 6, 10, calc(var(--runway-overlay, 0.45) * 0.55)) 100%
111
+ );
112
+ }
113
+ .runway-hero__inner {
114
+ position: relative;
115
+ z-index: 1;
116
+ max-width: 40rem;
117
+ display: flex;
118
+ flex-direction: column;
119
+ gap: 1rem;
120
+ }
121
+ .runway-hero--left .runway-hero__inner {
122
+ margin-right: auto;
123
+ }
124
+ .runway-hero__kicker {
125
+ margin: 0;
126
+ font-size: 0.75rem;
127
+ letter-spacing: 0.35em;
128
+ text-transform: uppercase;
129
+ color: var(--runway-accent, #c9a962);
130
+ font-weight: 600;
131
+ }
132
+ .runway-hero__title {
133
+ margin: 0;
134
+ font-family: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
135
+ font-weight: 500;
136
+ font-size: clamp(2.25rem, 6vw, 3.75rem);
137
+ line-height: 1.05;
138
+ }
139
+ .runway-hero__lede {
140
+ margin: 0;
141
+ font-size: clamp(1rem, 2.2vw, 1.2rem);
142
+ line-height: 1.65;
143
+ opacity: 0.92;
144
+ max-width: 36rem;
145
+ }
146
+ .runway-hero--left .runway-hero__lede {
147
+ margin-left: 0;
148
+ }
149
+ .runway-hero__actions {
150
+ display: flex;
151
+ flex-wrap: wrap;
152
+ gap: 0.75rem;
153
+ margin-top: 0.5rem;
154
+ justify-content: center;
155
+ }
156
+ .runway-hero--left .runway-hero__actions {
157
+ justify-content: flex-start;
158
+ }
159
+ .runway-hero__btn {
160
+ display: inline-flex;
161
+ align-items: center;
162
+ justify-content: center;
163
+ padding: 0.85rem 1.75rem;
164
+ font-size: 0.8rem;
165
+ font-weight: 600;
166
+ letter-spacing: 0.12em;
167
+ text-transform: uppercase;
168
+ text-decoration: none;
169
+ border-radius: 999px;
170
+ transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
171
+ }
172
+ .runway-hero__btn--primary {
173
+ background: var(--runway-accent, #c9a962);
174
+ color: #141218;
175
+ box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
176
+ }
177
+ .runway-hero__btn--primary:hover {
178
+ transform: translateY(-1px);
179
+ box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
180
+ }
181
+ .runway-hero__btn--ghost {
182
+ border: 1px solid rgba(255, 255, 255, 0.45);
183
+ color: inherit;
184
+ background: rgba(255, 255, 255, 0.04);
185
+ }
186
+ .runway-hero__btn--ghost:hover {
187
+ background: rgba(255, 255, 255, 0.1);
188
+ }
189
+ </style>