@rileybathurst/paddle 1.0.1 → 1.0.2
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/PaddleTestimonial.tsx +16 -0
- package/src/PaddleTestimonials.tsx +4 -12
- package/src/index.tsx +1 -2
- package/src/styles/nav.css +2 -0
- package/src/types/testimonial-types.ts +7 -0
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { TestimonialTypes } from "./types/testimonial-types"
|
|
3
|
+
|
|
4
|
+
export function PaddleTestimonial({ id, testimonial, customer, sign, location }: TestimonialTypes) {
|
|
5
|
+
return (
|
|
6
|
+
<li key={id}>
|
|
7
|
+
<p className='elbrus'>
|
|
8
|
+
<span className='denali font-serif'>“</span>
|
|
9
|
+
{testimonial}
|
|
10
|
+
<span className='denali font-serif'>”</span>
|
|
11
|
+
</p>
|
|
12
|
+
<p>{sign} {customer}</p>
|
|
13
|
+
<p className='kosciuszko'>{location}</p>
|
|
14
|
+
</li>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
|
+
import { PaddleTestimonial } from "./PaddleTestimonial"
|
|
3
|
+
import { type TestimonialTypes } from "./types/testimonial-types"
|
|
2
4
|
|
|
3
5
|
interface TestimonialsTypes {
|
|
4
|
-
nodes:
|
|
5
|
-
id: string;
|
|
6
|
-
testimonial: string;
|
|
7
|
-
sign: string;
|
|
8
|
-
customer: string;
|
|
9
|
-
location: string;
|
|
10
|
-
}[];
|
|
6
|
+
nodes: TestimonialTypes[];
|
|
11
7
|
}
|
|
12
8
|
export function PaddleTestimonials({ nodes }: TestimonialsTypes) {
|
|
13
9
|
return (
|
|
14
10
|
<ul className='testimonials condor'>
|
|
15
11
|
{nodes.map((testimonial) => (
|
|
16
|
-
<
|
|
17
|
-
<p className='elbrus'><span className='denali font-serif'>“</span>{testimonial.testimonial}<span className='denali font-serif'>”</span></p>
|
|
18
|
-
<p>{testimonial.sign} {testimonial.customer}</p>
|
|
19
|
-
<p className='kosciuszko'>{testimonial.location}</p>
|
|
20
|
-
</li>
|
|
12
|
+
<PaddleTestimonial key={testimonial.id} {...testimonial} />
|
|
21
13
|
))}
|
|
22
14
|
</ul>
|
|
23
15
|
)
|
package/src/index.tsx
CHANGED
|
@@ -12,11 +12,10 @@ export * from "./PaddleTicket";
|
|
|
12
12
|
export * from "./PaddleSunsetTourTimes";
|
|
13
13
|
export * from "./PaddleTopBar";
|
|
14
14
|
export * from "./PaddleSpecs";
|
|
15
|
+
export * from "./PaddleTestimonial";
|
|
15
16
|
|
|
16
17
|
// Organisms
|
|
17
18
|
export * from "./PaddleLocationDeck";
|
|
18
|
-
|
|
19
|
-
// Test a function
|
|
20
19
|
export * from "./PaddleTestimonials";
|
|
21
20
|
|
|
22
21
|
// Templates
|
package/src/styles/nav.css
CHANGED