Added some more style + bumping servers
This commit is contained in:
1 parent
c83c27a8ac
commit
d91ebbfa25
12 files changed
+248
-254
No files matched your search
@@ -32,20 +32,12 @@
|
||||
</div>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<select multiple name="tags" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required>
|
||||
<option value="development">Development</option>
|
||||
<option value="fun">Fun</option>
|
||||
<option value="media">Media</option>
|
||||
<option value="company">Company</option>
|
||||
<option value="game">Game</option>
|
||||
<option value="emoji">Emoji</option>
|
||||
<option value="botlist">Bot List</option>
|
||||
<option value="serverlist">Server List</option>
|
||||
<option value="turkish">Turkish</option>
|
||||
<option value="support">Support</option>
|
||||
<option value="sound">Sound</option>
|
||||
<option value="chatting">Chatting</option>
|
||||
<option value="nsfw">NSFW</option>
|
||||
<option value="challange">Challange</option>
|
||||
<% var tags = global.config.server.tags %>
|
||||
<% tags.forEach(function(tag) { %>
|
||||
<option value="<%= tag %>">
|
||||
<%= tag %>
|
||||
</option>
|
||||
<% }) %>
|
||||
</select>
|
||||
</div>
|
||||
<button type="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Submit</button>
|
||||
|
||||
@@ -17,36 +17,12 @@
|
||||
<label for="server_webhook" class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Discord WebHook to recieve votes.</label>
|
||||
</div>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<select multiple name="tags" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required>
|
||||
<option value="development">Development</option>
|
||||
<option value="fun">Fun</option>
|
||||
<option value="media">Media</option>
|
||||
<option value="company">Company</option>
|
||||
<option value="game">Game</option>
|
||||
<option value="emoji">Emoji</option>
|
||||
<option value="botlist">Bot List</option>
|
||||
<option value="serverlist">Server List</option>
|
||||
<option value="turkish">Turkish</option>
|
||||
<option value="support">Support</option>
|
||||
<option value="sound">Sound</option>
|
||||
<option value="chatting">Chatting</option>
|
||||
<option value="nsfw">NSFW</option>
|
||||
<option value="challange">Challange</option>
|
||||
<select multiple name="tags" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" required>
|
||||
<% global.config.server.tags.forEach(function(tag) { %>
|
||||
<option value="<%= tag %>" <% if (server.tags.includes(tag)) { %>selected<% } %>><%= tag %></option>
|
||||
<% }) %>
|
||||
</select>
|
||||
</div><br>
|
||||
<!--<h1 class="text-xl text-white">This token can be used to access your server via our api</h1>
|
||||
<div class="relative z-0 mb-6 w-full group">
|
||||
<input type="text" name="token" id="token" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " required value="<%= server.token %>" onclick="copy()" />
|
||||
<label for="token" class="peer-focus:font-medium absolute text-sm text-white dark:text-white duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:left-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6">Token</label>
|
||||
</div>
|
||||
<script>
|
||||
function copy() {
|
||||
var copyText = document.getElementById("token");
|
||||
copyText.select();
|
||||
copyText.setSelectionRange(0, 99999);
|
||||
navigator.clipboard.writeText(copyText.value);
|
||||
}
|
||||
</script>-->
|
||||
<button type="submit" class="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">Update</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -1,8 +1,10 @@
|
||||
<%- include('../includes/header.ejs', { title: server.name, server: server}) %>
|
||||
<br><br><br><br>
|
||||
<div class="flex space-x-4 py-2 lg:h-5/6 sm:min-h-min">
|
||||
<div class="p-10 bg-blue-color w-2/3 text-white h-full m-4 mx-14">
|
||||
<pre><br><%= server.long_description %></pre>
|
||||
<div class="p-10 bg-blue-color w-2/3 text-white h-full m-4 mx-14 text-ellipsis">
|
||||
<p class="text-white text-clip">
|
||||
<pre style="white-space: pre-wrap;" class="text-clip break-words w-full h-full"><br><%= server.long_description %></pre>
|
||||
</p>
|
||||
</div>
|
||||
<div class="bg-blue-color w-1/4 p-10 text-white h-full m-4 ">
|
||||
<img class="w-full rounded-full" src="<%= serverr.icon %>" alt="<%= server.name %>" onerror="this.src='/img/logo.png'">
|
||||
@@ -13,14 +15,16 @@
|
||||
Vote</a>
|
||||
<a href="/server/<%= server.id %>/join" class="button float-right inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2"><i class="fa fa-link"></i>
|
||||
Join</a>
|
||||
<br>
|
||||
<br>
|
||||
<% if(user) { if(serverr.members.cache.get(user.id)) {
|
||||
if(serverr.members.cache.get(user.id).permissions.has('ADMINISTRATOR')) { %>
|
||||
<div class="h6 mt-4">
|
||||
<i class="fa user-crown"></i>Owner Options
|
||||
</div>
|
||||
<a href="/server/<%= server.id %>/settings" class="mt-1">
|
||||
<div class="box-2-p"><i class="mt-1 fa fa-pencil"></i><p class="box-2">Edit Server</p></div>
|
||||
<div class="box-2-p"><i class="mt-1 fa fa-pencil"></i>
|
||||
<p class="box-2">Edit Server</p>
|
||||
</div>
|
||||
</a>
|
||||
<% } } } %>
|
||||
<h6 class="text-xl mt-4">
|
||||
@@ -33,7 +37,7 @@
|
||||
</div>
|
||||
<div class="mt-1">
|
||||
<div class="box-2-p"><i class="mt-1 fa fa-users"></i></div>
|
||||
<p class="box-2">Members: <%= serverr.memberCount.toLocaleString().replace(',', '.' ) %>
|
||||
<p class="box-2">Members: <%= serverr.memberCount.toLocaleString().replace(',', '.' ) %>/ <%= global.bsl.guilds.cache.get(server.id).members.cache.filter(a => a.presence?.status != 'dnd').size %> online
|
||||
</p>
|
||||
</div>
|
||||
<div class="mt-1">
|
||||
@@ -59,7 +63,7 @@
|
||||
<div class="h6 mt-4">
|
||||
<i class="fa fa-crown"></i> Owners
|
||||
</div>
|
||||
<% serverr.members.cache.filter(a=> !a.user.bot && a.permissions.has('ADMINISTRATOR')).map(admin =>{
|
||||
<% serverr.members.cache.filter(a=> !a.user.bot && a.permissions.has(global.discord.PermissionsBitField.Flags.Administrator)).map(admin =>{
|
||||
%>
|
||||
<a style="text-decoration: none;margin-bottom: -5px;" href="/user/<%= admin.user.id %>" class="flex mt-1">
|
||||
<div class="h-5 w-5 rounded-lg" style="background: url(<%= admin.user.avatarURL({dynamic:true}) || '../../img/undefined_avatar.png' %>) center center no-repeat; background-size: 100%;">
|
||||
|
||||
Reference in new issue
Block a user