@newskit-render/mock 0.0.0-014af081

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.
@@ -0,0 +1,206 @@
1
+ const {
2
+ getContentLandingLead,
3
+ getContentSectionOne,
4
+ getContentSectionTwo,
5
+ getContentSectionThree,
6
+ getContentLandingTwo,
7
+ getContentSectionFour,
8
+ } = require("./body-genarator");
9
+
10
+ const pages = [
11
+ {
12
+ data: {
13
+ id: "123e4567-e89b-12d3-a456-426655440000",
14
+ type: "page",
15
+ attributes: {
16
+ title: "Mock Site Homepage",
17
+ slug: "homepage",
18
+ titleSeo: "Homepage",
19
+ description: "Site One description",
20
+ image: {
21
+ type: "image",
22
+ attributes: {
23
+ url: "https://www.newskit.co.uk/static/templates.png",
24
+ caption: "Site One Logo",
25
+ credit: "Site One Logo",
26
+ alt: "Site One Logo",
27
+ },
28
+ },
29
+ datePublished: "2020-01-01T17:32:28.000Z",
30
+ dateUpdated: "2020-01-01T17:38:28.000Z",
31
+ body: [
32
+ getContentLandingLead,
33
+ getContentSectionOne,
34
+ getContentSectionTwo,
35
+ getContentSectionThree,
36
+ ],
37
+ },
38
+ },
39
+ },
40
+ {
41
+ data: {
42
+ id: "223e4567-e89b-12d3-a456-426655440000",
43
+ type: "page",
44
+ attributes: {
45
+ title: "Section One",
46
+ slug: "section-one",
47
+ titleSeo: "Section One",
48
+ description: "Section One description",
49
+ image: {
50
+ type: "image",
51
+ attributes: {
52
+ url: "https://www.newskit.co.uk/static/templates.png",
53
+ caption: "An image for the section",
54
+ credit: "credit text",
55
+ alt: "An image for the section",
56
+ },
57
+ },
58
+ datePublished: "2020-01-01T17:32:28.000Z",
59
+ dateUpdated: "2020-01-01T17:38:28.000Z",
60
+ body: [
61
+ {
62
+ type: "image",
63
+ attributes: {
64
+ url: "https://www.newskit.co.uk/static/templates.png",
65
+ caption: "An image for the section - body",
66
+ credit: "credit text",
67
+ alt: "An image for the section - body",
68
+ },
69
+ },
70
+ {
71
+ type: "paragraph",
72
+ attributes: {
73
+ dropCap: true,
74
+ },
75
+ children: [
76
+ {
77
+ type: "text",
78
+ attributes: {
79
+ bold: false,
80
+ text:
81
+ "Your section can have Paragraphs maybe some type of introduction",
82
+ },
83
+ },
84
+ {
85
+ type: "hyperlink",
86
+ attributes: {
87
+ url: "http://content.api/api/v1/times-radio/posts?id=abc",
88
+ text: "It can also have links",
89
+ },
90
+ },
91
+ ],
92
+ },
93
+ {
94
+ type: "tweet",
95
+ attributes: {
96
+ id: "tweet-id",
97
+ },
98
+ },
99
+ getContentLandingLead,
100
+ getContentSectionTwo,
101
+ getContentLandingTwo,
102
+ getContentSectionOne,
103
+ ],
104
+ },
105
+ },
106
+ },
107
+ {
108
+ data: {
109
+ id: "323e4567-e89b-12d3-a456-426655440000",
110
+ type: "page",
111
+ attributes: {
112
+ title: "Section Two",
113
+ slug: "section-two",
114
+ titleSeo: "Section Two",
115
+ description: "Section Two description",
116
+ image: {
117
+ type: "image",
118
+ attributes: {
119
+ url: "https://www.newskit.co.uk/static/templates.png",
120
+ caption: "An image for the section",
121
+ credit: "credit text",
122
+ alt: "An image for the section",
123
+ },
124
+ },
125
+ datePublished: "2020-01-01T17:32:28.000Z",
126
+ dateUpdated: "2020-01-01T17:38:28.000Z",
127
+ body: [
128
+ {
129
+ type: "image",
130
+ attributes: {
131
+ url: "https://www.newskit.co.uk/static/templates.png",
132
+ caption: "An image for the section - body",
133
+ credit: "credit text",
134
+ alt: "An image for the section - body",
135
+ },
136
+ },
137
+ {
138
+ type: "paragraph",
139
+ attributes: {
140
+ dropCap: true,
141
+ },
142
+ children: [
143
+ {
144
+ type: "text",
145
+ attributes: {
146
+ bold: false,
147
+ text:
148
+ "Your section can have Paragraphs maybe some type of introduction",
149
+ },
150
+ },
151
+ {
152
+ type: "hyperlink",
153
+ attributes: {
154
+ url: "http://content.api/api/v1/times-radio/posts?id=abc",
155
+ text: "It can also have links",
156
+ },
157
+ },
158
+ ],
159
+ },
160
+ {
161
+ type: "tweet",
162
+ attributes: {
163
+ id: "tweet-id",
164
+ },
165
+ },
166
+ getContentLandingLead,
167
+ getContentSectionTwo,
168
+ getContentLandingTwo,
169
+ getContentSectionFour,
170
+ ],
171
+ },
172
+ },
173
+ },
174
+ {
175
+ data: {
176
+ id: "423e4567-e89b-12d3-a456-426655440000",
177
+ type: "page",
178
+ attributes: {
179
+ title: "Section Three",
180
+ slug: "section-three",
181
+ titleSeo: "Section Three",
182
+ description: "Section Three description",
183
+ image: {
184
+ type: "image",
185
+ attributes: {
186
+ url: "https://www.newskit.co.uk/static/templates.png",
187
+ caption: "Site One Logo",
188
+ credit: "Site One Logo",
189
+ alt: "Site One Logo",
190
+ },
191
+ },
192
+ datePublished: "2020-01-01T17:32:28.000Z",
193
+ dateUpdated: "2020-01-01T17:38:28.000Z",
194
+ body: [
195
+ getContentLandingLead,
196
+ getContentSectionOne,
197
+ getContentSectionTwo,
198
+ getContentSectionThree,
199
+ getContentLandingTwo,
200
+ ],
201
+ },
202
+ },
203
+ },
204
+ ];
205
+
206
+ module.exports = pages;