initial version
This commit is contained in:
1 parent
a2926561e5
commit
acbf36024e
158 files changed
+1362
-118
No files matched your search
@@ -0,0 +1,58 @@
|
||||
import Image from "next/image";
|
||||
import React from "react";
|
||||
|
||||
export default function AboutMe() {
|
||||
return (
|
||||
<div
|
||||
className="flex flex-nowrap justify-between items-center"
|
||||
id="about-me"
|
||||
>
|
||||
<div className="img-container">
|
||||
<div className="top-half-circle">
|
||||
<Image
|
||||
src={"/images/profile.png"}
|
||||
alt="profile picture"
|
||||
width={538}
|
||||
height={617}
|
||||
className="bottom-0"
|
||||
/>
|
||||
</div>
|
||||
<div className="bottom-half-circle"></div>
|
||||
</div>
|
||||
<div className="flex flex-col items-start ms-[105px] w-[756px]">
|
||||
<h2 className="text-black text-[65px] font-[600]">About Me</h2>
|
||||
<p className="text-black text-[21px] font-[400]">
|
||||
Lorem ipsum dolor sit amet consectetur. Tristique amet sed massa nibh
|
||||
lectus netus in. Aliquet donec morbi convallis pretium. Turpis tempus
|
||||
pharetra
|
||||
</p>
|
||||
<ul className="flex flex-col gap-10 mt-10">
|
||||
<li>
|
||||
<h3 className="mb-2">UI</h3>
|
||||
<div className="bg-[#EDECEC] h relative w-[753px] h-[12px] rounded-lg">
|
||||
<span className="bg-[#FD6F00] w-[50%] h-[12px] absolute rounded-lg progress"></span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<h3 className="mb-2">UX</h3>
|
||||
<div className="bg-[#EDECEC] h relative w-[753px] h-[12px] rounded-lg">
|
||||
<span className="bg-[#FD6F00] w-[80%] h-[12px] absolute rounded-lg progress"></span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<h3 className="mb-2">Fronend</h3>
|
||||
<div className="bg-[#EDECEC] h relative w-[753px] h-[12px] rounded-lg">
|
||||
<span className="bg-[#FD6F00] w-[95%] h-[12px] absolute rounded-lg progress"></span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<h3 className="mb-2">Backend</h3>
|
||||
<div className="bg-[#EDECEC] h relative w-[753px] h-[12px] rounded-lg">
|
||||
<span className="bg-[#FD6F00] w-[90%] h-[12px] absolute rounded-lg progress"></span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import React from "react";
|
||||
|
||||
export default function Contact() {
|
||||
return (
|
||||
<div className="flex flex-col max-w-[930px] mt-10 gap-[30px]" id="contact">
|
||||
<h2 className="text-[#000] text-[65px] font-[600] text-center">
|
||||
Lets Design Together
|
||||
</h2>
|
||||
<p className="text-[#000] text-[21px] font-[600] text-center">
|
||||
Lorem ipsum dolor sit amet consectetur. Tristique amet sed massa nibh
|
||||
lectus netus in. Aliquet donec morbi convallis pretium
|
||||
</p>
|
||||
<div className="flex items-center gap-[25px] justify-center">
|
||||
<input
|
||||
type="text"
|
||||
className="bg-[#F8F8F8] text-[#797979] text-[21px] font-[400] p-[22px] border border-[#AFAFAF] rounded-lg min-w-[400px]"
|
||||
placeholder="Enter your Email address here..."
|
||||
name="email"
|
||||
id="email"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
className="text-[#fff] text-[24px] font-[600] px-[35px] py-[20px] bg-[#FD6F00] rounded-lg"
|
||||
>
|
||||
Contact Me
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
import Image from "next/image";
|
||||
import React from "react";
|
||||
|
||||
export default function Header() {
|
||||
return (
|
||||
<div className="flex flex-col items-center">
|
||||
<h2 className="text-black text-[65px] font-[600] my-10">My Projects</h2>
|
||||
<p className="text-black text-center text-[21px] font-[400] w-[930px]">
|
||||
Lorem ipsum dolor sit amet consectetur. Mollis erat duis aliquam mauris
|
||||
est risus lectus. Phasellus consequat urna tellus
|
||||
</p>
|
||||
<ul className="flex items-center justify-center gap-5 mt-20 mb-10">
|
||||
<li className="px-[20px] py-[10px] bg-[#F8F8F8] border border-[#545454] rounded-md text-[24px] text-[#000] font-[400] hover:cursor-pointer hover:border-[#FD6F00]">
|
||||
All
|
||||
</li>
|
||||
<li className="px-[20px] py-[10px] bg-[#F8F8F8] border border-[#545454] rounded-md text-[24px] text-[#000] font-[400] hover:cursor-pointer hover:border-[#FD6F00]">
|
||||
UI/UX
|
||||
</li>
|
||||
<li className="px-[20px] py-[10px] bg-[#FD6F00] border border-[#545454] rounded-md text-[24px] text-[#FFFFFF] font-[400] hover:cursor-pointer hover:border-[#FD6F00]">
|
||||
Web Design
|
||||
</li>
|
||||
<li className="px-[20px] py-[10px] bg-[#F8F8F8] border border-[#545454] rounded-md text-[24px] text-[#000] font-[400] hover:cursor-pointer hover:border-[#FD6F00]">
|
||||
App Design
|
||||
</li>
|
||||
<li className="px-[20px] py-[10px] bg-[#F8F8F8] border border-[#545454] rounded-md text-[24px] text-[#000] font-[400] hover:cursor-pointer hover:border-[#FD6F00]">
|
||||
Graphic Design
|
||||
</li>
|
||||
</ul>
|
||||
<div className="w-[1420px] flex gap-[30px] items-center justify-between">
|
||||
<div className="flex flex-wrap w-[445px]">
|
||||
<div className="my-5 w-full bg-[#FFEBDB] relative h-[490px] overflow-hidden">
|
||||
<Image
|
||||
src={"/images/web-design-11.png"}
|
||||
width={270}
|
||||
height={70}
|
||||
alt="UI/UX Vector"
|
||||
className="absolute bottom-[-5px] left-[-5px] z-20"
|
||||
/>
|
||||
<Image
|
||||
src={"/images/web-design-12.png"}
|
||||
width={270}
|
||||
height={70}
|
||||
alt="UI/UX Vector"
|
||||
className="absolute top-[-5px] right-[-5px] z-10"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<h5 className="text-[#FD6F00] text-[19px] font-[400] w-full">
|
||||
Web Design
|
||||
</h5>
|
||||
<p className="text-black text-[24px] font-[700] hover:cursor-pointer">
|
||||
AirCalling Landing Page Design
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-wrap w-[445px]">
|
||||
<div className="my-5 w-full bg-[#FFEBDB] relative h-[490px] overflow-hidden">
|
||||
<Image
|
||||
src={"/images/web-design-21.png"}
|
||||
width={270}
|
||||
height={70}
|
||||
alt="UI/UX Vector"
|
||||
className="absolute bottom-[-5px] left-[-5px] z-20"
|
||||
/>
|
||||
<Image
|
||||
src={"/images/web-design-22.png"}
|
||||
width={270}
|
||||
height={70}
|
||||
alt="UI/UX Vector"
|
||||
className="absolute top-[-5px] right-[-5px] z-10"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<h5 className="text-[#FD6F00] text-[19px] font-[400] w-full">
|
||||
Web Design
|
||||
</h5>
|
||||
<p className="text-black text-[24px] font-[700] hover:cursor-pointer">
|
||||
Business Landing Page Design
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-wrap w-[445px]">
|
||||
<div className="my-5 w-full bg-[#FFEBDB] relative h-[490px] overflow-hidden">
|
||||
<Image
|
||||
src={"/images/web-design-31.png"}
|
||||
width={270}
|
||||
height={70}
|
||||
alt="UI/UX Vector"
|
||||
className="absolute bottom-[-5px] left-[-5px] z-20"
|
||||
/>
|
||||
<Image
|
||||
src={"/images/web-design-32.png"}
|
||||
width={270}
|
||||
height={70}
|
||||
alt="UI/UX Vector"
|
||||
className="absolute top-[-5px] right-[-5px] z-10"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<h5 className="text-[#FD6F00] text-[19px] font-[400] w-full">
|
||||
Web Design
|
||||
</h5>
|
||||
<p className="text-black text-[24px] font-[700] hover:cursor-pointer">
|
||||
Ecom Web Page Design
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,418 @@
|
||||
"use client";
|
||||
import Image from "next/image";
|
||||
import React, { useState } from "react";
|
||||
|
||||
type Category = {
|
||||
label: string;
|
||||
active: boolean;
|
||||
};
|
||||
|
||||
type Image = {
|
||||
src: string;
|
||||
position: string;
|
||||
zIndex: number;
|
||||
};
|
||||
|
||||
type Project = {
|
||||
title: string;
|
||||
category: string;
|
||||
images: Image[];
|
||||
};
|
||||
|
||||
const categories: Category[] = [
|
||||
{ label: "All", active: false },
|
||||
{ label: "UI/UX", active: false },
|
||||
{ label: "Web Design", active: true },
|
||||
{ label: "App Design", active: false },
|
||||
{ label: "Graphic Design", active: false },
|
||||
];
|
||||
|
||||
const projects: Project[] = [
|
||||
{
|
||||
title: "AirCalling Landing Page Design",
|
||||
category: "Web Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/web-design-11.png",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/web-design-12.png",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Business Landing Page Design",
|
||||
category: "Web Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/web-design-21.png",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/web-design-22.png",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Ecom Web Page Design",
|
||||
category: "Web Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/web-design-31.png",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/web-design-32.png",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Creative Portfolio Design",
|
||||
category: "Web Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/web-design-11.png",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/web-design-12.png",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Personal Blog Design",
|
||||
category: "Web Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/web-design-21.png",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/web-design-22.png",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Mobile App Design",
|
||||
category: "App Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/app-design-11.jpg",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/app-design-12.jpg",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Task Management App Design",
|
||||
category: "App Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/app-design-21.png",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/app-design-22.png",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "E-Commerce App Design",
|
||||
category: "App Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/app-design-31.jpg",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/app-design-32.jpg",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Fitness Tracker App Design",
|
||||
category: "App Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/app-design-11.jpg",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/app-design-12.jpg",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Music Streaming App Design",
|
||||
category: "App Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/app-design-21.png",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/app-design-22.png",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Creative Poster Design",
|
||||
category: "Graphic Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/graphic-design-11.webp",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/graphic-design-12.webp",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Marketing Flyer Design",
|
||||
category: "Graphic Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/graphic-design-21.webp",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/graphic-design-22.webp",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Event Invitation Design",
|
||||
category: "Graphic Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/graphic-design-31.avif",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/graphic-design-33.jpeg",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Magazine Cover Design",
|
||||
category: "Graphic Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/graphic-design-21.webp",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/graphic-design-22.webp",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Magazine Cover Design",
|
||||
category: "Graphic Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/graphic-design-21.webp",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/graphic-design-22.webp",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Magazine Cover Design",
|
||||
category: "Graphic Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/graphic-design-21.webp",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/graphic-design-22.webp",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Magazine Cover Design",
|
||||
category: "Graphic Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/graphic-design-21.webp",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/graphic-design-22.webp",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "Brand Identity Design",
|
||||
category: "Graphic Design",
|
||||
images: [
|
||||
{
|
||||
src: "/images/graphic-design-11.webp",
|
||||
position: "bottom-[-5px] left-[-5px]",
|
||||
zIndex: 20,
|
||||
},
|
||||
{
|
||||
src: "/images/graphic-design-12.webp",
|
||||
position: "top-[-5px] right-[-5px]",
|
||||
zIndex: 10,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default function MyProjects() {
|
||||
const [selectedCategory, setSelectedCategory] = useState<string>("All");
|
||||
|
||||
// Group projects by category
|
||||
const groupProjectsByCategory = (projects: Project[]) => {
|
||||
return projects.reduce<Record<string, Project[]>>((acc, project) => {
|
||||
const category = project.category;
|
||||
if (!acc[category]) {
|
||||
acc[category] = [];
|
||||
}
|
||||
acc[category].push(project);
|
||||
return acc;
|
||||
}, {});
|
||||
};
|
||||
|
||||
const groupedProjects = groupProjectsByCategory(projects);
|
||||
|
||||
// Filter projects by selected category
|
||||
const filteredProjects: Project[] =
|
||||
selectedCategory === "All"
|
||||
? selectProjectsForAll(groupedProjects).slice(0, 6)
|
||||
: projects.filter((project) => project.category === selectedCategory).slice(0, 6);
|
||||
|
||||
// Select 6 projects for the "All" category
|
||||
function selectProjectsForAll(groupedProjects: Record<string, Project[]>): Project[] {
|
||||
const selected: Project[] = [];
|
||||
const remaining: Project[] = [];
|
||||
|
||||
// Select at least one project from each category
|
||||
for (const category in groupedProjects) {
|
||||
if (groupedProjects[category].length > 0) {
|
||||
selected.push(groupedProjects[category][0]);
|
||||
remaining.push(...groupedProjects[category].slice(1));
|
||||
}
|
||||
}
|
||||
|
||||
// Add remaining projects if less than 6
|
||||
while (selected.length < 6 && remaining.length > 0) {
|
||||
selected.push(remaining.shift()!);
|
||||
}
|
||||
|
||||
return selected.slice(0, 6); // Maximum 6 projects
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center" id="projects">
|
||||
<h2 className="text-black text-[65px] font-[600] my-10">My Projects</h2>
|
||||
<p className="text-black text-center text-[21px] font-[400] w-[930px]">
|
||||
Lorem ipsum dolor sit amet consectetur. Mollis erat duis aliquam mauris
|
||||
est risus lectus. Phasellus consequat urna tellus
|
||||
</p>
|
||||
<ul className="flex items-center justify-center gap-5 mt-20 mb-10">
|
||||
{categories.map((category, index) => (
|
||||
<li
|
||||
key={index}
|
||||
onClick={() => setSelectedCategory(category.label)}
|
||||
className={`px-[20px] py-[10px] bg-[#F8F8F8] border border-[#545454] rounded-md text-[24px] font-[400] hover:cursor-pointer hover:border-[#FD6F00] ${
|
||||
selectedCategory === category.label
|
||||
? "bg-[#FD6F00] text-[#FFFFFF]"
|
||||
: "text-[#000]"
|
||||
}`}
|
||||
>
|
||||
{category.label}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<div className="w-[1420px] flex flex-wrap gap-[30px] items-center justify-between">
|
||||
{filteredProjects.length > 0 ? (
|
||||
filteredProjects.map((project, index) => (
|
||||
<div key={index} className="flex flex-wrap w-[445px] project">
|
||||
<div className="my-5 w-full bg-[#FFEBDB] relative h-[490px] overflow-hidden">
|
||||
{project.images.map((image, idx) => (
|
||||
<img
|
||||
key={idx}
|
||||
src={image.src}
|
||||
alt="UI/UX Vector"
|
||||
className={`absolute ${image.position} z-${image.zIndex} max-w-[350px]`}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
<h5 className="text-[#FD6F00] text-[19px] font-[400] w-full">
|
||||
{project.category}
|
||||
</h5>
|
||||
<p className="text-black text-[24px] font-[700] hover:cursor-pointer">
|
||||
{project.title}
|
||||
</p>
|
||||
</div>
|
||||
))
|
||||
) : (
|
||||
<p className="text-black text-[24px] font-[700] w-full text-center flex flex-col items-center py-5 gap-5">
|
||||
<Image src={"/images/icons/no-data-illustration.jpg"} quality={90} alt="nothing fonded icon" width={250} height={250} />
|
||||
Nothing found!
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
import Image from "next/image";
|
||||
import React from "react";
|
||||
|
||||
// تعریف یک نوع برای سرویسها
|
||||
type Service = {
|
||||
title: string;
|
||||
description: string;
|
||||
imageSrc: string;
|
||||
altText: string;
|
||||
};
|
||||
|
||||
// لیست سرویسها به عنوان یک آرایه از آبجکتها
|
||||
const services: Service[] = [
|
||||
{
|
||||
title: "UI/UX",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet consectetur. Morbi diam nisi nam diam interdum",
|
||||
imageSrc: "/images/ui-ux-vector.svg",
|
||||
altText: "UI/UX Vector",
|
||||
},
|
||||
{
|
||||
title: "Web Design",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet consectetur. Morbi diam nisi nam diam interdum",
|
||||
imageSrc: "/images/web-design-vector.svg",
|
||||
altText: "Web Design Vector",
|
||||
},
|
||||
{
|
||||
title: "App Design",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet consectetur. Morbi diam nisi nam diam interdum",
|
||||
imageSrc: "/images/app-design-vector.svg",
|
||||
altText: "App Design Vector",
|
||||
},
|
||||
{
|
||||
title: "Graphic Design",
|
||||
description:
|
||||
"Lorem ipsum dolor sit amet consectetur. Morbi diam nisi nam diam interdum",
|
||||
imageSrc: "/images/graphic-design-vector.svg",
|
||||
altText: "Graphic Design Vector",
|
||||
},
|
||||
];
|
||||
|
||||
export default function Services() {
|
||||
return (
|
||||
<div className="flex flex-col items-center" id="services">
|
||||
<h2 className="text-black text-[65px] font-[600] my-10">Services</h2>
|
||||
<p className="text-black text-center text-[21px] font-[400] w-[930px]">
|
||||
Lorem ipsum dolor sit amet consectetur. Tristique amet sed massa nibh
|
||||
lectus netus in. Aliquet donec morbi convallis pretium
|
||||
</p>
|
||||
<div className="w-[1420px] flex gap-[30px] items-center justify-between mt-20 service">
|
||||
{services.map((service, index) => (
|
||||
<div
|
||||
key={index}
|
||||
className="flex flex-wrap items-center p-[22px] bg-[#F8F8F8] rounded-lg"
|
||||
>
|
||||
<div className="my-5 w-full">
|
||||
<img
|
||||
src={service.imageSrc}
|
||||
alt={service.altText}
|
||||
/>
|
||||
</div>
|
||||
<h3 className="text-black text-[32px] font-[600]">
|
||||
{service.title}
|
||||
</h3>
|
||||
<p className="text-black text-[19px] font-[400]">
|
||||
{service.description}
|
||||
</p>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
"use client";
|
||||
import Image from "next/image";
|
||||
import React, { useEffect, useState } from "react";
|
||||
|
||||
export default function Testimonials() {
|
||||
const [currentIndex, setCurrentIndex] = useState(0);
|
||||
const [autoSlideInterval, setAutoSlideInterval] = useState<any>(null);
|
||||
|
||||
const nextSlide = () => {
|
||||
setCurrentIndex((prevIndex) =>
|
||||
prevIndex === testimonials.length - 1 ? 0 : prevIndex + 1
|
||||
);
|
||||
};
|
||||
|
||||
const prevSlide = () => {
|
||||
setCurrentIndex((prevIndex) =>
|
||||
prevIndex === 0 ? testimonials.length - 1 : prevIndex - 1
|
||||
);
|
||||
};
|
||||
useEffect(() => {
|
||||
const interval = setInterval(nextSlide, 5000); // Slide every 5 seconds
|
||||
setAutoSlideInterval(interval);
|
||||
return () => clearInterval(interval); // Clean up interval on component unmount
|
||||
}, []);
|
||||
|
||||
const testimonials = [
|
||||
{
|
||||
name: "Sarah Johnson",
|
||||
position: "Founder & CEO of Innovate Solutions",
|
||||
image: "/images/user-1.svg",
|
||||
quote:
|
||||
"Lorem ipsum dolor sit amet consectetur. In enim cursus odio accumsan. Id leo urna velit neque mattis id tellus arcu ondimentum. Augue dictum dolor elementum convallis dignissim malesuada commodo ultrices.",
|
||||
},
|
||||
{
|
||||
name: "Michael Lee",
|
||||
position: "Chief Executive Officer at Tech Innovators",
|
||||
image: "/images/user-1.svg",
|
||||
quote:
|
||||
"Lorem ipsum dolor sit amet consectetur. In enim cursus odio accumsan. Id leo urna velit neque mattis id tellus arcu ondimentum. Augue dictum dolor elementum convallis dignissim malesuada commodo ultrices.",
|
||||
},
|
||||
{
|
||||
name: "Emma Davis",
|
||||
position: "CEO & Lead Strategist at Visionary Ventures",
|
||||
image: "/images/user-1.svg",
|
||||
quote:
|
||||
"Lorem ipsum dolor sit amet consectetur. In enim cursus odio accumsan. Id leo urna velit neque mattis id tellus arcu ondimentum. Augue dictum dolor elementum convallis dignissim malesuada commodo ultrices.",
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
<div className="flex flex-col items-center" id="testimonials">
|
||||
<h2 className="text-black text-[65px] font-[600] my-10">Testominials</h2>
|
||||
<p className="text-black text-center text-[21px] font-[400] w-[930px]">
|
||||
Lorem ipsum dolor sit amet consectetur. Mollis erat duis aliquam mauris
|
||||
est risus lectus. Phasellus consequat urna tellus
|
||||
</p>
|
||||
<div className="max-w-[1800px] flex gap-[30px] items-center justify-center mt-10 overflow-hidden hover:cursor-grab select-none">
|
||||
{testimonials.map((testimonial, index) => (
|
||||
<div
|
||||
className={`flex items-center justify-around min-w-[800px] bg-[#F8F8F8] rounded-lg gap-10 p-[25px] ${
|
||||
currentIndex === index ? "" : " blur-[2px]"
|
||||
}`}
|
||||
key={index}
|
||||
>
|
||||
<Image
|
||||
src={testimonial.image}
|
||||
width={235}
|
||||
height={235}
|
||||
alt="user profile picture"
|
||||
/>
|
||||
<div className="flex flex-wrap items-center">
|
||||
<p className="text-black text-[21px] font-[400] w-full mb-5">
|
||||
<span className="text-[#FD6F00] text-[21px] font-[700] me-2">
|
||||
“
|
||||
</span>
|
||||
{testimonial.quote}
|
||||
|
||||
<span className="text-[#FD6F00] text-[21px] font-[700] ms-2">
|
||||
“
|
||||
</span>
|
||||
</p>
|
||||
<h5 className="text-[#000] text-[24px] font-[500] w-full">
|
||||
{testimonial.name}
|
||||
</h5>
|
||||
<p className="text-[#000] text-[19px] font-[400] w-full">
|
||||
{testimonial.position}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
<ul className="flex w-full items-center justify-center gap-5 mt-10">
|
||||
{testimonials.map((_, index) => (
|
||||
<li
|
||||
key={index}
|
||||
className={`${
|
||||
currentIndex === index ? "bg-[#FD6F00]" : "bg-[#D9D9D9]"
|
||||
} rounded-lg h-[16px] w-[40px] hover:cursor-pointer`}
|
||||
onClick={() => setCurrentIndex(index)}
|
||||
></li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user