Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add: Sliding card component #23

Merged
merged 1 commit into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
</>
);
};
Loading