Merge branch 'fix/landing'
This commit is contained in:
commit
96f0dac414
@ -637,7 +637,7 @@ export default function BookNowPage() {
|
|||||||
Submitting...
|
Submitting...
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
"Submit Booking Request"
|
"Request Appointment"
|
||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
<p className={`text-xs text-center mt-4 ${isDark ? 'text-gray-400' : 'text-gray-500'}`}>
|
<p className={`text-xs text-center mt-4 ${isDark ? 'text-gray-400' : 'text-gray-500'}`}>
|
||||||
|
|||||||
@ -19,6 +19,7 @@ export function Finances() {
|
|||||||
"Visa"
|
"Visa"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
id="finances"
|
id="finances"
|
||||||
|
|||||||
@ -133,7 +133,7 @@ export function HeroSection() {
|
|||||||
>
|
>
|
||||||
<a href="/book-now">
|
<a href="/book-now">
|
||||||
<Calendar className="mr-2 h-5 w-5" />
|
<Calendar className="mr-2 h-5 w-5" />
|
||||||
Book Appointment
|
Request Appointment
|
||||||
<ArrowRight className="ml-2 h-5 w-5 group-hover:translate-x-1 transition-transform" />
|
<ArrowRight className="ml-2 h-5 w-5 group-hover:translate-x-1 transition-transform" />
|
||||||
</a>
|
</a>
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
@ -6,7 +6,7 @@ import { Heart, Menu, X } from "lucide-react";
|
|||||||
import { ThemeToggle } from "@/components/ThemeToggle";
|
import { ThemeToggle } from "@/components/ThemeToggle";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { LoginDialog } from "@/components/LoginDialog";
|
import { LoginDialog } from "@/components/LoginDialog";
|
||||||
import { useRouter } from "next/navigation";
|
import { useRouter, usePathname } from "next/navigation";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useAppTheme } from "@/components/ThemeProvider";
|
import { useAppTheme } from "@/components/ThemeProvider";
|
||||||
|
|
||||||
@ -16,6 +16,8 @@ export function Navbar() {
|
|||||||
const [loginDialogOpen, setLoginDialogOpen] = useState(false);
|
const [loginDialogOpen, setLoginDialogOpen] = useState(false);
|
||||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
const pathname = usePathname();
|
||||||
|
const isUserDashboard = pathname?.startsWith("/user/dashboard");
|
||||||
|
|
||||||
const scrollToSection = (id: string) => {
|
const scrollToSection = (id: string) => {
|
||||||
const element = document.getElementById(id);
|
const element = document.getElementById(id);
|
||||||
@ -71,6 +73,7 @@ export function Navbar() {
|
|||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
{/* Desktop Navigation */}
|
{/* Desktop Navigation */}
|
||||||
|
{!isUserDashboard && (
|
||||||
<div className="hidden lg:flex items-center gap-4 xl:gap-6">
|
<div className="hidden lg:flex items-center gap-4 xl:gap-6">
|
||||||
<button
|
<button
|
||||||
onClick={() => scrollToSection("about")}
|
onClick={() => scrollToSection("about")}
|
||||||
@ -91,9 +94,11 @@ export function Navbar() {
|
|||||||
Contact
|
Contact
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Desktop Actions */}
|
{/* Desktop Actions */}
|
||||||
<div className="hidden lg:flex items-center gap-2">
|
<div className="hidden lg:flex items-center gap-2">
|
||||||
|
{!isUserDashboard && (
|
||||||
<Button
|
<Button
|
||||||
size="sm"
|
size="sm"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
@ -102,6 +107,7 @@ export function Navbar() {
|
|||||||
>
|
>
|
||||||
Sign In
|
Sign In
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
<ThemeToggle />
|
<ThemeToggle />
|
||||||
<Button size="sm" className="hover:opacity-90 hover:scale-105 transition-all text-xs sm:text-sm" asChild>
|
<Button size="sm" className="hover:opacity-90 hover:scale-105 transition-all text-xs sm:text-sm" asChild>
|
||||||
<a href="/book-now">Book Now</a>
|
<a href="/book-now">Book Now</a>
|
||||||
@ -155,6 +161,8 @@ export function Navbar() {
|
|||||||
>
|
>
|
||||||
<div className="flex flex-col p-4 sm:p-6 space-y-3 sm:space-y-4">
|
<div className="flex flex-col p-4 sm:p-6 space-y-3 sm:space-y-4">
|
||||||
{/* Mobile Navigation Links */}
|
{/* Mobile Navigation Links */}
|
||||||
|
{!isUserDashboard && (
|
||||||
|
<>
|
||||||
<button
|
<button
|
||||||
onClick={() => scrollToSection("about")}
|
onClick={() => scrollToSection("about")}
|
||||||
className={`text-left text-sm sm:text-base font-medium py-2.5 sm:py-3 px-3 sm:px-4 rounded-lg transition-colors ${isDark ? 'text-gray-300 hover:bg-gray-800' : 'text-gray-700 hover:bg-gray-100'}`}
|
className={`text-left text-sm sm:text-base font-medium py-2.5 sm:py-3 px-3 sm:px-4 rounded-lg transition-colors ${isDark ? 'text-gray-300 hover:bg-gray-800' : 'text-gray-700 hover:bg-gray-100'}`}
|
||||||
@ -173,8 +181,11 @@ export function Navbar() {
|
|||||||
>
|
>
|
||||||
Contact
|
Contact
|
||||||
</button>
|
</button>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className={`border-t pt-3 sm:pt-4 mt-3 sm:mt-4 space-y-2 sm:space-y-3 ${isDark ? 'border-gray-700' : 'border-gray-200'}`}>
|
<div className={`border-t pt-3 sm:pt-4 mt-3 sm:mt-4 space-y-2 sm:space-y-3 ${isDark ? 'border-gray-700' : 'border-gray-200'}`}>
|
||||||
|
{!isUserDashboard && (
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
className={`w-full justify-start text-sm sm:text-base ${isDark ? 'border-gray-700 text-gray-300 hover:bg-gray-800' : ''}`}
|
className={`w-full justify-start text-sm sm:text-base ${isDark ? 'border-gray-700 text-gray-300 hover:bg-gray-800' : ''}`}
|
||||||
@ -185,6 +196,7 @@ export function Navbar() {
|
|||||||
>
|
>
|
||||||
Sign In
|
Sign In
|
||||||
</Button>
|
</Button>
|
||||||
|
)}
|
||||||
<Button
|
<Button
|
||||||
className="w-full justify-start bg-gradient-to-r from-rose-500 to-pink-600 hover:from-rose-600 hover:to-pink-700 text-white text-sm sm:text-base"
|
className="w-full justify-start bg-gradient-to-r from-rose-500 to-pink-600 hover:from-rose-600 hover:to-pink-700 text-white text-sm sm:text-base"
|
||||||
asChild
|
asChild
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user