From 552d06cd7e61c45476c55895422c8ca3d77a9bc6 Mon Sep 17 00:00:00 2001
From: kj-sh604
Date: Sat, 21 Dec 2024 01:46:21 -0500
Subject: refactor: cleaner codebase and best practices
---
index.php | 125 ++++++--------------------------------------------------------
1 file changed, 11 insertions(+), 114 deletions(-)
(limited to 'index.php')
diff --git a/index.php b/index.php
index dbe46d0..b19bfce 100644
--- a/index.php
+++ b/index.php
@@ -21,123 +21,19 @@ session_start(); ?>
include "includes/procrastislides-banner.php";
include "includes/main-info.php";
include "includes/nav-header.php";
- ?>
-
-
-
🎨 please select your presentation theme 🎭
-
-
-
-
-
-
-
-
-
- ← expand for a brief "how-to" 📖
-
-
- - type '#' to indicate that you are starting a new slide and then press ↵ (enter/return) twice.
- - you can add a "slide title" after each '#' to name that portion of your presentation.
-
- - a space between "#" and your slide title is required:
-
- - # [YOUR TITLE GOES HERE]
-
-
-
- - type/format text underneath the '#' for the slide contents.
-
- - make sure to start typing your slide content two ↵'s ("enter key presses") away from the "#".
- - lists require to be formatted in this manner as well:
-
- - # slide title
- This is a list
- * item 1
- * item 2
- * item 3
-
-
-
-
-
- It's highly recommended that you use markdown lists rather than plain text lists
-
-
-
-
- ← expand for a quick video demo 🎬
-
-
-
-
-
-
-
-
+ if (isset($_POST["compile"])) {
+ $_SESSION["user-input"] = $_POST["user-input"];
+ include "includes/download-logic.php";
+ } else {
+ include "includes/markdown-editor.php";
+ include "includes/quick-how-to.php";
+ include "includes/video-how-to.php";
+ } ?>
+
+
+