From 4c235f61795269c88e90934a9f58062b913e6464 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Mon, 1 Dec 2025 12:52:33 +0000 Subject: [PATCH] hell yea --- assets/css/custom.css | 41 +++++++++ create_project.php | 65 ++++++++++++++ includes/footer.php | 10 +++ includes/header.php | 37 ++++++++ index.php | 192 ++++++++++-------------------------------- projects.php | 70 +++++++++++++++ 6 files changed, 269 insertions(+), 146 deletions(-) create mode 100644 assets/css/custom.css create mode 100644 create_project.php create mode 100644 includes/footer.php create mode 100644 includes/header.php create mode 100644 projects.php diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..5c0cf39 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,41 @@ + +body { + background-color: #F9FAFB; + font-family: 'Inter', sans-serif; + color: #1F2937; +} + +.navbar { + border-bottom: 1px solid #E5E7EB; +} + +.btn-primary { + background-color: #4F46E5; + border-color: #4F46E5; +} + +.btn-primary:hover { + background-color: #4338CA; + border-color: #4338CA; +} + +.card { + border-radius: 0.5rem; + border: 1px solid #E5E7EB; + box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); +} + +.form-control { + border-radius: 0.5rem; +} + +.form-control:focus { + border-color: #4F46E5; + box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25); +} + +.hero { + background: linear-gradient(to right, #4F46E5, #818CF8); + padding: 4rem 0; + color: white; +} diff --git a/create_project.php b/create_project.php new file mode 100644 index 0000000..1f28c74 --- /dev/null +++ b/create_project.php @@ -0,0 +1,65 @@ +prepare("INSERT INTO projects (title, description) VALUES (?, ?)"); + $stmt->execute([$title, $description]); + + $_SESSION['message'] = 'Project created successfully!'; + header("Location: projects.php"); + exit; + } catch (PDOException $e) { + $error = "Database error: " . $e->getMessage(); + } + } +} + +include 'includes/header.php'; +?> + +
+
+
+
+
+

Create a New Project

+
+
+ +
+ +
+ +
+
+ + +
+
+ + +
+ + Cancel +
+
+
+
+
+
+ + diff --git a/includes/footer.php b/includes/footer.php new file mode 100644 index 0000000..29d5de1 --- /dev/null +++ b/includes/footer.php @@ -0,0 +1,10 @@ + + + + + + diff --git a/includes/header.php b/includes/header.php new file mode 100644 index 0000000..445b639 --- /dev/null +++ b/includes/header.php @@ -0,0 +1,37 @@ + + + + + + <?php echo htmlspecialchars($_SERVER['PROJECT_NAME'] ?? 'AI Math Lectures'); ?> + + + + + + + + + + + + + + diff --git a/index.php b/index.php index 7205f3d..7a68814 100644 --- a/index.php +++ b/index.php @@ -1,150 +1,50 @@ - - - - - - New Style - - - - - - - - - - - - - - - - - - - - - -
-
-

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

+ +
+
+

Welcome to the AI Math Lecture Creator

+

Your platform for generating engaging math video content with the power of AI.

+ Get Started
-
- - - + + +
+
+
+
+
+
1. Create a Project
+

Start by creating a new project to house your lecture scripts, simulations, and final videos.

+
+
+
+
+
+
+
2. Generate Scripts
+

Use our AI-powered script generator to quickly create detailed and accurate mathematical lecture scripts.

+
+
+
+
+
+
+
3. Render & Publish
+

Combine your scripts with simulations and generate a final video, ready to be shared with your students.

+
+
+
+
+ + +
+ + \ No newline at end of file diff --git a/projects.php b/projects.php new file mode 100644 index 0000000..6a80de2 --- /dev/null +++ b/projects.php @@ -0,0 +1,70 @@ +exec("CREATE TABLE IF NOT EXISTS projects ( + id INT AUTO_INCREMENT PRIMARY KEY, + title VARCHAR(255) NOT NULL, + description TEXT, + created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP +);"); + +$stmt = $pdo->query("SELECT * FROM projects ORDER BY created_at DESC"); +$projects = $stmt->fetchAll(); + +include 'includes/header.php'; +?> + +
+
+

Projects

+ Create New Project +
+ + +
+ +
+ + + 0): ?> +
+ +
+
+
+
+

+
+ +
+
+ +
+ +
+
+

No projects found. Get started by creating a new one!

+ Create a Project +
+
+ +
+ +