Skip to content

Commit c14caac

Browse files
committed
feat: change the testimonials text
1 parent 5dc683c commit c14caac

File tree

3 files changed

+41
-30
lines changed

3 files changed

+41
-30
lines changed

src/components/cards/Story.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export default function Story({ story, position, gridPosition, count, showingBub
5050
/**
5151
* Hook from use-onclickoutside.
5252
* it takes two arguments, the ref of the element, which are:
53-
* - The ref of the element on which the out side click will be detected
54-
* - The callback to be executed when the out side click is detected
53+
* - The ref of the element on which the outside click will be detected
54+
* - The callback to be executed when the outside click is detected
5555
*/
5656
useOnClickOutside(bubbleRef, () => {
5757
if (showBubble) {
@@ -104,7 +104,7 @@ export default function Story({ story, position, gridPosition, count, showingBub
104104
<div
105105
ref={bubbleRef}
106106
onClick={() => showStoryBubble()}
107-
className="absolute border border-solid border-gray-200 bg-gray-50 rounded-full p-1 top-2/4 left-2/4 -m-7 flex flex-row-reverse"
107+
className={`absolute border border-solid border-gray-200 bg-gray-50 rounded-full p-1 top-2/4 left-2/4 -m-7 flex flex-row-reverse ${showBubble && "z-50"}`}
108108
style={{
109109
transform: getPosition(),
110110
}}

src/components/sections/homepage/Testimonials.tsx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,23 @@ const stories = (t: TFunction<"translation", undefined, "translation">): Testimo
4141
},
4242
{
4343
icon: "/assets/img/user_jet.png",
44-
content: `${t("testimonials.text")}`,
44+
content: `Thanks for your support, love and care on Dacade(Telegram and Website) it has being an awesome experience. I have learnt a lot and am still learning a lot. Thanks a lot`,
4545
},
4646
{
4747
icon: "/assets/img/user_tosin_edit.png",
48-
content: `${t("testimonials.text")}`,
48+
content: `I just made submission of my quote deapp on dacade.org
49+
50+
I'm so excited i took the course really enjoyed and learnt more
51+
52+
Please your feedback is welcome 😊
53+
`,
4954
},
5055
{
5156
icon: "/assets/img/user_susen.png",
57+
content: `Dacade is really encouraging, I didn't realize the little that I know would matter. Thank you for making us learn more and to make research too.`,
58+
},
59+
{
60+
icon: "/assets/img/yannick.png",
5261
content: `${t("testimonials.text")}`,
5362
},
5463
{

src/components/sections/homepage/_partials/testimonials/Stories.tsx

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function TestimonialsSection({ list }: TestimonialsSectionProps):
6464
};
6565

6666
/**
67-
* Clear the icon which is showing the popup/buble
67+
* Clear the icon which is showing the popup/bubble
6868
* @date 4/4/2023 - 11:56:53 AM
6969
*
7070
* @param {number} card
@@ -95,30 +95,32 @@ export default function TestimonialsSection({ list }: TestimonialsSectionProps):
9595

9696
return (
9797
<div className="relative w-full top-0 h-screen left-0 z-0 hidden md:block md:max-h-3xl lg:max-h-4xl xl:max-h-7.1xl">
98-
{grids.map((grid, gridIndex) => (
99-
<span
100-
key={gridIndex}
101-
className="border border-solid border-gray-200 m-auto rounded-full absolute inset-0 xl:max-w-6xl xl:max-h-6xl md:max-h-.5xl md:max-w-.5xl lg:max-w-3xl lg:max-h-3xl"
102-
style={{
103-
width: `${getSize(gridIndex)}vh`,
104-
height: `${getSize(gridIndex)}vh`,
105-
zIndex: showingBubble.grid === gridIndex ? 99 : grids.length - gridIndex,
106-
}}
107-
>
108-
{grid.map((story, storyIndex) => (
109-
<Story
110-
key={storyIndex}
111-
story={story}
112-
position={storyIndex}
113-
count={grid.length}
114-
gridPosition={gridIndex}
115-
showingBubble={showingBubble}
116-
onShowBubble={() => onBubbleShow(storyIndex, gridIndex)}
117-
onHideBubble={() => onBubbleHide(storyIndex, gridIndex)}
118-
/>
119-
))}
120-
</span>
121-
))}
98+
{grids.map((grid, gridIndex) => {
99+
return (
100+
<span
101+
key={gridIndex}
102+
className="border border-solid border-gray-200 m-auto rounded-full absolute inset-0 xl:max-w-6xl xl:max-h-6xl md:max-h-.5xl md:max-w-.5xl lg:max-w-3xl lg:max-h-3xl"
103+
style={{
104+
width: `${getSize(gridIndex)}vh`,
105+
height: `${getSize(gridIndex)}vh`,
106+
zIndex: showingBubble.grid === gridIndex ? 99 : grids.length - gridIndex,
107+
}}
108+
>
109+
{grid.map((story, storyIndex) => (
110+
<Story
111+
key={storyIndex}
112+
story={story}
113+
position={storyIndex}
114+
count={grid.length}
115+
gridPosition={gridIndex}
116+
showingBubble={showingBubble}
117+
onShowBubble={() => onBubbleShow(storyIndex, gridIndex)}
118+
onHideBubble={() => onBubbleHide(storyIndex, gridIndex)}
119+
/>
120+
))}
121+
</span>
122+
);
123+
})}
122124
</div>
123125
);
124126
}

0 commit comments

Comments
 (0)