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 🎭

-
- - - - - - - - - '90sMakeUpCommercial', - 'chicagoOlives' => 'chicagoOlives', - 'earlyCupertino' => 'earlyCupertino', - 'ohioCustard' => 'ohioCustard', - 'raleighAroundMe' => 'raleighAroundMe', - 'redmond2013' => 'redmond2013', - 'defaultIsKing' => 'defaultIsKing', - 'cuppertinoIsh' => 'cuppertinoIsh', - 'lazyProfessor' => 'lazyProfessor', - 'redmond2003' => 'redmond2003', - 'strengthInNumbers' => 'strengthInNumbers', - 'thatMagazine' => 'thatMagazine', - ]; - - foreach ($themes as $key => $theme) { - echo " - - - "; - } - ?> - -
-

preview

-
-

select

-
- {$theme} - - -
- -
-
-
- -
- -
- -
- -
-
-

-
- ← expand for a brief "how-to" 📖 -

-

-
-

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"; + } ?> + + + -- cgit v1.2.3