summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-05-05 00:15:09 +0500
committerilotterytea <iltsu@alright.party>2025-05-05 00:33:26 +0500
commit4847536d94671d91187d8ba602f74ec09261a808 (patch)
tree1fd3ac1528677f0ae6fe253c9c5705b06b44e15d /public
parentd20211fad9bc61b9e92c70707ecbe2a5a30fe75a (diff)
feat: software page
Diffstat (limited to 'public')
-rw-r--r--public/index.php2
-rw-r--r--public/software.php83
-rw-r--r--public/static/img/software/tinyrino/icon.pngbin0 -> 6845 bytes
-rw-r--r--public/static/img/software/tinyrino/screenshots/1.pngbin0 -> 57921 bytes
-rw-r--r--public/static/img/software/tinyrino/screenshots/2.pngbin0 -> 197187 bytes
-rw-r--r--public/static/style.css4
6 files changed, 88 insertions, 1 deletions
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 '<a href="/emotes/upload.php">Upload</a>';
} ?>
<a href="/account">Account</a>
- <a href="/software">Chat clients</a>
+ <a href="/software.php">Chat clients & Tools</a>
</div>
<form action="/emotes/search.php" method="get" class="row">
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 @@
+<?php
+include_once "../src/config.php";
+include_once "../src/partials.php";
+
+$software = [
+ "Standalone clients" =>
+ [
+ [
+ "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" => []
+];
+?>
+
+<html>
+
+<head>
+ <title>Software - <?php echo INSTANCE_NAME ?></title>
+ <link rel="stylesheet" href="/static/style.css">
+ <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon">
+</head>
+
+<body>
+ <div class="container">
+ <div class="wrapper">
+ <?php html_navigation_bar() ?>
+ <section class="content">
+ <?php
+ foreach ($software as $software_name => $sw) {
+ echo '<section class="box">';
+ echo "<div class='box navtab'>$software_name</div>";
+ echo '<div class="box content">';
+
+ if (empty($sw)) {
+ echo '<p>There are no software in this category! They will appear here as soon as they support TinyEmotes.</p>';
+ }
+
+ foreach ($sw as $s) {
+ $name_lower = strtolower($s["name"]);
+ echo '<div class="box row">';
+ echo "<div><img src='/static/img/software/$name_lower/icon.png' alt=''></div>";
+
+ echo '<div class="column flex">';
+ echo '<div class="row"><h1>' . $s["name"] . '</h1><p style="font-size:10px;">by ' . $s["author"] . '</p></div>';
+ echo '<p>' . $s["desc"] . '</p>';
+
+ $screenshot_path = "./static/img/software/$name_lower/screenshots";
+ if (is_dir($screenshot_path)) {
+ echo '<div class="row small-gap screenshots">';
+ foreach (new DirectoryIterator($screenshot_path) as $file) {
+ if ($file->isDot()) {
+ continue;
+ }
+
+ echo "<a href='$screenshot_path/$file' target='_blank'><img src='$screenshot_path/$file' alt=''></a>";
+ }
+ echo '</div>';
+ }
+
+ echo '</div>';
+
+ echo '<div class="column">';
+ echo '<a href="' . $s["download_url"] . '" target="_blank">[ Download ]</a>';
+ echo '<a href="' . $s["source_url"] . '" target="_blank">[ Source code ]</a>';
+ echo '</div></div>';
+ }
+
+ echo '</div></section>';
+ }
+ ?>
+ </section>
+ </div>
+ </div>
+</body>
+
+</html> \ 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
--- /dev/null
+++ b/public/static/img/software/tinyrino/icon.png
Binary files 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
--- /dev/null
+++ b/public/static/img/software/tinyrino/screenshots/1.png
Binary files 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
--- /dev/null
+++ b/public/static/img/software/tinyrino/screenshots/2.png
Binary files 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