Merge version_7_1778169270409 into main

Merge version_7_1778169270409 into main
This commit was merged in pull request #4.
This commit is contained in:
2026-05-07 15:59:09 +00:00
10 changed files with 45 additions and 20 deletions

View File

@@ -1,12 +1,24 @@
import { Routes, Route } from 'react-router-dom';
import Layout from './components/Layout';
import HomePage from './pages/HomePage';
import FeaturesPage from './pages/Features';
import SolutionsPage from './pages/Solutions';
import PricingPage from './pages/Pricing';
import ClientsPage from './pages/Clients';
import FaqPage from './pages/Faq';
import MetricsPage from './pages/Metrics';
export default function App() {
return (
<Routes>
<Route element={<Layout />}>
<Route path="/" element={<HomePage />} />
<Route path="/features" element={<FeaturesPage />} />
<Route path="/solutions" element={<SolutionsPage />} />
<Route path="/pricing" element={<PricingPage />} />
<Route path="/clients" element={<ClientsPage />} />
<Route path="/faq" element={<FaqPage />} />
<Route path="/metrics" element={<MetricsPage />} />
</Route>
</Routes>
);

View File

@@ -8,31 +8,31 @@ export default function Layout() {
const navItems = [
{
"name": "Home",
"href": "#home"
"href": "/"
},
{
"name": "Features",
"href": "#features"
"href": "/features"
},
{
"name": "Solutions",
"href": "#solutions"
"href": "/solutions"
},
{
"name": "Pricing",
"href": "#pricing"
"href": "/pricing"
},
{
"name": "Clients",
"href": "#clients"
"href": "/clients"
},
{
"name": "FAQ",
"href": "#faq"
"href": "/faq"
},
{
"name": "Metrics",
"href": "#metrics"
"href": "/metrics"
}
];

View File

@@ -3,6 +3,7 @@ import { motion, AnimatePresence } from "motion/react";
import { Plus, ArrowUpRight } from "lucide-react";
import { cls } from "@/lib/utils";
import Button from "@/components/ui/Button";
import { Link } from "react-router-dom";
interface NavbarFloatingProps {
logo: string;
@@ -10,15 +11,6 @@ interface NavbarFloatingProps {
ctaButton: { text: string; href: string };
}
const handleNavClick = (e: React.MouseEvent<HTMLAnchorElement>, href: string, onClose?: () => void) => {
if (href.startsWith("#")) {
e.preventDefault();
const element = document.getElementById(href.slice(1));
element?.scrollIntoView({ behavior: "smooth", block: "start" });
}
onClose?.();
};
const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
const [menuOpen, setMenuOpen] = useState(false);
@@ -79,9 +71,9 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
<div className="px-3 xl:px-4 2xl:px-5 py-0 md:py-1 2xl:py-2 rounded-theme-capped bg-white/10">
{navItems.map((item, index) => (
<div key={item.name}>
<a
href={item.href}
onClick={(e) => handleNavClick(e, item.href, () => setMenuOpen(false))}
<Link
to={item.href}
onClick={() => setMenuOpen(false)}
className="group flex items-center justify-between py-3 w-full"
>
<span className="text-xl md:text-2xl font-medium text-foreground group-hover:ml-3 transition-[margin] duration-300">
@@ -91,7 +83,7 @@ const NavbarFloating = ({ logo, navItems, ctaButton }: NavbarFloatingProps) => {
className="h-(--text-xl) md:h-(--text-2xl) w-auto text-foreground group-hover:rotate-45 group-hover:mr-3 transition-all duration-300"
strokeWidth={2}
/>
</a>
</Link>
{index < navItems.length - 1 && (
<div className="h-px bg-accent/50" />
)}

3
src/pages/Clients.tsx Normal file
View File

@@ -0,0 +1,3 @@
export default function ClientsPage() {
return <h1>Clients Page</h1>;
}

3
src/pages/Faq.tsx Normal file
View File

@@ -0,0 +1,3 @@
export default function FaqPage() {
return <h1>FAQ Page</h1>;
}

3
src/pages/Features.tsx Normal file
View File

@@ -0,0 +1,3 @@
export default function FeaturesPage() {
return <h1>Features Page</h1>;
}

3
src/pages/Home.tsx Normal file
View File

@@ -0,0 +1,3 @@
export default function HomePage() {
return <h1>Home Page</h1>;
}

3
src/pages/Metrics.tsx Normal file
View File

@@ -0,0 +1,3 @@
export default function MetricsPage() {
return <h1>Metrics Page</h1>;
}

3
src/pages/Pricing.tsx Normal file
View File

@@ -0,0 +1,3 @@
export default function PricingPage() {
return <h1>Pricing Page</h1>;
}

3
src/pages/Solutions.tsx Normal file
View File

@@ -0,0 +1,3 @@
export default function SolutionsPage() {
return <h1>Solutions Page</h1>;
}