@rileybathurst/paddle 0.0.54 → 0.0.56
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/package.json +1 -1
- package/src/PaddleSEO.tsx +28 -23
- package/src/styles/layout.css +104 -8
package/package.json
CHANGED
package/src/PaddleSEO.tsx
CHANGED
|
@@ -64,19 +64,21 @@ type SEOtypes = {
|
|
|
64
64
|
ogImagedescription: string;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
67
|
+
allStrapiLocation: {
|
|
68
|
+
nodes: {
|
|
69
|
+
streetAddress: string;
|
|
70
|
+
addressLocality: string;
|
|
71
|
+
addressRegion: string;
|
|
72
|
+
postalCode: string;
|
|
73
|
+
paymentAccepted: string;
|
|
74
|
+
phone: string;
|
|
75
|
+
opening_time: string;
|
|
76
|
+
closing_time: string;
|
|
77
|
+
}[];
|
|
76
78
|
};
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
export const PaddleSEO = ({ title, description, ogImage, ogImagedescription, breadcrumbs, strapiLocale,
|
|
81
|
+
export const PaddleSEO = ({ title, description, ogImage, ogImagedescription, breadcrumbs, strapiLocale, allStrapiLocation }: SEOtypes) => {
|
|
80
82
|
|
|
81
83
|
const businessName = `${strapiLocale.name} Kayak & Paddleboard rentals and tours`;
|
|
82
84
|
|
|
@@ -91,9 +93,11 @@ export const PaddleSEO = ({ title, description, ogImage, ogImagedescription, bre
|
|
|
91
93
|
// const formatted = query.split('\n').map((item) => item.trim().replace('- ', '')).join(', ');
|
|
92
94
|
// console.log(formatted);
|
|
93
95
|
|
|
96
|
+
// TODO: this is now allStrapiLocation.nodes
|
|
97
|
+
// TODO: I think this will be a keylocation piece
|
|
94
98
|
// console.log(strapiLocation.paymentAccepted);
|
|
95
|
-
const paymentAcceptedQuery = strapiLocation.paymentAccepted ? strapiLocation.paymentAccepted : '';
|
|
96
|
-
const paymentAcceptedFormatted = paymentAcceptedQuery.split('\n').map((payment: string) => payment.trim().replace('- ', '')).join(', ');
|
|
99
|
+
// const paymentAcceptedQuery = strapiLocation.paymentAccepted ? strapiLocation.paymentAccepted : '';
|
|
100
|
+
// const paymentAcceptedFormatted = paymentAcceptedQuery.split('\n').map((payment: string) => payment.trim().replace('- ', '')).join(', ');
|
|
97
101
|
// console.log(paymentAcceptedFormatted);
|
|
98
102
|
|
|
99
103
|
return (
|
|
@@ -118,13 +122,18 @@ export const PaddleSEO = ({ title, description, ogImage, ogImagedescription, bre
|
|
|
118
122
|
"url": "${strapiLocale.url}",
|
|
119
123
|
"description": "${strapiLocale.name}",
|
|
120
124
|
"image": "${PaddleImage}",
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
|
|
126
|
+
${allStrapiLocation.nodes.map((location) => {
|
|
127
|
+
return `{
|
|
128
|
+
"address": {
|
|
129
|
+
"@type": "PostalAddress",
|
|
130
|
+
"streetAddress": "${location.streetAddress}",
|
|
131
|
+
"addressLocality": "${location.addressLocality}",
|
|
132
|
+
"addressRegion": "${location.addressRegion}",
|
|
133
|
+
"postalCode": "${location.postalCode}"
|
|
134
|
+
},
|
|
135
|
+
}`
|
|
136
|
+
})},
|
|
128
137
|
"geo": {
|
|
129
138
|
"@type": "GeoCoordinates",
|
|
130
139
|
"latitude": "${strapiLocale.latitude}",
|
|
@@ -139,11 +148,7 @@ export const PaddleSEO = ({ title, description, ogImage, ogImagedescription, bre
|
|
|
139
148
|
},
|
|
140
149
|
"geoRadius": "${strapiLocale.geoRadius}"
|
|
141
150
|
},
|
|
142
|
-
"paymentAccepted": "${paymentAcceptedFormatted}",
|
|
143
151
|
"telephone": "${strapiLocale.phone}",
|
|
144
|
-
"numberOfEmployees": "10",
|
|
145
|
-
"openingHours": "Mo, Tu, We, Th, Fr, Sa, Su ${strapiLocation.opening_time}-${strapiLocation.closing_time}",
|
|
146
|
-
"priceRange": "$30-$375"
|
|
147
152
|
}
|
|
148
153
|
`}
|
|
149
154
|
</Script>
|
package/src/styles/layout.css
CHANGED
|
@@ -15,7 +15,8 @@ body {
|
|
|
15
15
|
header,
|
|
16
16
|
main,
|
|
17
17
|
footer,
|
|
18
|
-
.deck
|
|
18
|
+
.deck,
|
|
19
|
+
.react-aria-Breadcrumbs {
|
|
19
20
|
margin-inline: auto;
|
|
20
21
|
padding-inline: var(--kosciuszko);
|
|
21
22
|
width: calc(100% - var(--kosciuszko) * 2);
|
|
@@ -26,15 +27,14 @@ footer,
|
|
|
26
27
|
flex-basis: var(--vulture);
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
.stork
|
|
30
|
-
header,
|
|
31
|
-
main,
|
|
32
|
-
footer {
|
|
30
|
+
.stork {
|
|
33
31
|
max-width: min(var(--stork), calc(100vw - var(--denali)));
|
|
34
32
|
flex-basis: var(--stork);
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
.condor,
|
|
36
|
+
header,
|
|
37
|
+
main,
|
|
38
38
|
.location,
|
|
39
39
|
.react-aria-Breadcrumbs.condor {
|
|
40
40
|
max-width: min(var(--condor), calc(100vw - var(--denali)));
|
|
@@ -48,6 +48,7 @@ footer {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.albatross,
|
|
51
|
+
footer,
|
|
51
52
|
.deck,
|
|
52
53
|
.react-aria-Breadcrumbs {
|
|
53
54
|
max-width: min(var(--albatross), calc(100vw - var(--denali)));
|
|
@@ -57,7 +58,8 @@ footer {
|
|
|
57
58
|
/*------------------------------------*/
|
|
58
59
|
|
|
59
60
|
.wrap,
|
|
60
|
-
.deck
|
|
61
|
+
.deck,
|
|
62
|
+
footer {
|
|
61
63
|
display: flex;
|
|
62
64
|
flex-flow: row wrap;
|
|
63
65
|
gap: clamp(var(--kosciuszko), 1.667vw, var(--denali));
|
|
@@ -72,8 +74,9 @@ footer {
|
|
|
72
74
|
|
|
73
75
|
.pelican.wrap > *,
|
|
74
76
|
.albatross.wrap > *,
|
|
75
|
-
.deck >
|
|
76
|
-
|
|
77
|
+
.deck > *,
|
|
78
|
+
footer > * {
|
|
79
|
+
max-width: none; /* TODO: this is breaking .composition on storybook */
|
|
77
80
|
margin-inline: 0;
|
|
78
81
|
padding-inline: 0;
|
|
79
82
|
}
|
|
@@ -87,6 +90,10 @@ footer {
|
|
|
87
90
|
flex: 1 1 calc(var(--albatross) / 2 - var(--vinson));
|
|
88
91
|
}
|
|
89
92
|
|
|
93
|
+
.albatross.wrap .composition {
|
|
94
|
+
max-width: fit-content;
|
|
95
|
+
}
|
|
96
|
+
|
|
90
97
|
/*------------------------------------*/
|
|
91
98
|
/* #NESTED */
|
|
92
99
|
/*------------------------------------*/
|
|
@@ -237,3 +244,92 @@ header {
|
|
|
237
244
|
border-block-end: 1px solid;
|
|
238
245
|
border-radius: 0;
|
|
239
246
|
}
|
|
247
|
+
|
|
248
|
+
/*------------------*/
|
|
249
|
+
/* #COMPOSITION */
|
|
250
|
+
/*------------------*/
|
|
251
|
+
|
|
252
|
+
.composition {
|
|
253
|
+
/* grid-area: composition; /* ? is this still used */
|
|
254
|
+
display: grid;
|
|
255
|
+
grid-template-columns: 5% 10% 70% 10% 5%;
|
|
256
|
+
grid-template-rows: 5% 90% 5%;
|
|
257
|
+
margin-block-end: var(--vinson);
|
|
258
|
+
|
|
259
|
+
/* these dont obey the max height at all */
|
|
260
|
+
/* max-height: var(--stork); ? */
|
|
261
|
+
/* max-height: 23rem; TODO: guess and check can I use a variable */
|
|
262
|
+
/* overflow: hidden; */
|
|
263
|
+
|
|
264
|
+
> img {
|
|
265
|
+
display: block;
|
|
266
|
+
|
|
267
|
+
/* ! test */
|
|
268
|
+
opacity: 0.5;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.paddler {
|
|
272
|
+
grid-column: 3;
|
|
273
|
+
grid-row: 2;
|
|
274
|
+
aspect-ratio: 1;
|
|
275
|
+
border: none;
|
|
276
|
+
box-shadow: none;
|
|
277
|
+
margin-block: 1rem;
|
|
278
|
+
|
|
279
|
+
/* ! test */
|
|
280
|
+
background-color: hotpink;
|
|
281
|
+
|
|
282
|
+
img {
|
|
283
|
+
border-radius: 50%;
|
|
284
|
+
border: 2px solid;
|
|
285
|
+
width: calc(100% - 4px);
|
|
286
|
+
height: calc(100% - 4px);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* gatsby nesting breaks the design */
|
|
291
|
+
.storybook-paddler {
|
|
292
|
+
grid-column: 3;
|
|
293
|
+
grid-row: 2;
|
|
294
|
+
aspect-ratio: 1;
|
|
295
|
+
border: none;
|
|
296
|
+
box-shadow: none;
|
|
297
|
+
margin-block: 1rem;
|
|
298
|
+
border-radius: 50%;
|
|
299
|
+
border: 2px solid;
|
|
300
|
+
width: calc(100% - 4px);
|
|
301
|
+
height: calc(100% - 4px);
|
|
302
|
+
|
|
303
|
+
/* ! test */
|
|
304
|
+
background-color: hotpink;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.t1 {
|
|
308
|
+
grid-column: 1/5;
|
|
309
|
+
grid-row: 1/3;
|
|
310
|
+
aspect-ratio: 16/9;
|
|
311
|
+
|
|
312
|
+
/* ! test */
|
|
313
|
+
background-color: greenyellow;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.t2 {
|
|
317
|
+
grid-column: 2/6;
|
|
318
|
+
grid-row: 2/4;
|
|
319
|
+
aspect-ratio: 16/9;
|
|
320
|
+
place-self: end;
|
|
321
|
+
|
|
322
|
+
/* ! test */
|
|
323
|
+
background-color: aquamarine;
|
|
324
|
+
|
|
325
|
+
img {
|
|
326
|
+
object-fit: cover !important;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/* ! testing */
|
|
332
|
+
.composition .gatsby-image-wrapper,
|
|
333
|
+
.composition img {
|
|
334
|
+
max-width: 100%;
|
|
335
|
+
}
|