@rileybathurst/paddle 0.0.105 → 0.0.107
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/PaddleLocationCard.tsx +38 -38
- package/src/styles/layout.css +5 -2
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ interface ContentTypes {
|
|
|
74
74
|
season_end?: string;
|
|
75
75
|
|
|
76
76
|
}
|
|
77
|
-
function Content({ svg, name, address, description, opening_time, closing_time, streetAddress, addressLocality, addressRegion, postalCode, commonName, season_start, season_end
|
|
77
|
+
function Content({ svg, name, address, description, opening_time, closing_time, streetAddress, addressLocality, addressRegion, postalCode, commonName, season_start, season_end }: ContentTypes) {
|
|
78
78
|
return (
|
|
79
79
|
<>
|
|
80
80
|
<div
|
|
@@ -94,8 +94,6 @@ function Content({ svg, name, address, description, opening_time, closing_time,
|
|
|
94
94
|
{addressRegion ? <span>{addressRegion} </span> : null}
|
|
95
95
|
{postalCode ? <span>{postalCode}<br /></span> : null}
|
|
96
96
|
</address>
|
|
97
|
-
|
|
98
|
-
{name === "On Water Rental" ? <Phone phone={phone} /> : null}
|
|
99
97
|
</>
|
|
100
98
|
) :
|
|
101
99
|
|
|
@@ -123,7 +121,6 @@ function Content({ svg, name, address, description, opening_time, closing_time,
|
|
|
123
121
|
{description.data.description}
|
|
124
122
|
</Markdown>
|
|
125
123
|
)}
|
|
126
|
-
{/* // TODO: add phone but dont break the link on link rule {name === "On Water Rental" ? <Phone /> : null} */}
|
|
127
124
|
</div>
|
|
128
125
|
</>
|
|
129
126
|
)
|
|
@@ -133,11 +130,41 @@ export function PaddleLocationCard({ svg, name, link, address, description, open
|
|
|
133
130
|
|
|
134
131
|
if (link.includes('http')) {
|
|
135
132
|
return (
|
|
136
|
-
<
|
|
133
|
+
<div className="location-wrapper">
|
|
134
|
+
<a href={link}
|
|
135
|
+
className={`location ${background}`}
|
|
136
|
+
target="_blank"
|
|
137
|
+
rel="noopener noreferrer"
|
|
138
|
+
title={name}
|
|
139
|
+
>
|
|
140
|
+
<Content
|
|
141
|
+
svg={svg}
|
|
142
|
+
name={name}
|
|
143
|
+
address={address}
|
|
144
|
+
description={description}
|
|
145
|
+
opening_time={opening_time}
|
|
146
|
+
closing_time={closing_time}
|
|
147
|
+
|
|
148
|
+
streetAddress={streetAddress}
|
|
149
|
+
addressLocality={addressLocality}
|
|
150
|
+
addressRegion={addressRegion}
|
|
151
|
+
postalCode={postalCode}
|
|
152
|
+
commonName={commonName}
|
|
153
|
+
|
|
154
|
+
season_start={season_start}
|
|
155
|
+
season_end={season_end}
|
|
156
|
+
|
|
157
|
+
/>
|
|
158
|
+
</a>
|
|
159
|
+
{name === "On Water Rental" && phone ? <Phone phone={phone} /> : null}
|
|
160
|
+
</div>
|
|
161
|
+
)
|
|
162
|
+
}
|
|
163
|
+
return (
|
|
164
|
+
<div className="location-wrapper">
|
|
165
|
+
<Link
|
|
166
|
+
to={link}
|
|
137
167
|
className={`location ${background}`}
|
|
138
|
-
target="_blank"
|
|
139
|
-
rel="noopener noreferrer"
|
|
140
|
-
title={name}
|
|
141
168
|
>
|
|
142
169
|
<Content
|
|
143
170
|
svg={svg}
|
|
@@ -155,36 +182,9 @@ export function PaddleLocationCard({ svg, name, link, address, description, open
|
|
|
155
182
|
|
|
156
183
|
season_start={season_start}
|
|
157
184
|
season_end={season_end}
|
|
158
|
-
phone={phone}
|
|
159
|
-
|
|
160
185
|
/>
|
|
161
|
-
</
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
return (
|
|
165
|
-
<Link
|
|
166
|
-
to={link}
|
|
167
|
-
className={`location ${background}`}
|
|
168
|
-
>
|
|
169
|
-
<Content
|
|
170
|
-
svg={svg}
|
|
171
|
-
name={name}
|
|
172
|
-
address={address}
|
|
173
|
-
description={description}
|
|
174
|
-
opening_time={opening_time}
|
|
175
|
-
closing_time={closing_time}
|
|
176
|
-
|
|
177
|
-
streetAddress={streetAddress}
|
|
178
|
-
addressLocality={addressLocality}
|
|
179
|
-
addressRegion={addressRegion}
|
|
180
|
-
postalCode={postalCode}
|
|
181
|
-
commonName={commonName}
|
|
182
|
-
|
|
183
|
-
season_start={season_start}
|
|
184
|
-
season_end={season_end}
|
|
185
|
-
phone={phone}
|
|
186
|
-
|
|
187
|
-
/>
|
|
188
|
-
</Link>
|
|
186
|
+
</Link>
|
|
187
|
+
{name === "On Water Rental" && phone ? <Phone phone={phone} /> : null}
|
|
188
|
+
</div>
|
|
189
189
|
)
|
|
190
190
|
}
|
package/src/styles/layout.css
CHANGED
|
@@ -221,8 +221,11 @@ header {
|
|
|
221
221
|
margin-block-end: var(--kilimanjaro);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.location {
|
|
224
|
+
.location-wrapper {
|
|
225
225
|
max-width: var(--condor);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.location {
|
|
226
229
|
display: flex;
|
|
227
230
|
flex-flow: row wrap;
|
|
228
231
|
align-items: center;
|
|
@@ -251,7 +254,7 @@ header {
|
|
|
251
254
|
}
|
|
252
255
|
}
|
|
253
256
|
|
|
254
|
-
.location.false:not(:last-child) {
|
|
257
|
+
.location-wrapper.false:not(:last-child) {
|
|
255
258
|
border-block-end: 1px solid;
|
|
256
259
|
border-radius: 0;
|
|
257
260
|
}
|