From 12430221001cecb92fd1fb4fce7b3baf91d7ba01 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Thu, 8 Aug 2024 18:45:42 -0400 Subject: refactor: design improvments and fixes --- index.php | 158 +++++++++++++++++++++++++++++--------------------------------- 1 file changed, 75 insertions(+), 83 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 3e1e18b..abe50d1 100644 --- a/index.php +++ b/index.php @@ -1,17 +1,22 @@ +session_start(); + +if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['compile'])) { + $_SESSION['user-input'] = htmlspecialchars($_POST['user-input'], ENT_QUOTES, 'UTF-8'); +} +?> - + - - - - + + + + procrastiSlides: great for procratinators who need to get a presentation out, quick! 😆 + non-intrusive ads, no tracking, nothing but quick slides from plain text/markdown. 🏫 try copy and pasting your school notes! that might even work 😂"> @@ -21,94 +26,71 @@ session_start(); ?> include "includes/procrastislides-banner.php"; include "includes/main-info.php"; include "includes/nav-header.php"; - ?> - + + if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['compile'])) { ?>

🎨 please select your presentation theme 🎭

-
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + +
-

preview

-
-

select

-
90sMakeUpCommercial
chicagoOlives
cleanMetropolis
earlyCupertino
ohioCustard
raleighAroundMe
defaultIsKing
Cuppertino-Ish
lazyProfessor
redmond2003
strengthInNumbers
thatMagazine
+

preview

+
+

select

+
<?= $theme ?>
+

- - +
-
-
- ← expand to use the markdown editor 📝 -

- -

- -
- -
-
+

markdown goes here:

+
+ + -

-
-
+
+ +
+ +

← expand for a brief "how-to" 📖

@@ -137,7 +119,7 @@ session_start(); ?>
-

It's highly recommended that you use markdown lists rather than plain text lists


+

It's highly recommended that you use markdown lists rather than plain text lists



@@ -156,6 +138,16 @@ session_start(); ?> + + -- cgit v1.2.3