From c168cd90cb54683e043b671bb2365dcf577278d7 Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:25:08 +0330 Subject: [PATCH] Import source: app/src/pages/CoursesPage Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- app/src/pages/CoursesPage.jsx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 app/src/pages/CoursesPage.jsx diff --git a/app/src/pages/CoursesPage.jsx b/app/src/pages/CoursesPage.jsx new file mode 100644 index 0000000..1854a70 --- /dev/null +++ b/app/src/pages/CoursesPage.jsx @@ -0,0 +1,25 @@ +import { useState, useEffect } from 'react'; +import { contentApi } from '../../src/lib/content-api.js'; + +export function CoursesPage() { + const [items, setItems] = useState([]); + useEffect(() => { contentApi.listCourses().then(setItems).catch(() => setItems([])); }, []); + return ( +
+
+

دوره‌های تخصصی تکناو

+

مسیرهای آموزشی فارسی برای تیم‌هایی که فناوری را در محصول و عملیات واقعی به کار می‌گیرند.

+
+ {items.map(course => ( +
+
{course.level}
+

{course.title}

+

{course.summary}

+
{course.price ? `${course.price.toLocaleString('fa-IR')} تومان` : 'به‌زودی'}
+
+ ))} +
+
+
+ ); +}