From 55d6b46cb0335b91205126ebec2af3752a9741a7 Mon Sep 17 00:00:00 2001 From: A-nirvana Date: Thu, 9 Jan 2025 20:17:06 +0530 Subject: [PATCH] fix design --- src/app/(pages)/page.js | 26 +++++++++---------- src/app/components/Button.tsx | 4 +-- src/app/components/Projects.tsx | 14 +++++------ src/app/components/Slidebox.tsx | 4 +-- src/app/components/Testimonial.tsx | 40 +++++++++++++++++++----------- 5 files changed, 50 insertions(+), 38 deletions(-) diff --git a/src/app/(pages)/page.js b/src/app/(pages)/page.js index 6da0201..131988e 100644 --- a/src/app/(pages)/page.js +++ b/src/app/(pages)/page.js @@ -12,7 +12,7 @@ export const metadata = { export default function Home() { return (
-
+
-
+

Valuing Today, Shaping Tomorrow

-
+

Our Areas of Expertise @@ -45,17 +45,17 @@ export default function Home() { alt="distribution" width={350} height={350} - className="h-[20vw] w-auto" + className="h-auto w-[20vw]" />

{item.title}

{item.content} @@ -65,18 +65,18 @@ export default function Home() { ); })}

-
+

Why Us?

-
+

Projects diff --git a/src/app/components/Button.tsx b/src/app/components/Button.tsx index eb7aadb..2d950fe 100644 --- a/src/app/components/Button.tsx +++ b/src/app/components/Button.tsx @@ -2,10 +2,10 @@ import Link from "next/link"; export default function Button({ children, href }) { return ( -
+

{children} diff --git a/src/app/components/Projects.tsx b/src/app/components/Projects.tsx index 98e6e10..10cda60 100644 --- a/src/app/components/Projects.tsx +++ b/src/app/components/Projects.tsx @@ -47,7 +47,7 @@ export default function Projects() { const [emblaRef] = useEmblaCarousel({ loop: true }, [Autoplay()]); return (

-
+
{testData.map((item, index) => (
-

{item.title} -

+

{item.content}

diff --git a/src/app/components/Slidebox.tsx b/src/app/components/Slidebox.tsx index 5ea5976..4ec1bae 100644 --- a/src/app/components/Slidebox.tsx +++ b/src/app/components/Slidebox.tsx @@ -30,10 +30,10 @@ export default function SlideBox({ children, side }) { return (
{children}
diff --git a/src/app/components/Testimonial.tsx b/src/app/components/Testimonial.tsx index 09fa5a2..36d599b 100644 --- a/src/app/components/Testimonial.tsx +++ b/src/app/components/Testimonial.tsx @@ -55,6 +55,7 @@ const testData = [ user: { userId: 1, name: "Batman", + role: "CEO at Doe", image: "https://4kwallpapers.com/images/wallpapers/batman-dc-superheroes-dc-comics-cosplay-2048x2048-954.jpg", }, @@ -65,6 +66,7 @@ const testData = [ user: { userId: 2, name: "Batman", + role: "CEO at Doe", image: "https://4kwallpapers.com/images/wallpapers/batman-dc-superheroes-dc-comics-cosplay-2048x2048-954.jpg", }, @@ -75,6 +77,7 @@ const testData = [ user: { userId: 3, name: "Batman", + role: "CEO at Doe", image: "https://4kwallpapers.com/images/wallpapers/batman-dc-superheroes-dc-comics-cosplay-2048x2048-954.jpg", }, @@ -85,6 +88,7 @@ const testData = [ user: { userId: 4, name: "Batman", + role: "CEO at Doe", image: "https://4kwallpapers.com/images/wallpapers/batman-dc-superheroes-dc-comics-cosplay-2048x2048-954.jpg", }, @@ -95,6 +99,7 @@ const testData = [ user: { userId: 5, name: "Batman", + role: "CEO at Doe", image: "https://4kwallpapers.com/images/wallpapers/batman-dc-superheroes-dc-comics-cosplay-2048x2048-954.jpg", }, @@ -105,6 +110,7 @@ const testData = [ user: { userId: 6, name: "Batman", + role: "CEO at Doe", image: "https://4kwallpapers.com/images/wallpapers/batman-dc-superheroes-dc-comics-cosplay-2048x2048-954.jpg", }, @@ -115,6 +121,7 @@ const testData = [ user: { userId: 7, name: "Batman", + role: "CEO at Doe", image: "https://4kwallpapers.com/images/wallpapers/batman-dc-superheroes-dc-comics-cosplay-2048x2048-954.jpg", }, @@ -144,24 +151,29 @@ export default function Testimonial() { className="min-w-0 flex-[0_0_60vw] md:flex-[0_0_100%] flex justify-center" key={item.user.userId} > -
-
+
+
batman -

- {item.user.name} -

+
+

+ {item.user.role} +

+

+ {item.user.name} +

+
-
- +
+

- {item.content.split(" ").slice(0, 55).join(" ")}... + {item.content.split(" ").slice(0, 80).join(" ")}...

- +