|
1 | | -import type { TrailType } from '../types/trails'; |
| 1 | +import { hostedOnwardsTrails } from '../../fixtures/manual/onwardsTrails'; |
2 | 2 | import { HostedContentOnwards } from './HostedContentOnwards'; |
3 | 3 |
|
4 | | -const trails: TrailType[] = [ |
5 | | - { |
6 | | - url: 'https://www.theguardian.com/money/gallery/2026/mar/27/loft-style-apartments-for-sale-in-england-in-pictures', |
7 | | - headline: 'Loft-style apartments for sale in England – in pictures', |
8 | | - format: { design: 27, display: 1, theme: 6 }, |
9 | | - dataLinkName: 'media | group-0 | card-@1', |
10 | | - image: { |
11 | | - src: 'https://media.guim.co.uk/276ed08e0380a9a3045a779ea1ca8c93f7c1b51e/500_0_5000_4000/2000.jpg', |
12 | | - altText: |
13 | | - 'Loft-style apartment interior in Clapton, east London with industrial design elements', |
14 | | - }, |
15 | | - }, |
16 | | - { |
17 | | - url: 'https://www.theguardian.com/books/2026/apr/01/under-water-by-tara-menon-review-love-loss-and-a-longing-for-the-ocean', |
18 | | - headline: |
19 | | - 'Under Water by Tara Menon review – love, loss and a longing for the ocean', |
20 | | - format: { design: 27, display: 1, theme: 6 }, |
21 | | - dataLinkName: 'media | group-0 | card-@2', |
22 | | - image: { |
23 | | - src: 'https://media.guim.co.uk/95d6b3df9e3471344dc19a32d94bb3d5ff6f5016/205_5_2978_2382/2000.jpg', |
24 | | - altText: 'Tropical fish', |
25 | | - }, |
26 | | - }, |
27 | | - { |
28 | | - url: 'https://www.theguardian.com/money/gallery/2026/feb/27/homes-a-short-walk-from-the-sea-in-england-and-scotland-in-pictures', |
29 | | - headline: |
30 | | - 'Homes a short walk from the sea in England and Scotland – in pictures', |
31 | | - format: { design: 27, display: 1, theme: 6 }, |
32 | | - dataLinkName: 'media | group-0 | card-@3', |
33 | | - image: { |
34 | | - src: 'https://media.guim.co.uk/9879e5d3275b5dae8c8bfd8e1ac700332e2de8c4/237_0_3750_3000/2000.jpg', |
35 | | - altText: 'Craster, Northumberland', |
36 | | - }, |
37 | | - }, |
38 | | -]; |
39 | | - |
40 | 4 | export default { |
41 | 5 | component: HostedContentOnwards, |
42 | 6 | title: 'Components/HostedContentOnwards', |
43 | 7 | }; |
44 | 8 |
|
45 | 9 | export const Default = () => { |
46 | | - return <HostedContentOnwards trails={trails} brandName="TrendAI" />; |
| 10 | + return ( |
| 11 | + <HostedContentOnwards |
| 12 | + trails={hostedOnwardsTrails} |
| 13 | + brandName="TrendAI" |
| 14 | + /> |
| 15 | + ); |
47 | 16 | }; |
48 | 17 |
|
49 | 18 | Default.storyName = 'default'; |
50 | 19 |
|
51 | 20 | export const WithAccentColour = () => { |
52 | 21 | return ( |
53 | 22 | <HostedContentOnwards |
54 | | - trails={trails} |
| 23 | + trails={hostedOnwardsTrails} |
55 | 24 | brandName="TrendAI" |
56 | 25 | accentColor="#FF0000" |
57 | 26 | /> |
|
0 commit comments