Skip to content

Commit

Permalink
add: Sliding card component
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaSingh-02 committed Oct 11, 2023
1 parent cd2d45c commit 7b05711
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 35 deletions.
41 changes: 6 additions & 35 deletions src/components/Fourth/fourth.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import React from "react";
import style from "./fourth.module.css";
import Image from "next/image";
import { slide as Slide } from "../Slides/slide";

export const Fourth = () => {
return (
<div className={style.fourth}>
<div className={style.fourthwrapper}>
<div className={style.fourthone}>
<div className={style.dotbox}>
<div className={ style.dots}></div>
<div className={ style.dots}></div>
<div className={ style.dots}></div>
<div className={style.dots}></div>
<div className={style.dots}></div>
<div className={style.dots}></div>
</div>
</div>
<div className={style.fourthtwo}>
Expand All @@ -21,7 +22,7 @@ export const Fourth = () => {
</div>
</div>
<div className={style.twoimage}>
<Image
<Image
className={style.image2}
src="/person.png"
alt="image here"
Expand All @@ -35,37 +36,7 @@ export const Fourth = () => {
take our word for it – read what our clients have to say about their
experience partnering with us.
</div>
<div className={style.fourthfour}>
<div className={style.fourthfourwrapper}>
<div className={style.fourtop}>
<div className={style.fourtopimage}>
<Image
className={style.image1}
src="/client.png"
alt="image here"
width={200}
height={200}
/>
</div>
<div className={style.fourtoptext}>
<p className={style.fourtoptext}>
John Doe <br />
Marketing Director, Company A
</p>
</div>
</div>

<div className={style.fourbottom}>
<div className={style.fourbottomwrapper}>
<p className={style.fourbottomtext}>
Working with Winfluence was a game-changer for us. Their
innovative digital strategies propelled our brand to new
heights, resulting in a 30% increase in website traffic
</p>
</div>
</div>
</div>
</div>
<Slide />
</div>
</div>
);
Expand Down
42 changes: 42 additions & 0 deletions src/components/Slides/slide.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
import style from "../Fourth/fourth.module.css";
import Image from "next/image";

import React from "react";

export const slide = () => {
return (
<>
<div className={style.fourthfour}>
<div className={style.fourthfourwrapper}>
<div className={style.fourtop}>
<div className={style.fourtopimage}>
<Image
className={style.image1}
src="/client.png"
alt="image here"
width={200}
height={200}
/>
</div>
<div className={style.fourtoptext}>
<p className={style.fourtoptext}>
John Doe <br />
Marketing Director, Company A
</p>
</div>
</div>

<div className={style.fourbottom}>
<div className={style.fourbottomwrapper}>
<p className={style.fourbottomtext}>
Working with Winfluence was a game-changer for us. Their
innovative digital strategies propelled our brand to new
heights, resulting in a 30% increase in website traffic
</p>
</div>
</div>
</div>
</div>
</>
);
};

0 comments on commit 7b05711

Please sign in to comment.