@rileybathurst/paddle 1.9.39 → 1.9.41
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/paddle-compare.tsx +9 -20
- package/src/paddle-time.tsx +0 -15
- package/src/styles/cards.css +0 -2
- package/src/styles/color.css +19 -21
- package/src/styles/lists.css +4 -0
- package/src/styles/purchase.css +0 -2
- package/src/styles/tables.css +16 -0
- package/src/types/paddle-compare-types.tsx +1 -0
package/package.json
CHANGED
package/src/paddle-compare.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
|
+
import { Link } from "gatsby";
|
|
2
3
|
|
|
3
4
|
import { PaddleTime } from './paddle-time';
|
|
4
5
|
import { PaddleBookNow } from './paddle-book-now';
|
|
@@ -25,6 +26,7 @@ type CompareDetailsTypes = {
|
|
|
25
26
|
peek_base: PaddleCompareTypes["peek_base"];
|
|
26
27
|
strapiBranchName: PaddleCompareTypes["strapiBranchName"];
|
|
27
28
|
tours: PaddleCompareTypes["tours"];
|
|
29
|
+
breadcrumb: PaddleCompareTypes["breadcrumb"];
|
|
28
30
|
};
|
|
29
31
|
|
|
30
32
|
const CompareDetails = ({
|
|
@@ -44,19 +46,10 @@ const CompareDetails = ({
|
|
|
44
46
|
peeks,
|
|
45
47
|
peek_base,
|
|
46
48
|
strapiBranchName,
|
|
47
|
-
tours
|
|
49
|
+
tours,
|
|
50
|
+
breadcrumb
|
|
48
51
|
}: CompareDetailsTypes) => {
|
|
49
52
|
|
|
50
|
-
// TODO: testing
|
|
51
|
-
console.log("start");
|
|
52
|
-
console.log(start);
|
|
53
|
-
console.log("finish");
|
|
54
|
-
console.log(finish);
|
|
55
|
-
console.log("duration");
|
|
56
|
-
console.log(duration);
|
|
57
|
-
console.log("timeframe");
|
|
58
|
-
console.log(timeframe);
|
|
59
|
-
|
|
60
53
|
const time = PaddleTime({
|
|
61
54
|
start: start,
|
|
62
55
|
finish: finish,
|
|
@@ -64,11 +57,6 @@ const CompareDetails = ({
|
|
|
64
57
|
timeframe: timeframe,
|
|
65
58
|
});
|
|
66
59
|
|
|
67
|
-
// TODO: testing
|
|
68
|
-
console.log("time", time);
|
|
69
|
-
console.log(time.entry);
|
|
70
|
-
console.log(time.value);
|
|
71
|
-
|
|
72
60
|
return (
|
|
73
61
|
<section>
|
|
74
62
|
<select
|
|
@@ -90,13 +78,13 @@ const CompareDetails = ({
|
|
|
90
78
|
</select>
|
|
91
79
|
|
|
92
80
|
<h2 className="kilimanjaro">
|
|
93
|
-
<
|
|
81
|
+
<Link to={`/${breadcrumb}/${link}`}>{name}</Link>
|
|
94
82
|
</h2>
|
|
95
83
|
|
|
96
84
|
<h4 className="capitalize">{sport}</h4>
|
|
97
85
|
|
|
98
86
|
<p>
|
|
99
|
-
{time.
|
|
87
|
+
{time.entry}
|
|
100
88
|
</p>
|
|
101
89
|
|
|
102
90
|
<p className="capitalize">
|
|
@@ -124,8 +112,7 @@ const CompareDetails = ({
|
|
|
124
112
|
)
|
|
125
113
|
}
|
|
126
114
|
|
|
127
|
-
|
|
128
|
-
export const PaddleCompare = ({ tours, strapiBranchName, peek_base }: PaddleCompareTypes) => {
|
|
115
|
+
export const PaddleCompare = ({ tours, breadcrumb, strapiBranchName, peek_base }: PaddleCompareTypes) => {
|
|
129
116
|
|
|
130
117
|
console.log(tours);
|
|
131
118
|
|
|
@@ -233,6 +220,7 @@ export const PaddleCompare = ({ tours, strapiBranchName, peek_base }: PaddleComp
|
|
|
233
220
|
peeks={peeks1}
|
|
234
221
|
fitness={fitness1}
|
|
235
222
|
|
|
223
|
+
breadcrumb={breadcrumb}
|
|
236
224
|
strapiBranchName={strapiBranchName}
|
|
237
225
|
peek_base={peek_base}
|
|
238
226
|
|
|
@@ -255,6 +243,7 @@ export const PaddleCompare = ({ tours, strapiBranchName, peek_base }: PaddleComp
|
|
|
255
243
|
peeks={peeks2}
|
|
256
244
|
fitness={fitness2}
|
|
257
245
|
|
|
246
|
+
breadcrumb={breadcrumb}
|
|
258
247
|
strapiBranchName={strapiBranchName}
|
|
259
248
|
peek_base={peek_base}
|
|
260
249
|
|
package/src/paddle-time.tsx
CHANGED
|
@@ -19,21 +19,12 @@ interface TimeTypes {
|
|
|
19
19
|
}
|
|
20
20
|
export const PaddleTime = ({ start, finish, duration, timeframe, slug, allStrapiSunsetTourTime }: TimeTypes) => {
|
|
21
21
|
|
|
22
|
-
// TODO: testing
|
|
23
|
-
console.log("paddle time");
|
|
24
|
-
console.log(start);
|
|
25
|
-
console.log(finish);
|
|
26
|
-
console.log(duration);
|
|
27
|
-
console.log(timeframe);
|
|
28
|
-
|
|
29
22
|
// TODO: sunset is a whole thing
|
|
30
23
|
const currentDate = new Date();
|
|
31
24
|
let sunsetStartTime = '';
|
|
32
25
|
let sunsetEndTime = '';
|
|
33
26
|
|
|
34
27
|
if (slug === 'sunset' && allStrapiSunsetTourTime && allStrapiSunsetTourTime.nodes) {
|
|
35
|
-
// TODO: testing
|
|
36
|
-
console.log("sunset");
|
|
37
28
|
|
|
38
29
|
allStrapiSunsetTourTime.nodes.map((time) => {
|
|
39
30
|
const startDate = new Date(time.startDate);
|
|
@@ -50,8 +41,6 @@ console.log("sunset");
|
|
|
50
41
|
|
|
51
42
|
// * compare gives a not set value
|
|
52
43
|
if (timeframe && timeframe !== "not set") {
|
|
53
|
-
// TODO: testing
|
|
54
|
-
console.log("timeframe");
|
|
55
44
|
|
|
56
45
|
return {
|
|
57
46
|
// key: timeframe, cant return key its a react special prop
|
|
@@ -62,10 +51,6 @@ console.log("timeframe");
|
|
|
62
51
|
}
|
|
63
52
|
|
|
64
53
|
if (duration) {
|
|
65
|
-
|
|
66
|
-
// TODO: testing
|
|
67
|
-
console.log("duration");
|
|
68
|
-
|
|
69
54
|
if (duration > 90) {
|
|
70
55
|
const hours = Math.floor(duration / 60);
|
|
71
56
|
const mins = duration % 60;
|
package/src/styles/cards.css
CHANGED
package/src/styles/color.css
CHANGED
|
@@ -32,14 +32,7 @@ body:has(#storybook-root) {
|
|
|
32
32
|
background-color: var(--sand-100);
|
|
33
33
|
|
|
34
34
|
@media (prefers-color-scheme: dark) {
|
|
35
|
-
background-color: var(--lake-
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
body.tahoe-city {
|
|
40
|
-
@media (prefers-color-scheme: dark) {
|
|
41
|
-
background-color: var(--navy-300);
|
|
42
|
-
color: var(--neutral-100);
|
|
35
|
+
background-color: var(--lake-800);
|
|
43
36
|
}
|
|
44
37
|
}
|
|
45
38
|
|
|
@@ -103,8 +96,8 @@ hr {
|
|
|
103
96
|
|
|
104
97
|
.top-bar {
|
|
105
98
|
clip-path: inset(0 -100vmax);
|
|
106
|
-
|
|
107
|
-
|
|
99
|
+
background-color: white;
|
|
100
|
+
box-shadow: 0 0 0 100vmax white;
|
|
108
101
|
text-align: center;
|
|
109
102
|
|
|
110
103
|
@media (prefers-color-scheme: dark) {
|
|
@@ -113,17 +106,6 @@ hr {
|
|
|
113
106
|
}
|
|
114
107
|
}
|
|
115
108
|
|
|
116
|
-
@media (prefers-color-scheme: light) {
|
|
117
|
-
.tahoe-city .top-bar {
|
|
118
|
-
/* background-color: var(--neutral-100); */
|
|
119
|
-
/* box-shadow: 0 0 0 100vmax var(--neutral-100); */
|
|
120
|
-
background-color: white;
|
|
121
|
-
box-shadow: 0 0 0 100vmax white;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/* * dark back to clean theme */
|
|
125
|
-
}
|
|
126
|
-
|
|
127
109
|
.south-tahoe {
|
|
128
110
|
.top-bar {
|
|
129
111
|
background-color: var(--lake-100);
|
|
@@ -188,3 +170,19 @@ hr {
|
|
|
188
170
|
.specs .spec__unit {
|
|
189
171
|
color: grey;
|
|
190
172
|
}
|
|
173
|
+
|
|
174
|
+
/*------------------------------------*/
|
|
175
|
+
/* #BREADCRUMBS */
|
|
176
|
+
/*------------------------------------*/
|
|
177
|
+
|
|
178
|
+
.react-aria-Breadcrumbs {
|
|
179
|
+
clip-path: inset(0 -100vmax);
|
|
180
|
+
background-color: white;
|
|
181
|
+
box-shadow: 0 0 0 100vmax white;
|
|
182
|
+
text-align: center;
|
|
183
|
+
|
|
184
|
+
@media (prefers-color-scheme: dark) {
|
|
185
|
+
background-color: black;
|
|
186
|
+
box-shadow: 0 0 0 100vmax black;
|
|
187
|
+
}
|
|
188
|
+
}
|
package/src/styles/lists.css
CHANGED
|
@@ -56,6 +56,7 @@ ol {
|
|
|
56
56
|
li {
|
|
57
57
|
/* ? is this needed its a flex */
|
|
58
58
|
display: inline;
|
|
59
|
+
margin: 0;
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
li:not(:last-child)::after {
|
|
@@ -83,6 +84,9 @@ ol {
|
|
|
83
84
|
ul {
|
|
84
85
|
list-style: none;
|
|
85
86
|
padding-inline-start: 0;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-flow: row wrap;
|
|
89
|
+
gap: var(--vinson);
|
|
86
90
|
|
|
87
91
|
li {
|
|
88
92
|
height: 2lh;
|
package/src/styles/purchase.css
CHANGED
|
@@ -18,13 +18,11 @@
|
|
|
18
18
|
display: flex;
|
|
19
19
|
flex-direction: column;
|
|
20
20
|
justify-content: space-between;
|
|
21
|
-
border: 1px solid transparent;
|
|
22
21
|
border-radius: var(--card-radius);
|
|
23
22
|
/* needed to control nested elements */
|
|
24
23
|
text-decoration: none;
|
|
25
24
|
box-shadow: var(--penumbra);
|
|
26
25
|
max-width: calc(100vw - 2rem);
|
|
27
|
-
background-color: white;
|
|
28
26
|
|
|
29
27
|
.purchase-collage {
|
|
30
28
|
display: grid;
|
package/src/styles/tables.css
CHANGED
|
@@ -10,7 +10,13 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
flex: 1 1 10rem;
|
|
12
12
|
flex-direction: column;
|
|
13
|
+
|
|
14
|
+
/* * follow the color of hr */
|
|
13
15
|
border-right: 0.5px solid var(--neutral-400);
|
|
16
|
+
|
|
17
|
+
@media (prefers-color-scheme: dark) {
|
|
18
|
+
border-color: var(--neutral-600);
|
|
19
|
+
}
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
.column:last-child {
|
|
@@ -50,3 +56,13 @@
|
|
|
50
56
|
font-size: var(--kosciuszko);
|
|
51
57
|
}
|
|
52
58
|
}
|
|
59
|
+
|
|
60
|
+
.tahoe-city .pricing-chart .column,
|
|
61
|
+
.tahoe-city .pricing-chart .title,
|
|
62
|
+
.tahoe-city .pricing-chart p {
|
|
63
|
+
border-color: var(--sand-400);
|
|
64
|
+
|
|
65
|
+
@media (prefers-color-scheme: dark) {
|
|
66
|
+
border-color: var(--lake-500);
|
|
67
|
+
}
|
|
68
|
+
}
|