From a02daa38428e764c0d6717fc16c4c310f5732694 Mon Sep 17 00:00:00 2001 From: Kalitsune Date: Sun, 12 May 2024 12:33:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BB=20Made=20the=20socials=20on=20the?= =?UTF-8?q?=20landing=20page=20auto=20hide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The socials will now automatically hide if no link is provided --- app/assets/lang/_custom.toml | 6 +- app/landing.ejs | 131 +++++++++++++++++++---------------- 2 files changed, 75 insertions(+), 62 deletions(-) diff --git a/app/assets/lang/_custom.toml b/app/assets/lang/_custom.toml index da17faf9..c9d3526b 100644 --- a/app/assets/lang/_custom.toml +++ b/app/assets/lang/_custom.toml @@ -5,9 +5,9 @@ title = "Helios Launcher" [ejs.landing] mediaGitHubURL = "https://github.com/dscalzi/HeliosLauncher" -mediaTwitterURL = "#" -mediaInstagramURL = "#" -mediaYouTubeURL = "#" +mediaTwitterURL = "" +mediaInstagramURL = "" +mediaYouTubeURL = "" mediaDiscordURL = "https://discord.gg/zNWUXdt" [ejs.settings] diff --git a/app/landing.ejs b/app/landing.ejs index 5ac72a15..3e1e72b2 100644 --- a/app/landing.ejs +++ b/app/landing.ejs @@ -27,66 +27,79 @@ -
-
-
- - - - - - - - + <% if (lang('landing.mediaGitHubURL') + lang('landing.mediaTwitterURL') + lang('landing.mediaInstagramURL') + lang('landing.mediaYouTubeURL') + lang('landing.mediaDiscordURL') != "") { %> +
+
+ <% if (lang('landing.mediaGitHubURL') != "") { %> + + <% } %> + <% if (lang('landing.mediaTwitterURL') != "") { %> + + <% } %> + <% if (lang('landing.mediaInstagramURL') != "") { %> + + <% } %> + <% if (lang('landing.mediaYouTubeURL') != "") { %> + + <% } %> + + <% if (lang('landing.mediaDiscordURL') != "") { %> + + <% } %>
- - - - -
+ <% } %>