diff --git a/app/(landing)/landing/page.tsx b/app/(landing)/landing/page.tsx index 6aee620..588bf6d 100644 --- a/app/(landing)/landing/page.tsx +++ b/app/(landing)/landing/page.tsx @@ -2,22 +2,20 @@ import Navbar from "@/components/Navbar"; import Companies from "@/components/Sections/Companies"; import HeroSection from "@/components/Sections/HeroSection"; import Stats from "@/components/Sections/Stats"; -import { PricingTable } from "@clerk/nextjs"; import React from "react"; -const page = () => { +const Page = () => { return ( -
-
- -
+
+ {/* Navbar */} + + {/* Sections */} - {/* */}
); }; -export default page; +export default Page; diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 17ae54c..d9fbe0b 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -1,86 +1,85 @@ "use client"; + import { cn } from "@/lib/utils"; import { SignedIn, SignedOut } from "@clerk/nextjs"; import Image from "next/image"; import Link from "next/link"; import { usePathname } from "next/navigation"; import React from "react"; -import { ModeToggle } from "./ModeToggle"; +import LandingMobileNav from "@/components/landing/MobileNav"; const Navbar = () => { const pathname = usePathname(); - const isActive = pathname === ""; + return ( -
-
+
+
+ {/* Logo */} -
- DesignFlow logo -

+ + logo +

DesignFlow

-
- {/* Nav */} - - {/* Button */} -
+ + {/* Auth Buttons */} +
-
- - Dashboard - -
+ + Dashboard +
+ -
- - Sign In - - - Sign Up - -
+ + Sign In + + + Sign Up +
- {/* */} +
+ + {/* Mobile Menu */} +
+
-
+
); }; diff --git a/components/Sections/Companies.tsx b/components/Sections/Companies.tsx index 1d60449..19b7f0a 100644 --- a/components/Sections/Companies.tsx +++ b/components/Sections/Companies.tsx @@ -1,25 +1,28 @@ import Image from "next/image"; -import React from "react"; const Companies = () => { return ( -
-

- Trusted by over 14,540 businesses to enhance learning and drive - educational growth. +

+ Trusted by over 14,540 businesses to enhance learning and drive educational growth.

-
- - - - - - + +
+ {[1, 2, 3, 4, 5, 6].map((n) => ( + Company Logo + ))}
-
+ ); }; diff --git a/components/Sections/HeroSection.tsx b/components/Sections/HeroSection.tsx index 1e7e979..6b3dd5e 100644 --- a/components/Sections/HeroSection.tsx +++ b/components/Sections/HeroSection.tsx @@ -4,37 +4,36 @@ import Image from "next/image"; import { BackgroundRippleEffect } from "../ui/BackgroundRippleEffect"; import { Badge } from "@/components/ui/badge"; -import React from "react"; - const HeroSection = () => { return ( -
+
+ -
-
- - 3500+ pro users - -
-

- Simplify, Scale, Succeed with Our SaaS Solution -

-

- Empower your custom relations by getting trusted clients, faster - and easier -

-
-
+ +
+ + 3500+ pro users + + +

+ Simplify, Scale, Succeed with Our SaaS Solution +

+ +

+ Empower your customer relations by getting trusted clients, faster and easier. +

+ DesignFlow leads dashboard preview -
+ +
); }; diff --git a/components/Sections/Stats.tsx b/components/Sections/Stats.tsx index da4e3d6..7c25142 100644 --- a/components/Sections/Stats.tsx +++ b/components/Sections/Stats.tsx @@ -1,36 +1,32 @@ -import React from "react"; - const Stats = () => { return ( -
-
-
-
-

- Empowering Growth and Innovation with Cutting-Edge Technology - Solutions -

+
+ +

+ Empowering Growth and Innovation with Cutting-Edge Technology Solutions +

+ +
+
+

2468+

+

Pro Users

-
-
-

2468+

-

Pro Users

-
-
-

297+

-

Customers Managed

-
-
-

20,000+

-

Leads Found

-
+
+

297+

+

Customers Managed

+
+
+

20,000+

+

Leads Found

+
-
+ ); }; diff --git a/components/landing/MobileNav.tsx b/components/landing/MobileNav.tsx new file mode 100644 index 0000000..4c6d38f --- /dev/null +++ b/components/landing/MobileNav.tsx @@ -0,0 +1,104 @@ +"use client"; + +import { motion, AnimatePresence } from "framer-motion"; +import Link from "next/link"; +import { X, Menu } from "lucide-react"; +import { useState } from "react"; +import { useUser } from "@clerk/nextjs"; + +const navLinks = [ + { href: "/landing", label: "Home" }, + { href: "#partners", label: "Partners" }, + { href: "#why-us", label: "Why Us?" }, +]; + +export default function LandingMobileNav() { + const [open, setOpen] = useState(false); + const { isSignedIn } = useUser(); + + return ( + <> + {/* Mobile Menu Button */} + + + + {open && ( + <> + {/* Background Overlay */} + setOpen(false)} + initial={{ opacity: 0 }} + animate={{ opacity: 1 }} + exit={{ opacity: 0 }} + /> + + {/* Right Slide Menu */} + + {/* Close Button */} + + + {/* Menu Links */} + + + {/* Auth Buttons */} +
+ {isSignedIn ? ( + setOpen(false)} + className="block bg-blue-600 text-white py-2 px-4 rounded-lg text-center font-semibold" + > + Go to Dashboard + + ) : ( + <> + setOpen(false)} + className="block bg-blue-600 text-white py-2 px-4 rounded-lg text-center font-semibold" + > + Sign In + + + setOpen(false)} + className="block border border-blue-600 text-blue-600 py-2 px-4 rounded-lg text-center font-semibold" + > + Create Account + + + )} +
+
+ + )} +
+ + ); +}