@eldrajs/theme-cli 0.2.8 → 0.2.10
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/CHANGELOG.md +3 -1
- package/package.json +1 -1
- package/template/.eldra/block-types.d.ts +28 -7
- package/template/.eldra/manifest.json +1034 -355
- package/template/.eldra/previews.json +35 -35
- package/template/README.md +32 -0
- package/template/app/assets/main.css +23 -0
- package/template/app/plugins/eldra-storefront.ts +3 -0
- package/template/app/storefront/demo.ts +75 -24
- package/template/app/storefront/gateway.ts +16 -2
- package/template/blocks/announcement-bar/preview.png +0 -0
- package/template/blocks/article/preview.json +4 -4
- package/template/blocks/article/preview.png +0 -0
- package/template/blocks/article-list/Block.vue +48 -19
- package/template/blocks/article-list/__tests__/Block.spec.ts +15 -0
- package/template/blocks/article-list/preview.json +43 -43
- package/template/blocks/article-list/preview.png +0 -0
- package/template/blocks/breadcrumbs/preview.png +0 -0
- package/template/blocks/cart/preview.png +0 -0
- package/template/blocks/collection-grid/Block.vue +260 -9
- package/template/blocks/collection-grid/__tests__/Block.spec.ts +202 -0
- package/template/blocks/collection-grid/block.json +3 -3
- package/template/blocks/collection-grid/preview.png +0 -0
- package/template/blocks/collection-header/Block.vue +82 -58
- package/template/blocks/collection-header/__tests__/Block.spec.ts +77 -1
- package/template/blocks/collection-header/preview.json +4 -4
- package/template/blocks/collection-header/preview.png +0 -0
- package/template/blocks/contact/preview.png +0 -0
- package/template/blocks/cta/preview.json +4 -4
- package/template/blocks/cta/preview.png +0 -0
- package/template/blocks/faq/preview.png +0 -0
- package/template/blocks/feature-grid/Block.vue +73 -4
- package/template/blocks/feature-grid/__tests__/Block.spec.ts +43 -1
- package/template/blocks/feature-grid/block.json +2 -2
- package/template/blocks/feature-grid/preview.json +49 -24
- package/template/blocks/feature-grid/preview.png +0 -0
- package/template/blocks/footer/Block.vue +186 -71
- package/template/blocks/footer/__tests__/Block.spec.ts +127 -32
- package/template/blocks/footer/block.json +42 -4
- package/template/blocks/footer/mock.json +31 -34
- package/template/blocks/footer/preview.png +0 -0
- package/template/blocks/form/preview.png +0 -0
- package/template/blocks/gallery/preview.json +24 -24
- package/template/blocks/gallery/preview.png +0 -0
- package/template/blocks/hero/Block.vue +117 -19
- package/template/blocks/hero/__tests__/Block.spec.ts +46 -0
- package/template/blocks/hero/block.json +36 -1
- package/template/blocks/hero/preview.json +33 -25
- package/template/blocks/hero/preview.png +0 -0
- package/template/blocks/image/preview.json +4 -4
- package/template/blocks/image/preview.png +0 -0
- package/template/blocks/logo-cloud/preview.png +0 -0
- package/template/blocks/navigation/Block.vue +623 -184
- package/template/blocks/navigation/__tests__/Block.spec.ts +416 -68
- package/template/blocks/navigation/__tests__/fixtures/menu.json +182 -0
- package/template/blocks/navigation/block.json +102 -6
- package/template/blocks/navigation/mock.json +279 -52
- package/template/blocks/navigation/preview.json +311 -0
- package/template/blocks/navigation/preview.png +0 -0
- package/template/blocks/newsletter/Block.vue +248 -144
- package/template/blocks/newsletter/__tests__/Block.spec.ts +42 -0
- package/template/blocks/newsletter/block.json +61 -2
- package/template/blocks/newsletter/preview.json +35 -0
- package/template/blocks/newsletter/preview.png +0 -0
- package/template/blocks/order-status/preview.png +0 -0
- package/template/blocks/pricing-table/preview.png +0 -0
- package/template/blocks/product-carousel/Block.vue +272 -26
- package/template/blocks/product-carousel/__tests__/Block.spec.ts +90 -0
- package/template/blocks/product-carousel/block.json +61 -0
- package/template/blocks/product-carousel/preview.json +12 -0
- package/template/blocks/product-carousel/preview.png +0 -0
- package/template/blocks/product-detail/Block.vue +148 -96
- package/template/blocks/product-detail/__tests__/Block.spec.ts +98 -74
- package/template/blocks/product-detail/block.json +11 -4
- package/template/blocks/product-detail/mock.json +53 -22
- package/template/blocks/product-detail/parts/Gallery.vue +52 -103
- package/template/blocks/product-detail/preview.png +0 -0
- package/template/blocks/quote/preview.png +0 -0
- package/template/blocks/rich-text/preview.png +0 -0
- package/template/blocks/search/Block.vue +1 -0
- package/template/blocks/search/TypeSection.vue +1 -0
- package/template/blocks/search/__tests__/Block.spec.ts +23 -0
- package/template/blocks/search/preview.png +0 -0
- package/template/blocks/split-content/Block.vue +98 -20
- package/template/blocks/split-content/__tests__/Block.spec.ts +57 -18
- package/template/blocks/split-content/block.json +72 -6
- package/template/blocks/split-content/preview.json +34 -13
- package/template/blocks/split-content/preview.png +0 -0
- package/template/blocks/stats/preview.png +0 -0
- package/template/blocks/tabs/preview.json +16 -16
- package/template/blocks/tabs/preview.png +0 -0
- package/template/blocks/team/preview.png +0 -0
- package/template/blocks/testimonials/preview.png +0 -0
- package/template/blocks/timeline/preview.png +0 -0
- package/template/blocks/trust-strip/Block.vue +67 -1
- package/template/blocks/trust-strip/__tests__/Block.spec.ts +30 -1
- package/template/blocks/trust-strip/block.json +4 -4
- package/template/blocks/trust-strip/preview.json +21 -0
- package/template/blocks/trust-strip/preview.png +0 -0
- package/template/blocks/video-embed/preview.png +0 -0
- package/template/blocks/wishlist/preview.png +0 -0
- package/template/i18n/en-US.json +16 -9
- package/template/i18n/is-IS.json +16 -9
- package/template/pages/article.page.json +19 -18
- package/template/pages/cart.page.json +3 -13
- package/template/pages/category.page.json +15 -7
- package/template/pages/collection.page.json +15 -14
- package/template/pages/home.page.json +217 -182
- package/template/pages/product.page.json +46 -36
- package/template/pages/products.page.json +3 -13
- package/template/pages/search.page.json +3 -13
- package/template/pages/wishlist.page.json +3 -13
- package/template/public/images/CREDITS.md +28 -0
- package/template/public/images/clay-hands.webp +0 -0
- package/template/public/images/coffee-table.webp +0 -0
- package/template/public/images/cup.webp +0 -0
- package/template/public/images/enamel-cups.webp +0 -0
- package/template/public/images/hero.webp +0 -0
- package/template/public/images/kitchen.webp +0 -0
- package/template/public/images/mug.webp +0 -0
- package/template/public/images/northwind-mark.svg +1 -0
- package/template/public/images/planters.webp +0 -0
- package/template/public/images/plates.webp +0 -0
- package/template/public/images/reading.webp +0 -0
- package/template/public/images/sweater.webp +0 -0
- package/template/public/images/terracotta.webp +0 -0
- package/template/public/images/throws.webp +0 -0
- package/template/public/images/vase.webp +0 -0
- package/template/public/images/wheel.webp +0 -0
- package/template/public/images/yarn-tools.webp +0 -0
- package/template/public/images/yarn.webp +0 -0
- package/template/stories/generated/collection-grid.stories.ts +6 -0
- package/template/stories/generated/feature-grid.stories.ts +6 -0
- package/template/stories/generated/footer.stories.ts +4 -4
- package/template/stories/generated/hero.stories.ts +6 -0
- package/template/stories/generated/navigation.stories.ts +14 -1
- package/template/stories/generated/newsletter.stories.ts +2 -1
- package/template/stories/generated/product-carousel.stories.ts +12 -0
- package/template/stories/generated/split-content.stories.ts +12 -0
- package/template/stories/generated/trust-strip.stories.ts +8 -1
- package/template/stories/pages/article.stories.ts +2 -1
- package/template/stories/pages/cart.stories.ts +2 -1
- package/template/stories/pages/category.stories.ts +2 -1
- package/template/stories/pages/collection.stories.ts +2 -1
- package/template/stories/pages/home.stories.ts +2 -1
- package/template/stories/pages/product.stories.ts +2 -1
- package/template/stories/pages/products.stories.ts +2 -1
- package/template/stories/pages/search.stories.ts +2 -1
- package/template/stories/pages/wishlist.stories.ts +2 -1
- package/template/stories/support/demoChrome.ts +32 -0
- package/template/stories/support/pageBlocks.ts +2 -4
- package/template/test/countPill.browser.spec.ts +21 -13
- package/template/test/localePrefix.spec.ts +11 -6
- package/template/test/pages/article.spec.ts +1 -1
- package/template/test/pages/category.spec.ts +34 -11
- package/template/test/pages/collection.spec.ts +182 -148
- package/template/test/pages/home.spec.ts +35 -40
- package/template/test/pages/hydration.spec.ts +4 -4
- package/template/test/pages/product.spec.ts +17 -14
- package/template/test/pages/seededPages.spec.ts +11 -6
- package/template/test/prerenderRefresh.browser.spec.ts +36 -15
- package/template/test/previewParity.browser.spec.ts +36 -2
- package/template/test/starter.spec.ts +31 -15
- package/template/test/storefront/gatewayPrerender.spec.ts +26 -0
- package/template/tokens.json +13 -13
|
@@ -24,6 +24,15 @@
|
|
|
24
24
|
* the link to the bottom of a stretched card so links line up across a row (spec → Sizes,
|
|
25
25
|
* "pushed to the bottom of the item").
|
|
26
26
|
*
|
|
27
|
+
* **`arched`** is the design's "shop by category" row: each item an arch-topped 3:4 photo (full
|
|
28
|
+
* radius on top, `radius-lg` below) with a centred serif title and a muted line, and the whole
|
|
29
|
+
* tile one link — the title and line are the link's text, the photo is decorative. One row of
|
|
30
|
+
* equal tiles from 1101px of block width; below that the same row keeps a 9rem minimum per tile
|
|
31
|
+
* and scrolls sideways, bleeding to the block edge so the next tile peeks in. Every tile is a
|
|
32
|
+
* link, so `Tab` walks the row and the browser scrolls each into view — no tab stop of its own is
|
|
33
|
+
* needed for the scroll area (axe's `scrollable-region-focusable` is satisfied by its links).
|
|
34
|
+
* `columns` and `mediaType` do not apply to it.
|
|
35
|
+
*
|
|
27
36
|
* Spec States → Empty (freshly inserted): "two 'Add a feature' items ('Pick an icon or image,
|
|
28
37
|
* then a title and a sentence')" — the same per-item editor hint shape `team`'s/`stats`' own
|
|
29
38
|
* repeaters use. `isItemEmpty` treats an item with neither icon nor image nor title as empty;
|
|
@@ -49,6 +58,7 @@ import { useUiId } from '../../app/composables/useUiId';
|
|
|
49
58
|
import EldraRouterLink from '../../app/components/EldraRouterLink.vue';
|
|
50
59
|
import UiImage from '../../app/components/ui/UiImage.vue';
|
|
51
60
|
import { isInternalHref, safeHref } from '../../app/utils/links';
|
|
61
|
+
import { focusRing } from '../../app/utils/classes';
|
|
52
62
|
|
|
53
63
|
const props = defineProps<{ entry: EldraBlockEntry<'feature-grid'> }>();
|
|
54
64
|
const { data } = useBlockData(props, 'feature-grid');
|
|
@@ -77,7 +87,8 @@ const hasHead = computed(
|
|
|
77
87
|
() => hasHeading.value || hasIntro.value || hasHeadLink.value || showHeadingHint.value
|
|
78
88
|
);
|
|
79
89
|
|
|
80
|
-
const
|
|
90
|
+
const isArched = computed(() => data.value.variant === 'arched');
|
|
91
|
+
const isCards = computed(() => !isArched.value && (data.value.variant ?? 'cards') !== 'plain');
|
|
81
92
|
const featureCardVariant = computed<FeatureCardVariant>(() =>
|
|
82
93
|
isCards.value ? 'surface' : 'plain'
|
|
83
94
|
);
|
|
@@ -136,6 +147,22 @@ const renderedItems = computed(() =>
|
|
|
136
147
|
);
|
|
137
148
|
const hasItems = computed(() => renderedItems.value.length > 0);
|
|
138
149
|
|
|
150
|
+
/** The arched row: equal tiles in one row from 1101px, a sideways-scrolling row below with the
|
|
151
|
+
* track bleeding to the block edge (the same negative-gutter recipe `trust-strip`'s scroll layout
|
|
152
|
+
* uses, matched to `Container`'s own gutter at each step). */
|
|
153
|
+
const ARCHED_LIST_CLASS =
|
|
154
|
+
'grid grid-flow-col auto-cols-[minmax(9rem,1fr)] gap-6 overflow-x-auto eldra-scrollbar-hide ' +
|
|
155
|
+
'snap-x pt-1 pb-2 scroll-px-[var(--eldra-gutter-mobile)] ' +
|
|
156
|
+
'-mx-[var(--eldra-gutter-mobile)] px-[var(--eldra-gutter-mobile)] ' +
|
|
157
|
+
'@tablet:-mx-[var(--eldra-gutter-tablet)] @tablet:px-[var(--eldra-gutter-tablet)] @tablet:scroll-px-[var(--eldra-gutter-tablet)] ' +
|
|
158
|
+
'@content:-mx-[var(--eldra-gutter-desktop)] @content:px-[var(--eldra-gutter-desktop)] @content:scroll-px-[var(--eldra-gutter-desktop)] ' +
|
|
159
|
+
'@min-[68.8125rem]:auto-cols-fr @min-[68.8125rem]:overflow-visible @min-[68.8125rem]:mx-0 ' +
|
|
160
|
+
'@min-[68.8125rem]:px-0 @min-[68.8125rem]:snap-none';
|
|
161
|
+
const ARCH_TILE_CLASS =
|
|
162
|
+
'group grid justify-items-center gap-3.5 text-center text-text no-underline rounded-lg';
|
|
163
|
+
const ARCH_FRAME_CLASS =
|
|
164
|
+
'relative block w-full overflow-hidden bg-surface rounded-t-full rounded-b-lg aspect-[3/4]';
|
|
165
|
+
|
|
139
166
|
const items = computed(() =>
|
|
140
167
|
renderedItems.value.map((item) => {
|
|
141
168
|
const href = safeHref(item.href);
|
|
@@ -146,7 +173,7 @@ const items = computed(() =>
|
|
|
146
173
|
showIconTile: hasIcon,
|
|
147
174
|
hasImage: Boolean(item.image),
|
|
148
175
|
image: item.image,
|
|
149
|
-
title: item.title,
|
|
176
|
+
title: item.title ?? '',
|
|
150
177
|
text: item.text ?? '',
|
|
151
178
|
cue: item.linkLabel || undefined,
|
|
152
179
|
href,
|
|
@@ -169,7 +196,7 @@ const items = computed(() =>
|
|
|
169
196
|
<h2
|
|
170
197
|
v-if="hasHeading"
|
|
171
198
|
:id="headingId"
|
|
172
|
-
class="font-heading text-text
|
|
199
|
+
class="font-heading text-text text-[1.75rem] leading-[1.1] font-medium tracking-[-0.01em] text-balance @min-[47.5625rem]:text-[2.25rem]"
|
|
173
200
|
>
|
|
174
201
|
{{ data.heading }}
|
|
175
202
|
</h2>
|
|
@@ -192,7 +219,49 @@ const items = computed(() =>
|
|
|
192
219
|
</Link>
|
|
193
220
|
</div>
|
|
194
221
|
|
|
195
|
-
<ul role="list" :class="
|
|
222
|
+
<ul v-if="isArched" role="list" :class="ARCHED_LIST_CLASS">
|
|
223
|
+
<li v-for="(item, index) in items" :key="index" class="snap-start">
|
|
224
|
+
<EditorPlaceholder
|
|
225
|
+
v-if="item.isEmpty"
|
|
226
|
+
inline
|
|
227
|
+
class="aspect-[3/4] h-auto rounded-t-full rounded-b-lg"
|
|
228
|
+
:label="t('featureGrid.itemHintLabel')"
|
|
229
|
+
:help="t('featureGrid.itemHintHelp')"
|
|
230
|
+
/>
|
|
231
|
+
<component
|
|
232
|
+
:is="item.href ? (item.linkAs ?? 'a') : 'div'"
|
|
233
|
+
v-else
|
|
234
|
+
v-bind="item.href ? (item.linkAs ? { to: item.href } : { href: item.href }) : {}"
|
|
235
|
+
:class="[ARCH_TILE_CLASS, item.href ? focusRing : '']"
|
|
236
|
+
>
|
|
237
|
+
<span :class="ARCH_FRAME_CLASS">
|
|
238
|
+
<UiImage
|
|
239
|
+
v-if="item.hasImage"
|
|
240
|
+
:src="item.image!.url"
|
|
241
|
+
alt=""
|
|
242
|
+
:framing="item.image!.framing ?? null"
|
|
243
|
+
fill
|
|
244
|
+
class="motion-safe:transition-transform motion-safe:duration-[250ms] motion-safe:group-hover:scale-[1.04]"
|
|
245
|
+
/>
|
|
246
|
+
<EditorPlaceholder
|
|
247
|
+
v-else-if="isEditing"
|
|
248
|
+
inline
|
|
249
|
+
class="h-full"
|
|
250
|
+
:label="t('featureGrid.imageHintLabel')"
|
|
251
|
+
/>
|
|
252
|
+
</span>
|
|
253
|
+
<span class="grid gap-0.5">
|
|
254
|
+
<span
|
|
255
|
+
class="font-heading text-[1.25rem] leading-[1.3] font-medium group-hover:underline group-hover:underline-offset-[0.2em]"
|
|
256
|
+
>{{ item.title }}</span
|
|
257
|
+
>
|
|
258
|
+
<span v-if="item.text" class="text-muted text-sm">{{ item.text }}</span>
|
|
259
|
+
</span>
|
|
260
|
+
</component>
|
|
261
|
+
</li>
|
|
262
|
+
</ul>
|
|
263
|
+
|
|
264
|
+
<ul v-else role="list" :class="gridClass">
|
|
196
265
|
<li v-for="(item, index) in items" :key="index" class="h-full">
|
|
197
266
|
<EditorPlaceholder
|
|
198
267
|
v-if="item.isEmpty"
|
|
@@ -59,7 +59,9 @@ describe('feature-grid block', () => {
|
|
|
59
59
|
// future overlay edit that forgets `mediaType`/`columns` fails here rather than only showing up
|
|
60
60
|
// as a wrong insert thumbnail in Studio.
|
|
61
61
|
expect(preview.mediaType).toBe('image');
|
|
62
|
-
|
|
62
|
+
// Five category tiles (the arched variant's demo row) in the cards' three-column grid: the
|
|
63
|
+
// grid must never have more columns than items, which is what left blank cells before.
|
|
64
|
+
expect(Number(preview.columns)).toBeLessThanOrEqual(preview.items.length);
|
|
63
65
|
|
|
64
66
|
const wrapper = mountBlock(withImages);
|
|
65
67
|
const images = wrapper.findAll('img');
|
|
@@ -92,6 +94,46 @@ describe('feature-grid block', () => {
|
|
|
92
94
|
}
|
|
93
95
|
);
|
|
94
96
|
|
|
97
|
+
describe('arched variant', () => {
|
|
98
|
+
const arched = { ...withImages, variant: 'arched' };
|
|
99
|
+
|
|
100
|
+
it('renders the preview row axe-clean, one link per tile naming its title and line', async () => {
|
|
101
|
+
const wrapper = mountBlock(arched);
|
|
102
|
+
const tiles = wrapper.findAll('ul > li');
|
|
103
|
+
expect(tiles).toHaveLength(preview.items.length);
|
|
104
|
+
preview.items.forEach((tile, index) => {
|
|
105
|
+
const link = tiles[index]!.get('a');
|
|
106
|
+
expect(tiles[index]!.findAll('a')).toHaveLength(1);
|
|
107
|
+
expect(link.text()).toContain(tile.title);
|
|
108
|
+
expect(link.text()).toContain(tile.text);
|
|
109
|
+
// The photo is decorative: the link's text already names the destination.
|
|
110
|
+
expect(link.get('img').attributes('alt')).toBe('');
|
|
111
|
+
});
|
|
112
|
+
expect(await axe(wrapper.element)).toHaveNoViolations();
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
it('routes a same-site tile through the router and drops an unsafe one to plain text', () => {
|
|
116
|
+
const wrapper = mountBlock({
|
|
117
|
+
...arched,
|
|
118
|
+
items: [
|
|
119
|
+
{ ...preview.items[0], href: 'javascript:alert(1)' },
|
|
120
|
+
{ ...preview.items[1], href: 'https://example.com/knitwear' },
|
|
121
|
+
],
|
|
122
|
+
});
|
|
123
|
+
const tiles = wrapper.findAll('ul > li');
|
|
124
|
+
expect(tiles[0]!.find('a').exists()).toBe(false);
|
|
125
|
+
expect(tiles[0]!.text()).toContain(preview.items[0]!.title);
|
|
126
|
+
expect(tiles[1]!.get('a').attributes('href')).toBe('https://example.com/knitwear');
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
it('Tab walks the head link, then every tile, in order — no other tab stop', () => {
|
|
130
|
+
const wrapper = mountBlock(arched);
|
|
131
|
+
const hrefs = wrapper.findAll('a').map((a) => a.attributes('href'));
|
|
132
|
+
expect(hrefs).toEqual([preview.headLinkHref, ...preview.items.map((tile) => tile.href)]);
|
|
133
|
+
expect(wrapper.find('[tabindex]').exists()).toBe(false);
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
|
|
95
137
|
it('renders the image media type with no axe violations', async () => {
|
|
96
138
|
const wrapper = mountBlock({ ...withImages, mediaType: 'image' });
|
|
97
139
|
expect(wrapper.findAll('img')).toHaveLength(withImages.items.length);
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"fieldId": "variant",
|
|
11
11
|
"name": "Variant",
|
|
12
12
|
"type": "select",
|
|
13
|
-
"helpText": "cards is the default.",
|
|
14
|
-
"metadata": { "options": ["cards", "plain"] },
|
|
13
|
+
"helpText": "cards is the default. arched shows each item as an arch-topped photo with its title and line under it, the whole tile one link, in a single row that scrolls sideways on smaller screens. Use it for category tiles; it always shows images and ignores columns and media type.",
|
|
14
|
+
"metadata": { "options": ["cards", "plain", "arched"] },
|
|
15
15
|
"validators": { "required": true }
|
|
16
16
|
},
|
|
17
17
|
{
|
|
@@ -1,45 +1,70 @@
|
|
|
1
1
|
{
|
|
2
|
+
"heading": "Shop by category",
|
|
3
|
+
"intro": "",
|
|
4
|
+
"headLinkLabel": "All categories",
|
|
5
|
+
"headLinkHref": "/products",
|
|
2
6
|
"columns": "3",
|
|
3
7
|
"mediaType": "image",
|
|
4
8
|
"items": [
|
|
5
9
|
{
|
|
6
10
|
"image": {
|
|
7
11
|
"assetId": "demo-feature-1",
|
|
8
|
-
"url": "/
|
|
9
|
-
"altText": "
|
|
10
|
-
"width":
|
|
11
|
-
"height":
|
|
12
|
+
"url": "/images/terracotta.webp",
|
|
13
|
+
"altText": "Handmade terracotta bowls and jugs",
|
|
14
|
+
"width": 1400,
|
|
15
|
+
"height": 933
|
|
12
16
|
},
|
|
13
|
-
"title": "
|
|
14
|
-
"text": "
|
|
15
|
-
"
|
|
16
|
-
"href": "/pages/wool"
|
|
17
|
+
"title": "Ceramics",
|
|
18
|
+
"text": "Mugs, bowls, vases",
|
|
19
|
+
"href": "/categories/home/ceramics"
|
|
17
20
|
},
|
|
18
21
|
{
|
|
19
22
|
"image": {
|
|
20
23
|
"assetId": "demo-feature-2",
|
|
21
|
-
"url": "/
|
|
22
|
-
"altText": "
|
|
23
|
-
"width":
|
|
24
|
-
"height":
|
|
24
|
+
"url": "/images/yarn-tools.webp",
|
|
25
|
+
"altText": "Yarn and knitting needles on a table",
|
|
26
|
+
"width": 1400,
|
|
27
|
+
"height": 933
|
|
25
28
|
},
|
|
26
|
-
"title": "
|
|
27
|
-
"text": "
|
|
28
|
-
"
|
|
29
|
-
"href": "/pages/clay"
|
|
29
|
+
"title": "Knitwear",
|
|
30
|
+
"text": "Sweaters, throws and yarn",
|
|
31
|
+
"href": "/categories/knitwear"
|
|
30
32
|
},
|
|
31
33
|
{
|
|
32
34
|
"image": {
|
|
33
35
|
"assetId": "demo-feature-3",
|
|
34
|
-
"url": "/
|
|
35
|
-
"altText": "
|
|
36
|
-
"width":
|
|
37
|
-
"height":
|
|
36
|
+
"url": "/images/enamel-cups.webp",
|
|
37
|
+
"altText": "Enamel cups on a table",
|
|
38
|
+
"width": 1400,
|
|
39
|
+
"height": 933
|
|
38
40
|
},
|
|
39
|
-
"title": "
|
|
40
|
-
"text": "
|
|
41
|
-
"
|
|
42
|
-
|
|
41
|
+
"title": "Tableware",
|
|
42
|
+
"text": "Cups, plates and platters",
|
|
43
|
+
"href": "/collections/the-winter-edit"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"image": {
|
|
47
|
+
"assetId": "demo-feature-4",
|
|
48
|
+
"url": "/images/reading.webp",
|
|
49
|
+
"altText": "A reader under a knitted throw",
|
|
50
|
+
"width": 1400,
|
|
51
|
+
"height": 933
|
|
52
|
+
},
|
|
53
|
+
"title": "Home",
|
|
54
|
+
"text": "Throws and cushions",
|
|
55
|
+
"href": "/categories/home"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"image": {
|
|
59
|
+
"assetId": "demo-feature-5",
|
|
60
|
+
"url": "/images/kitchen.webp",
|
|
61
|
+
"altText": "A laid kitchen table",
|
|
62
|
+
"width": 1400,
|
|
63
|
+
"height": 840
|
|
64
|
+
},
|
|
65
|
+
"title": "Kitchen",
|
|
66
|
+
"text": "Boards, jars and linen",
|
|
67
|
+
"href": "/categories/home/kitchen"
|
|
43
68
|
}
|
|
44
69
|
]
|
|
45
70
|
}
|
|
Binary file
|