diff --git a/frontend/application/app/blog/page.tsx b/frontend/application/app/blog/page.tsx new file mode 100644 index 0000000..8524616 --- /dev/null +++ b/frontend/application/app/blog/page.tsx @@ -0,0 +1,5 @@ +import BlogPage from "../../components/BlogPage"; + +export default function Blog() { + return ; +} diff --git a/frontend/application/app/checkout/success/[id]/page.tsx b/frontend/application/app/checkout/success/[id]/page.tsx new file mode 100644 index 0000000..9fd13ce --- /dev/null +++ b/frontend/application/app/checkout/success/[id]/page.tsx @@ -0,0 +1,6 @@ +import OrderSuccess from "../../../../components/OrderSuccess"; + +export default async function SuccessPage({ params }: { params: Promise<{ id: string }> }) { + const { id } = await params; + return ; +} diff --git a/frontend/application/app/track/page.tsx b/frontend/application/app/track/page.tsx new file mode 100644 index 0000000..3e51db1 --- /dev/null +++ b/frontend/application/app/track/page.tsx @@ -0,0 +1,5 @@ +import OrderTracking from "../../components/OrderTracking"; + +export default function TrackPage() { + return ; +} diff --git a/frontend/application/app/videos/page.tsx b/frontend/application/app/videos/page.tsx new file mode 100644 index 0000000..6e26e5f --- /dev/null +++ b/frontend/application/app/videos/page.tsx @@ -0,0 +1,5 @@ +import VideosPage from "../../components/VideosPage"; + +export default function Videos() { + return ; +} diff --git a/frontend/application/components/BlogPage.tsx b/frontend/application/components/BlogPage.tsx index e4ae4fd..df24d53 100644 --- a/frontend/application/components/BlogPage.tsx +++ b/frontend/application/components/BlogPage.tsx @@ -42,7 +42,10 @@ const BLOG_POSTS = [ } ]; -export default function BlogPage({ onBack, onProductClick }: { onBack: () => void, onProductClick: (p: Product) => void }) { +import { useRouter } from 'next/navigation'; + +export default function BlogPage() { + const router = useRouter(); const [selectedPost, setSelectedPost] = React.useState(null); const [products, setProducts] = React.useState([]); @@ -56,7 +59,7 @@ export default function BlogPage({ onBack, onProductClick }: { onBack: () => voi
{/* Breadcrumbs */}
- خانه + router.push('/')}>خانه setSelectedPost(null)}>مجله سلامت @@ -123,7 +126,7 @@ export default function BlogPage({ onBack, onProductClick }: { onBack: () => voi {products.slice(4, 7).map(p => (
onProductClick(p)} + onClick={() => router.push(`/shop/${p.id}`)} className="bg-white/10 border border-white/20 p-4 rounded-3xl flex items-center gap-4 cursor-pointer hover:bg-white/20 transition-all group" >
@@ -182,7 +185,7 @@ export default function BlogPage({ onBack, onProductClick }: { onBack: () => voi

- onNavigate('home'))}>کانینا + router.push('/')}>کانینا پیگیری سفارش
@@ -56,7 +59,7 @@ export default function OrderTracking({ onNavigate, onBack }: { onNavigate: (v: {/* Desktop Breadcrumbs */}
- onNavigate('home'))}>خانه + router.push('/')}>خانه رهگیری هوشمند محموله
diff --git a/frontend/application/components/VideosPage.tsx b/frontend/application/components/VideosPage.tsx index febc3d2..082e3e5 100644 --- a/frontend/application/components/VideosPage.tsx +++ b/frontend/application/components/VideosPage.tsx @@ -52,7 +52,10 @@ const ALL_VIDEOS = [ } ]; -export default function VideosPage({ onBack }: { onBack: () => void }) { +import { useRouter } from 'next/navigation'; + +export default function VideosPage() { + const router = useRouter(); const [selectedVideo, setSelectedVideo] = useState(null); const [search, setSearch] = useState(""); @@ -75,7 +78,7 @@ export default function VideosPage({ onBack }: { onBack: () => void }) {