From 33d80b482d35a3aba3c2dfdd1bff27a3ec23b939 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 23 Nov 2025 21:35:27 +0000 Subject: [PATCH] 2 --- assets/css/custom.css | 76 ++++++++ create-plan.php | 91 +++++++++ db/migrate.php | 22 +++ db/migrations/001_create_plans_table.sql | 7 + index.php | 228 +++++++++-------------- plans.php | 86 +++++++++ 6 files changed, 369 insertions(+), 141 deletions(-) create mode 100644 assets/css/custom.css create mode 100644 create-plan.php create mode 100644 db/migrate.php create mode 100644 db/migrations/001_create_plans_table.sql create mode 100644 plans.php diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..5236369 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,76 @@ +/* General Body & Typography */ +body { + font-family: 'Vazirmatn', 'Roboto', sans-serif; + background-color: #F5F5F5; + color: #333333; + direction: ltr; /* Default LTR, will be overridden for RTL */ +} + +h1, h2, h3, h4, h5, h6 { + font-weight: 700; +} + +.btn-primary { + background: linear-gradient(45deg, #FF4500, #FF6347); + border: none; + padding: 0.75rem 1.5rem; + font-weight: 700; + border-radius: 0.5rem; + transition: transform 0.2s ease-in-out; +} + +.btn-primary:hover { + transform: translateY(-2px); + box-shadow: 0 4px 12px rgba(0,0,0,0.1); +} + +/* Navbar */ +.navbar { + background-color: #FFFFFF; + box-shadow: 0 2px 4px rgba(0,0,0,0.05); +} + +.navbar-brand { + font-weight: 700; + color: #1A1A1A !important; +} + +/* Hero Section */ +.hero { + padding: 6rem 0; + background-color: #FFFFFF; + text-align: center; +} + +.hero h1 { + font-size: 3.5rem; + color: #1A1A1A; +} + +.hero p { + font-size: 1.25rem; + color: #555; + margin-bottom: 2rem; +} + +/* Features Section */ +.features { + padding: 4rem 0; +} + +.feature-icon { + font-size: 3rem; + color: #FF4500; +} + +/* Footer */ +footer { + padding: 2rem 0; + background-color: #1A1A1A; + color: #F5F5F5; +} + +/* RTL Support */ +[dir="rtl"] { + font-family: 'Vazirmatn', sans-serif; +} \ No newline at end of file diff --git a/create-plan.php b/create-plan.php new file mode 100644 index 0000000..3c5032e --- /dev/null +++ b/create-plan.php @@ -0,0 +1,91 @@ +prepare("INSERT INTO plans (name, description) VALUES (?, ?)"); + $stmt->execute([$name, $description]); + $success_message = '
Plan created successfully! View all plans.
'; + } catch (PDOException $e) { + $success_message = '
Error: ' . $e->getMessage() . '
'; + } + } else { + $success_message = '
Plan name is required.
'; + } +} +?> + + + + + + ساختن برنامه - FitGen + + + + + + + + + + +
+
+
+
+

ساختن برنامه تمرینی جدید

+ +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+
+ + + + + + \ No newline at end of file diff --git a/db/migrate.php b/db/migrate.php new file mode 100644 index 0000000..d9f9706 --- /dev/null +++ b/db/migrate.php @@ -0,0 +1,22 @@ +exec($sql); + echo "Success.\n"; + } + + echo "\nAll migrations completed successfully!\n"; + +} catch (PDOException $e) { + die("Database migration failed: " . $e->getMessage()); +} + diff --git a/db/migrations/001_create_plans_table.sql b/db/migrations/001_create_plans_table.sql new file mode 100644 index 0000000..895553f --- /dev/null +++ b/db/migrations/001_create_plans_table.sql @@ -0,0 +1,7 @@ + +CREATE TABLE IF NOT EXISTS plans ( + id INT AUTO_INCREMENT PRIMARY KEY, + name VARCHAR(255) NOT NULL, + description TEXT, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +); diff --git a/index.php b/index.php index 7205f3d..0c515ce 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,96 @@ - - - - - - New Style - - - - - - - - - - - - - - - - - - - + + + + + + FitGen - همراه نهایی شما در بدن‌سازی + + + + + + + + + + + + + + + + + -
-
-

Analyzing your requirements and generating your website…

-
- Loading… -
-

AI is collecting your requirements and applying the first changes.

-

This page will update automatically as the plan is implemented.

-

Runtime: PHP — UTC

-
-
- + + + +
+
+

برنامه‌های ورزشی حرفه‌ای بسازید، سریع‌تر.

+

پلتفرم یکپارچه برای مربیان بدن‌سازی جهت ساخت، مدیریت و پیگیری پیشرفت ورزشکاران.

+ شروع به ساختن +
+
+ +
+
+
+
+ +

ساختن برنامه

+

به راحتی برنامه‌های تمرینی دقیق را برای ورزشکاران خود بسازید و سفارشی کنید.

+
+
+ +

مدیریت ورزشکاران

+

پروفایل‌های مشتریان خود را مدیریت کرده و سفر آن‌ها را در یک مکان پیگیری کنید.

+
+
+ +

پیگیری پیشرفت

+

پیشرفت ورزشکاران را با ابزارهای قدرتمند پیگیری و گزارش‌دهی به تصویر بکشید.

+
+
+
+
+ + + + diff --git a/plans.php b/plans.php new file mode 100644 index 0000000..139e0d3 --- /dev/null +++ b/plans.php @@ -0,0 +1,86 @@ +query("SELECT id, name, description, created_at FROM plans ORDER BY created_at DESC"); + $plans = $stmt->fetchAll(); +} catch (PDOException $e) { + die("Error fetching plans: " . $e->getMessage()); +} +?> + + + + + + برنامه‌های تمرینی - FitGen + + + + + + + + + + +
+
+

برنامه‌های تمرینی

+ ساختن برنامه جدید +
+ +
+ +
+
هنوز هیچ برنامه‌ای ساخته نشده است.
+
+ + +
+
+
+
+

+
+ +
+
+ + +
+
+ + + + + + \ No newline at end of file