Skip to content

Commit e8fa47b

Browse files
feat: Create pricing page
Implement the pricing page with a comparison table and a calculator.
1 parent 0775072 commit e8fa47b

File tree

4 files changed

+484
-0
lines changed

4 files changed

+484
-0
lines changed

src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const AffiliatePage = lazy(() => import("./pages/AffiliatePage"));
1717
const TrackingPage = lazy(() => import("./pages/TrackingPage"));
1818
const ShortLinkPage = lazy(() => import("./pages/ShortLinkPage"));
1919
const LandingPage = lazy(() => import("./pages/LandingPage"));
20+
const PricingPage = lazy(() => import("./pages/PricingPage"));
2021
const TrackingJsRoute = lazy(() => import("./pages/TrackingJsRoute"));
2122
const TestProductsPage = lazy(() => import("./pages/TestProductsPage"));
2223
const TestThankYouPage = lazy(() => import("./pages/TestThankYouPage"));
@@ -60,6 +61,7 @@ const DomainRouter = () => {
6061
: <LandingPage />
6162
} />
6263

64+
<Route path="/pricing" element={<PricingPage />} />
6365
<Route path="/dashboard" element={<Index />} />
6466
<Route path="/advanced-stats" element={<AdvancedStatsPage />} />
6567
<Route path="/advanced-stats/:campaignId" element={<AdvancedStatsPage />} />

src/components/DashboardHeader.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ export const DashboardHeader = ({ user, onLogout }: DashboardHeaderProps) => {
3333

3434
{/* Desktop Navigation */}
3535
<div className="hidden lg:flex items-center space-x-4">
36+
<a
37+
href="/pricing"
38+
className="text-sm text-slate-700 hover:text-slate-900 px-3 py-2 rounded-md transition-colors"
39+
>
40+
Tarifs
41+
</a>
3642
<div className="text-sm text-slate-700 bg-white/80 backdrop-blur-sm px-4 py-2 rounded-full border border-slate-200">
3743
Bonjour, <span className="font-semibold">{user?.displayName || user?.email}</span>
3844
</div>
@@ -63,6 +69,12 @@ export const DashboardHeader = ({ user, onLogout }: DashboardHeaderProps) => {
6369
{isMobileMenuOpen && (
6470
<div className="lg:hidden border-t border-slate-200/80 bg-white/95 backdrop-blur-xl rounded-b-lg">
6571
<div className="py-4 space-y-3">
72+
<a
73+
href="/pricing"
74+
className="block text-sm text-slate-700 hover:text-slate-900 px-4 py-2 rounded-lg transition-colors"
75+
>
76+
Tarifs
77+
</a>
6678
<div className="text-sm text-slate-700 px-4 py-2 bg-slate-50 rounded-lg">
6779
Bonjour, <span className="font-semibold">{user?.displayName || user?.email}</span>
6880
</div>

src/pages/LandingPage.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ const LandingPage = () => {
128128
<a href="#features" className="text-slate-600 hover:text-slate-900 font-medium transition-all hover:scale-105">
129129
Fonctionnalités
130130
</a>
131+
<a href="/pricing" className="text-slate-600 hover:text-slate-900 font-medium transition-all hover:scale-105">
132+
Tarifs
133+
</a>
131134
<a href="#dashboard" className="text-slate-600 hover:text-slate-900 font-medium transition-all hover:scale-105">
132135
Dashboard
133136
</a>

0 commit comments

Comments
 (0)