mirror of
https://gitlab.com/niansa/discordlistforbots.git
synced 2025-03-06 20:49:22 +01:00
Updated layout
This commit is contained in:
parent
0107bc1121
commit
9bffa87004
5 changed files with 27 additions and 43 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -35,3 +35,5 @@ build
|
|||
cmake-build-debug
|
||||
.idea
|
||||
CMakeLists.txt.user
|
||||
|
||||
config.h
|
||||
|
|
19
config.h
19
config.h
|
@ -1,19 +0,0 @@
|
|||
#define LISTEN_ADDR "0.0.0.0"
|
||||
#define LISTEN_PORT 8082
|
||||
|
||||
#define DB_TYPE "postgresql"
|
||||
#define DB_HOST "localhost"
|
||||
#define DB_PORT 5432
|
||||
#define DB_NAME "dfb"
|
||||
#define DB_USER "nils"
|
||||
#define DB_PASSWORD "1234"
|
||||
|
||||
#define OAUTH_URL "https://discord.com/api/oauth2/authorize?client_id=797565592835457024&redirect_uri=http%3A%2F%2Flocalhost%3A8082%2Fdiscordauth&response_type=code&scope=identify"
|
||||
#define CLIENT_ID "797565592835457024"
|
||||
#define CLIENT_SECRET "8ZbKPseob8n1UmLLunPb06MNUKfPGRi1"
|
||||
#define REDIRECT_URI "http://localhost:8082/discordauth"
|
||||
#define BOT_TOKEN "Nzk3NTY1NTkyODM1NDU3MDI0.X_oU1w.fCVL8j58pphoEaU7e3q4yH7cFa4"
|
||||
|
||||
#define MODERATORS {609486822715818000}
|
||||
|
||||
#define COMMUNITY "https://discord.gg/ZMj5ytaQRZ"
|
|
@ -9,6 +9,7 @@ body {
|
|||
top:0;
|
||||
width:99%;
|
||||
background-color:#333333;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.container {
|
||||
|
@ -116,8 +117,8 @@ body {
|
|||
.tile {
|
||||
border:unset;
|
||||
background-color:transparent !important;
|
||||
max-width: 100%;
|
||||
min-width: 100%;
|
||||
max-width: 98%;
|
||||
min-width: 98%;
|
||||
padding:0;
|
||||
margin:0;
|
||||
}
|
||||
|
|
BIN
static/signature.png
Normal file
BIN
static/signature.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 147 KiB |
|
@ -14,39 +14,39 @@
|
|||
<body>
|
||||
<div class="header">
|
||||
<div class="content-desktop">
|
||||
<%c++ if (sessionData) {%>
|
||||
<div style="text-align:left;">
|
||||
<div style="text-align:center;">
|
||||
<a href="/"><img src="/signature.png" style="width:20%"></a>
|
||||
</div>
|
||||
<%c++ if (/*sessionData*/true) {%>
|
||||
<p style="position:fixed;top:0;left:0;margin:0;">
|
||||
<a class="special-button noborder" href="/bots/@me">My bots</a>
|
||||
<%c++ if (sessionData->moderator) {%>
|
||||
<%c++ if (/*sessionData->moderator*/true) {%>
|
||||
<a class="special-button noborder" href="/bots/@unapproved">Unapproved bots</a>
|
||||
<%c++ }%>
|
||||
<a class="special-button noborder" href="/bots/register">Register bot</a>
|
||||
</div>
|
||||
<%c++ }%>
|
||||
<div style="text-align:center;">
|
||||
<a class="special-button noborder" href="/" style="width:2%;padding:unset;background-color:transparent;position:fixed;top:0px"><img src="/logo.png" style="width:40px;"></a>
|
||||
</div>
|
||||
<div style="position:absolute;top:0px;right:5px;">
|
||||
<p style="margin:0px;">
|
||||
<%c++ if (sessionData) {%>
|
||||
{%sessionData->discord_username%}
|
||||
<a class="special-button noborder" href="/discorddeauth">Logout</a>
|
||||
<%c++ } else {%>
|
||||
Anonymous
|
||||
<a class="special-button noborder" href="/discordauth">Login</a>
|
||||
<%c++ }%>
|
||||
<a class="special-button noborder" href="{%COMMUNITY%}" style="background-color:#7289da;">Join our Discord</a>
|
||||
</p>
|
||||
</div>
|
||||
<%c++ }%>
|
||||
<p style="position:fixed;top:0;right:0;margin:0;">
|
||||
<%c++ if (sessionData) {%>
|
||||
{%sessionData->discord_username%}
|
||||
<a class="special-button noborder" href="/discorddeauth">Logout</a>
|
||||
<%c++ } else {%>
|
||||
Anonymous
|
||||
<a class="special-button noborder" href="/discordauth">Login</a>
|
||||
<%c++ }%>
|
||||
<a class="special-button noborder" href="{%COMMUNITY%}" style="background-color:#7289da;">Join our Discord</a>
|
||||
</p>
|
||||
</div>
|
||||
<div class="content-mobile">
|
||||
<div style="text-align:left;">
|
||||
<a class="special-button noborder" href="/menu" style="font-size:40px;padding:unset;background-color:transparent;">☰</a>
|
||||
</div>
|
||||
<p style="text-align:left;">
|
||||
<a class="special-button noborder" href="/menu" style="font-size:40px;padding:unset;margin:unset;background-color:transparent;">☰</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<br><br><br><br>
|
||||
|
||||
[[]]
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
Loading…
Add table
Reference in a new issue