diff --git a/src/app/(pages)/signIn/page.tsx b/src/app/(pageWoNav)/signIn/page.tsx similarity index 100% rename from src/app/(pages)/signIn/page.tsx rename to src/app/(pageWoNav)/signIn/page.tsx diff --git a/src/app/(pages)/signIn/signin.module.css b/src/app/(pageWoNav)/signIn/signin.module.css similarity index 100% rename from src/app/(pages)/signIn/signin.module.css rename to src/app/(pageWoNav)/signIn/signin.module.css diff --git a/src/app/(pages)/signUp/page.tsx b/src/app/(pageWoNav)/signUp/page.tsx similarity index 100% rename from src/app/(pages)/signUp/page.tsx rename to src/app/(pageWoNav)/signUp/page.tsx diff --git a/src/app/(pages)/signUp/signup.module.css b/src/app/(pageWoNav)/signUp/signup.module.css similarity index 100% rename from src/app/(pages)/signUp/signup.module.css rename to src/app/(pageWoNav)/signUp/signup.module.css diff --git a/src/app/(pages)/layout.tsx b/src/app/(pages)/layout.tsx new file mode 100644 index 0000000..358fb71 --- /dev/null +++ b/src/app/(pages)/layout.tsx @@ -0,0 +1,12 @@ +import Navbar from "../components/Navbar"; +import Footer from "../components/Footer"; + +export default function RootLayout({ children }) { + return ( +
+ + {children} +
+ ); +} diff --git a/src/app/(pages)/page.js b/src/app/(pages)/page.js new file mode 100644 index 0000000..1b4836d --- /dev/null +++ b/src/app/(pages)/page.js @@ -0,0 +1,88 @@ +import Image from "next/image"; +import Button from "../components/Button"; +import SlideBox from "../components/Slidebox"; +import aboutData from "../../../public/data/about"; +import Testimonial from "../components/Testimonial"; +import Projects from "../components/Projects"; +export const metadata = { + title: "Currenci | Home", + description: "Welcome", +}; + +export default function Home() { + return ( +
+
+ +
+
+

+ Valuing Today, Shaping Tomorrow +

+ +
+
+

+ Our Areas of Expertise +

+ {aboutData.map((item, index) => { + return ( + + distribution +
+

+ {item.title} +

+

+ {item.content} +

+
+
+ ); + })} +
+
+

+ Why Us? +

+ +
+
+

+ Projects +

+ +
+
+ ); +} diff --git a/src/app/api/v1/addTestimonial/route.ts b/src/app/api/v1/addTestimonial/route.ts index 0a56fbc..3f975a1 100644 --- a/src/app/api/v1/addTestimonial/route.ts +++ b/src/app/api/v1/addTestimonial/route.ts @@ -1,5 +1,6 @@ import jwt from "jsonwebtoken"; import { NextRequest, NextResponse } from "next/server"; +import moment from "moment-timezone"; import Testimonial from "../../../../model/Testimonial"; import dbConnect from "../../../../lib/dbConnect"; @@ -45,7 +46,7 @@ export async function POST(req: NextRequest) { const testimonial: TestimonialInter = { userId: (user as { id: number }).id, content, - createdAt: new Date(), + createdAt: moment().tz("Asia/Kolkata").toDate(), }; await Testimonial.create(testimonial); diff --git a/src/app/api/v1/editTeamMember/[memberId]/route.ts b/src/app/api/v1/editTeamMember/[memberId]/route.ts index ec4e9d8..794877b 100644 --- a/src/app/api/v1/editTeamMember/[memberId]/route.ts +++ b/src/app/api/v1/editTeamMember/[memberId]/route.ts @@ -51,7 +51,7 @@ export async function PUT(req: NextRequest) { teamMember.designation = designation || teamMember.designation; teamMember.email = email || teamMember.email; teamMember.linkedin = linkedin || teamMember.linkedin; - teamMember.updatedAt = moment().tz("Asia/Kolkata").format(); + teamMember.updatedAt = moment().tz("Asia/Kolkata").toDate(); await teamMember.save(); diff --git a/src/app/components/Button.tsx b/src/app/components/Button.tsx new file mode 100644 index 0000000..175b69b --- /dev/null +++ b/src/app/components/Button.tsx @@ -0,0 +1,16 @@ +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 new file mode 100644 index 0000000..06b5f59 --- /dev/null +++ b/src/app/components/Projects.tsx @@ -0,0 +1,91 @@ +"use client"; + +import Autoplay from "embla-carousel-autoplay"; +import useEmblaCarousel from "embla-carousel-react"; +import Image from "next/image"; + +const testData = [ + { + title: "Financial Modeling", + image: "distri.png", + content: + "Lorem ipsum dolor sit amet consectetur. Malesuada pharetra senectus fames metus in. Elementum sodales vestibulum maecenas vivamus justo leo varius. Elit pretium commodo libero malesuada sed nunc et. Fringilla cursus viverra tellus enim sed molestie vitae eu eu.", + }, + { + title: "Ratio Analysis", + image: "plan.png", + content: + "Lorem ipsum dolor sit amet consectetur. Malesuada pharetra senectus fames metus in. Elementum sodales vestibulum maecenas vivamus justo leo varius. Elit pretium commodo libero malesuada sed nunc et. Fringilla cursus viverra tellus enim sed molestie vitae eu eu.", + }, + { + title: "Forecasting", + image: "pred.png", + content: + "Lorem ipsum dolor sit amet consectetur. Malesuada pharetra senectus fames metus in. Elementum sodales vestibulum maecenas vivamus justo leo varius. Elit pretium commodo libero malesuada sed nunc et. Fringilla cursus viverra tellus enim sed molestie vitae eu eu.", + }, + { + title: "Discounted Cash Flow(DCF) (WACC)", + image: "money.png", + content: + "Lorem ipsum dolor sit amet consectetur. Malesuada pharetra senectus fames metus in. Elementum sodales vestibulum maecenas vivamus justo leo varius. Elit pretium commodo libero malesuada sed nunc et. Fringilla cursus viverra tellus enim sed molestie vitae eu eu.", + }, + { + title: "Terminal Value(FCFF)", + image: "val.png", + content: + "Lorem ipsum dolor sit amet consectetur. Malesuada pharetra senectus fames metus in. Elementum sodales vestibulum maecenas vivamus justo leo varius. Elit pretium commodo libero malesuada sed nunc et. Fringilla cursus viverra tellus enim sed molestie vitae eu eu.", + }, + { + title: "Intrinsic Growth", + image: "career.png", + content: + "Lorem ipsum dolor sit amet consectetur. Malesuada pharetra senectus fames metus in. Elementum sodales vestibulum maecenas vivamus justo leo varius. Elit pretium commodo libero malesuada sed nunc et. Fringilla cursus viverra tellus enim sed molestie vitae eu eu.", + }, +]; + +export default function Projects() { + const [emblaRef] = useEmblaCarousel({ loop: true }, [Autoplay()]); + return ( +
+
+
+ {testData.map((item, index) => ( +
+
+
+ project +
+
+

+ {item.title} +

+

+ {item.content} +

+
+
+
+ ))} +
+
+
+ ); +} diff --git a/src/app/components/Slidebox.tsx b/src/app/components/Slidebox.tsx new file mode 100644 index 0000000..0bbbf4d --- /dev/null +++ b/src/app/components/Slidebox.tsx @@ -0,0 +1,42 @@ +"use client"; + +import { useEffect, useRef } from "react"; + +export default function SlideBox({ children, side }) { + const ref = useRef(null); + + useEffect(() => { + const element = ref.current; + + const observer = new IntersectionObserver( + ([entry]) => { + if (entry.isIntersecting) { + element?.classList.add( + side ? "animate-slideLeft" : "animate-slideRight", + ); + element?.classList.remove("opacity-0"); + } + }, + { threshold: 1 }, + ); + + if (element) observer.observe(element); + + return () => { + if (element) observer.unobserve(element); + }; + }, [side]); + + return ( +
+
+ {children} +
+
+ ); +} diff --git a/src/app/components/Testimonial.tsx b/src/app/components/Testimonial.tsx index cda74a1..fc5a2df 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} + {item.content.split(" ").slice(0, 80).join(" ")}...

- +
batman

{item.user.name}

-
+

{truncateText(item.content, 50)} diff --git a/src/app/globals.scss b/src/app/globals.scss index 613d5e3..26a094a 100644 --- a/src/app/globals.scss +++ b/src/app/globals.scss @@ -4,9 +4,12 @@ body { height: 100%; - margin: 0; /* Remove any default margin */ - padding: 0; /* Remove any default padding */ - overflow-x: hidden; /* Prevent horizontal scrolling */ + margin: 0; + /* Remove any default margin */ + padding: 0; + /* Remove any default padding */ + overflow-x: hidden; + /* Prevent horizontal scrolling */ } @font-face { @@ -125,3 +128,22 @@ body { local("Sofia Pro Bold"), url("../../public/fonts/Sofia Pro Bold Az.woff") format("woff"); } + +.btn { + --c1: #fff; + --c2: #fda085; + text-transform: uppercase; + transition: 1s; + background: linear-gradient( + 90deg, + var(--c1, #f6d365), + var(--c2, #fda085) 51%, + var(--c2, #f6d365) + ) + var(--x, 0) / 200%; + --x: 100%; +} + +.btn:hover { + --x: 0%; +} diff --git a/src/app/layout.js b/src/app/layout.js index 443bed2..11cee27 100644 --- a/src/app/layout.js +++ b/src/app/layout.js @@ -1,5 +1,3 @@ -import Footer from "./components/Footer"; -import Navbar from "./components/Navbar"; import ToastHandler from "./components/ToastHandler"; import "./globals.scss"; @@ -13,9 +11,7 @@ export default function RootLayout({ children }) { return ( - {children} -