From 4847536d94671d91187d8ba602f74ec09261a808 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 5 May 2025 00:15:09 +0500 Subject: feat: software page --- public/index.php | 2 +- public/software.php | 83 +++++++++++++++++++++ public/static/img/software/tinyrino/icon.png | Bin 0 -> 6845 bytes .../static/img/software/tinyrino/screenshots/1.png | Bin 0 -> 57921 bytes .../static/img/software/tinyrino/screenshots/2.png | Bin 0 -> 197187 bytes public/static/style.css | 4 + 6 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 public/software.php create mode 100644 public/static/img/software/tinyrino/icon.png create mode 100644 public/static/img/software/tinyrino/screenshots/1.png create mode 100644 public/static/img/software/tinyrino/screenshots/2.png (limited to 'public') diff --git a/public/index.php b/public/index.php index 17d4d75..950b6c1 100644 --- a/public/index.php +++ b/public/index.php @@ -27,7 +27,7 @@ authorize_user(); echo 'Upload'; } ?> Account - Chat clients + Chat clients & Tools
diff --git a/public/software.php b/public/software.php new file mode 100644 index 0000000..3e0dc5a --- /dev/null +++ b/public/software.php @@ -0,0 +1,83 @@ + + [ + [ + "name" => "Tinyrino", + "author" => "ilotterytea", + "desc" => "Tinyrino is a fork of Chatterino7 (which is a fork of Chatterino 2). This fork supports TinyEmotes, a software that allows you to host your emotes on your own instances.", + "download_url" => "https://github.com/ilotterytea/tinyrino/releases", + "source_url" => "https://github.com/ilotterytea/tinyrino" + ] + ], + "Web extensions" => [], + "Chatbots" => [], + "Other tools" => [] +]; +?> + + + + + Software - <?php echo INSTANCE_NAME ?> + + + + + +
+
+ +
+ $sw) { + echo '
'; + echo ""; + echo '
'; + + if (empty($sw)) { + echo '

There are no software in this category! They will appear here as soon as they support TinyEmotes.

'; + } + + foreach ($sw as $s) { + $name_lower = strtolower($s["name"]); + echo '
'; + echo "
"; + + echo '
'; + echo '

' . $s["name"] . '

by ' . $s["author"] . '

'; + echo '

' . $s["desc"] . '

'; + + $screenshot_path = "./static/img/software/$name_lower/screenshots"; + if (is_dir($screenshot_path)) { + echo '
'; + foreach (new DirectoryIterator($screenshot_path) as $file) { + if ($file->isDot()) { + continue; + } + + echo ""; + } + echo '
'; + } + + echo '
'; + + echo '
'; + echo '[ Download ]'; + echo '[ Source code ]'; + echo '
'; + } + + echo '
'; + } + ?> +
+
+
+ + + \ No newline at end of file diff --git a/public/static/img/software/tinyrino/icon.png b/public/static/img/software/tinyrino/icon.png new file mode 100644 index 0000000..8f5bce3 Binary files /dev/null and b/public/static/img/software/tinyrino/icon.png differ diff --git a/public/static/img/software/tinyrino/screenshots/1.png b/public/static/img/software/tinyrino/screenshots/1.png new file mode 100644 index 0000000..8e4d993 Binary files /dev/null and b/public/static/img/software/tinyrino/screenshots/1.png differ diff --git a/public/static/img/software/tinyrino/screenshots/2.png b/public/static/img/software/tinyrino/screenshots/2.png new file mode 100644 index 0000000..ec21185 Binary files /dev/null and b/public/static/img/software/tinyrino/screenshots/2.png differ diff --git a/public/static/style.css b/public/static/style.css index 58eabdc..06be5e1 100644 --- a/public/static/style.css +++ b/public/static/style.css @@ -99,6 +99,10 @@ form { flex-direction: row; } +.screenshots img { + height: 128px; +} + /** ------------ COUNTER -- cgit v1.2.3