@rileybathurst/paddle 0.0.77 → 0.0.79

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "0.0.77",
4
+ "version": "0.0.79",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -1,21 +1,19 @@
1
1
  import * as React from "react"
2
2
 
3
3
  type PaddleSunsetTourTimesTypes = {
4
- allStrapiSunsetTourTime: {
5
- nodes: {
6
- id: string;
7
- startDate: string;
8
- endDate: string;
9
- startTime: string;
10
- endTime: string;
11
- }[];
12
- };
4
+ nodes: {
5
+ id: string;
6
+ startDate: string;
7
+ endDate: string;
8
+ startTime: string;
9
+ endTime: string;
10
+ }[];
13
11
  }
14
- export const PaddleSunsetTourTimes = ({ allStrapiSunsetTourTime }: PaddleSunsetTourTimesTypes) =>
12
+ export const PaddleSunsetTourTimes = ({ nodes }: PaddleSunsetTourTimesTypes) =>
15
13
  <section className="paddle-sunset-tour-times">
16
14
  {/* // TODO: stylize start with a storybook */}
17
15
  <p>*We adapt the time of our sunset tour to the sun</p>
18
- {allStrapiSunsetTourTime.nodes.map((time) => {
16
+ {nodes.map((time) => {
19
17
  const startDate = new Date(time.startDate);
20
18
  const endDate = new Date(time.endDate);
21
19
 
@@ -182,11 +182,8 @@ header {
182
182
  /* #TOP BAR */
183
183
  /*------------------*/
184
184
 
185
- /* this flashes in on every load which is bad but its currently out of use */
186
185
  .top-bar {
187
186
  transition: var(--slow);
188
- height: 0;
189
- opacity: 0;
190
187
  display: flex;
191
188
  justify-content: center;
192
189
  padding-block-start: 0.25rem;
@@ -198,6 +195,11 @@ header {
198
195
  }
199
196
  }
200
197
 
198
+ .top-bar.hidden {
199
+ height: 0;
200
+ opacity: 0;
201
+ }
202
+
201
203
  /*------------------------------------*/
202
204
  /* #SOCIAL */
203
205
  /*------------------------------------*/