Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pages/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import LandingPage from './components/LandingPage';
import ErrorBoundary from './components/ErrorBoundary';
import { useTranslation } from './i18n';
import FeaturesPage from './pages/FeaturesPage';
import FeaturesRoutePage from './pages/FeaturesRoutePage';

const BenchmarkPage = React.lazy(() => import(/* webpackChunkName: "benchmark-page" */ './pages/BenchmarkPage'));
const QuickStartPage = React.lazy(() => import(/* webpackChunkName: "quickstart-page" */ './pages/QuickStartPage'));
Expand Down Expand Up @@ -74,6 +75,7 @@ const App: React.FC = () => {
<Suspense fallback={<div style={{ minHeight: '100vh', background: '#000000' }} />}>
<Routes>
<Route path="/" element={<LandingPage><FeaturesPage /></LandingPage>} />
<Route path="/features" element={<LandingPage><FeaturesRoutePage /></LandingPage>} />
<Route path="/benchmark" element={<LandingPage><BenchmarkPage /></LandingPage>} />
<Route path="/quickstart" element={<LandingPage><QuickStartPage /></LandingPage>} />
<Route path="/docs" element={<DocsPage />} />
Expand Down
6 changes: 4 additions & 2 deletions pages/src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const LANG_OPTIONS: { value: Language; label: string }[] = [
];

const navTabs = [
{ path: '/', labelKey: 'navbar.features' },
{ path: '/features', labelKey: 'navbar.features' },
{ path: '/benchmark', labelKey: 'navbar.benchmark' },
{ path: '/quickstart', labelKey: 'navbar.quickstart' },
{ path: '/docs', labelKey: 'navbar.docs' },
Expand Down Expand Up @@ -80,7 +80,9 @@ const Navbar: React.FC = () => {
{!isMobile && (
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}>
{navTabs.map((tab) => {
const isActive = tab.path === '/' ? currentPath === '/' : currentPath.startsWith(tab.path);
const isActive = tab.path === '/features'
? (currentPath === '/' || currentPath.startsWith('/features'))
: currentPath.startsWith(tab.path);
return (
<button
key={tab.path}
Expand Down
19 changes: 19 additions & 0 deletions pages/src/pages/FeaturesRoutePage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from 'react';
import FeaturesSection from '../components/FeaturesSection';
import Footer from '../components/Footer';
import FadeInSection from '../components/FadeInSection';

const FeaturesRoutePage: React.FC = () => {
return (
<div style={{ paddingTop: 72 }}>
<FadeInSection>
<FeaturesSection />
</FadeInSection>
<FadeInSection>
<Footer />
</FadeInSection>
</div>
);
};

export default FeaturesRoutePage;
Loading