Added some style

This commit is contained in:
CorwinDev committed 2022-08-01 14:30:39 +02:00
1 parent 38663dd4e0
commit 0e9c13914b
5 files changed
+180 -3724

No files matched your search

+86 -19
View File
@@ -583,6 +583,9 @@ video {
.left-0 {
left: 0px;
}
.bottom-0 {
bottom: 0px;
}
.order-3 {
order: 3;
}
@@ -626,6 +629,12 @@ video {
.ml-2 {
margin-left: 0.5rem;
}
.mb-6 {
margin-bottom: 1.5rem;
}
.mb-0 {
margin-bottom: 0px;
}
.block {
display: block;
}
@@ -662,6 +671,20 @@ video {
.h-4 {
height: 1rem;
}
.h-10 {
height: 2.5rem;
}
.h-auto {
height: auto;
}
.h-full {
height: 100%;
}
.h-fit {
height: -webkit-fit-content;
height: -moz-fit-content;
height: fit-content;
}
.w-full {
width: 100%;
}
@@ -689,6 +712,15 @@ video {
.w-10 {
width: 2.5rem;
}
.w-20 {
width: 5rem;
}
.w-3 {
width: 0.75rem;
}
.w-3\/6 {
width: 50%;
}
.max-w-7xl {
max-width: 80rem;
}
@@ -698,6 +730,18 @@ video {
.max-w-sm {
max-width: 24rem;
}
.max-w-full {
max-width: 100%;
}
.flex-initial {
flex: 0 1 auto;
}
.flex-auto {
flex: 1 1 auto;
}
.flex-none {
flex: none;
}
.flex-shrink-0 {
flex-shrink: 0;
}
@@ -724,6 +768,9 @@ video {
-moz-appearance: none;
appearance: none;
}
.grid-cols-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.flex-col {
flex-direction: column;
}
@@ -764,6 +811,9 @@ video {
.border-4 {
border-width: 4px;
}
.border-2 {
border-width: 2px;
}
.border-b {
border-bottom-width: 1px;
}
@@ -852,6 +902,9 @@ video {
--tw-bg-opacity: 1;
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
}
.bg-fixed {
background-attachment: fixed;
}
.bg-right-top {
background-position: right top;
}
@@ -864,9 +917,15 @@ video {
.p-5 {
padding: 1.25rem;
}
.p-1 {
padding: 0.25rem;
}
.p-2\.5 {
padding: 0.625rem;
}
.p-10 {
padding: 2.5rem;
}
.px-3 {
padding-left: 0.75rem;
padding-right: 0.75rem;
@@ -918,6 +977,21 @@ video {
.pb-2 {
padding-bottom: 0.5rem;
}
.pt-8 {
padding-top: 2rem;
}
.pl-4 {
padding-left: 1rem;
}
.pr-4 {
padding-right: 1rem;
}
.pb-3 {
padding-bottom: 0.75rem;
}
.pr-10 {
padding-right: 2.5rem;
}
.text-center {
text-align: center;
}
@@ -1008,6 +1082,10 @@ video {
.text-primary-color {
color: #1E2023;;
}
.text-black {
--tw-text-opacity: 1;
color: rgb(0 0 0 / var(--tw-text-opacity));
}
.underline {
-webkit-text-decoration-line: underline;
text-decoration-line: underline;
@@ -1070,6 +1148,9 @@ video {
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');
body {
font-family: 'Quicksand', sans-serif;
justify-content: space-around;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@font-face {
@@ -1098,13 +1179,13 @@ body {
src: url(https://fonts.gstatic.com/s/quicksand/v30/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58a-wg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.botscord-button {
@extend .bg-button-primary;
@extend .hover:bg-button-primary
/* media query for logo to vanish on small screens */
@media (max-width: 768px) {
.logo {
display: none;
}
}
/*
:root {
--bg: #18191C;
@@ -1151,78 +1232,65 @@ body {
--tooltip-text: #fff;
}*/
.hover\:border-transparent:hover {
border-color: transparent;
}
.hover\:bg-button-primary:hover {
background-color: 5865F2;
}
.hover\:bg-white:hover {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.hover\:text-gray-900:hover {
--tw-text-opacity: 1;
color: rgb(17 24 39 / var(--tw-text-opacity));
}
.hover\:text-white:hover {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.hover\:text-teal-500:hover {
--tw-text-opacity: 1;
color: rgb(20 184 166 / var(--tw-text-opacity));
}
.hover\:no-underline:hover {
-webkit-text-decoration-line: none;
text-decoration-line: none;
}
.focus\:border-blue-500:focus {
--tw-border-opacity: 1;
border-color: rgb(59 130 246 / var(--tw-border-opacity));
}
.focus\:outline-none:focus {
outline: 2px solid transparent;
outline-offset: 2px;
}
.focus\:ring-4:focus {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-blue-500:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
}
.focus\:ring-blue-300:focus {
--tw-ring-opacity: 1;
--tw-ring-color: rgb(147 197 253 / var(--tw-ring-opacity));
}
@media (prefers-color-scheme: dark) {
.dark\:border-gray-600 {
@@ -1281,7 +1349,6 @@ body {
}
}
@media (min-width: 1024px) {
.lg\:mt-0 {
+8 -7
View File
@@ -4,6 +4,9 @@
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');
body {
font-family: 'Quicksand', sans-serif;
justify-content: space-around;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@font-face {
@@ -32,14 +35,12 @@ body {
src: url(https://fonts.gstatic.com/s/quicksand/v30/6xK-dSZaM9iE8KbpRA_LJ3z8mH9BOJvgkP8o58a-wg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.botscord-button {
@apply .bg-button-primary;
@apply .hover: bg-button-primary
/* media query for logo to vanish on small screens */
@media (max-width: 768px) {
.logo {
display: none;
}
}
/*
:root {
File diff suppressed because it is too large. Load diff
+32 -30
View File
@@ -10,37 +10,39 @@
</head>
<body class="bg-primary-color">
<!-- navbar in tailwind with login buttons -->
<nav class="flex items-center justify-between flex-wrap p-6 bg-blue-color">
<div class="flex items-center flex-shrink-0 text-white mr-6">
<!-- logo -->
<a href="/">
<img class="mx-auto w-auto h-8" src="/img/logo.png" alt="logo">
</a>
<span class="font-semibold text-xl tracking-tight">&nbsp;BotsCord</span>
</div>
<div class="w-full block flex-grow lg:flex lg:items-center lg:w-auto">
<div class="text-sm lg:flex-grow">
<a href="/bots" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Bots
</a>
<a href="/servers" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Servers
<div class="p-2 pl-4 pr-4 bg-blue-color">
<!-- navbar in tailwind with login buttons -->
<nav class="flex items-center justify-between flex-wrap p-6 bg-blue-color">
<div class="flex items-center flex-shrink-0 text-white mr-6">
<!-- logo -->
<a href="/">
<img class="mx-auto w-auto h-8" src="/img/logo.png" alt="logo">
</a>
<span class="font-semibold text-xl tracking-tight">&nbsp;BotsCord</span>
</div>
<div>
<% if (typeof user == "undefined") { %>
<a href="/login" class="inline-block text-sm px-4 py-2 leading-none border rounded text-white border-white hover:border-transparent hover:text-teal-500 hover:bg-white mt-4 lg:mt-0">Login</a>
<% }else { %>
<a href="/profile" class="inline-block text-sm px-4 py-2 leading-none border rounded text-white border-white hover:border-transparent hover:text-teal-500 hover:bg-white mt-4 lg:mt-0">Profile</a>
<% } %>
<div class="w-full block flex-grow lg:flex lg:items-center lg:w-auto">
<div class="text-sm lg:flex-grow">
<a href="/bots" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Bots
</a>
<a href="/servers" class="block mt-4 lg:inline-block lg:mt-0 text-white hover:text-white mr-4">
Servers
</a>
</div>
<div>
<% if (typeof user == "undefined") { %>
<a href="/login" class="inline-block text-sm px-4 py-2 leading-none border rounded text-white border-white hover:border-transparent hover:text-teal-500 hover:bg-white mt-4 lg:mt-0">Login</a>
<% }else { %>
<a href="/profile" class="inline-block text-sm px-4 py-2 leading-none border rounded text-white border-white hover:border-transparent hover:text-teal-500 hover:bg-white mt-4 lg:mt-0">Profile</a>
<% } %>
</div>
</div>
</nav>
<!-- end navbar in tailwind -->
<!-- show alert if variable message is available -->
<% if (typeof message != "undefined") { %>
<div class="alert alert-success" role="alert">
<%= message %>
</div>
</nav>
<!-- end navbar in tailwind -->
<!-- show alert if variable message is available -->
<% if (typeof message != "undefined") { %>
<div class="alert alert-success" role="alert">
<%= message %>
</div>
<% } %>
<% } %>
</div>
+54 -20
View File
@@ -1,15 +1,18 @@
<%- include("./includes/header.ejs") %>
<div class="bg-blue-color">
<div class="bg-blue-color bg-primary-color p-2 pl-10 pr-10" style="position: relative; top: 0px;">
<br><br>
<div class="container px-3 mb-5 mt-1">
<div class="mb-3 mx-auto">
<span class="icon-section" style="float:right"><img draggable="false" class="section-img" title="botscord.site" src="../img/logo.png" width="320" alt="Discord Bots | Discord Bot List"></span>
<div class="container-sm mx-auto px-3 mb-5 mt-1 h-fit p-1">
<div class="mb-3 mx-auto h-fit">
<span style="margin-top: -5%;float: right; margin-right: 10%;" class="logo">
<img draggable="false" style="z-index: -1!important;" title="botscord.site" src="../img/logo.png" width="320" alt="Discord Bots | Discord Bot List">
</span>
<h1 class=" text-xl" translate="no" style="font-weight:800;color:#fff">BotsCord</h1>
<p class="content" style="opacity:.6;color:#fff">Find the best Discord Bots for your server with BotsCord!</p>
<br>
<form class="flex items-center w-">
<form class="flex items-center ">
<label for="simple-search" class="sr-only">Search</label>
<div class="relative w-full">
<div class="relative w-3/6">
<div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
<svg aria-hidden="true" class="w-5 h-5 text-primary-color dark:text-primary-color" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd"></path>
@@ -17,7 +20,7 @@
</div>
<input type="text" id="simple-search" class="bg-primary-color border border-gray-300 text-white text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full pl-10 p-2.5 dark:bg-primary-color dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="Search" required>
</div>
<button type="submit" class="p-2.5 ml-2 text-sm font-medium text-white bg-button-primary rounded-lg border border-button-primary hover:bg-button-primary focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-button-primary dark:hover:bg-button-primary dark:focus:ring-blue-800">
<button type="submit" class="p-2.5 ml-2 text-sm font-medium text-white bg-button-primary rounded-lg border border-button-primary hover:bg-button-primary focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-button-primary dark:hover:bg-button-primary dark:focus:ring-blue-800" style="max-width:80%">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
@@ -28,24 +31,55 @@
<a title="BotsCord" href="/tag/Moderation" class="text-white bg-button-primary hover:bg-button-primary focus:ring-4 focus:ring-blue-300 font-bold rounded-lg text-sm px-2 py-2 mb-2 dark:bg-button-primary dark:hover:bg-button-primary focus:outline-none dark:focus:ring-button-primary underline hover:no-underline"><i class="fad fa-magic"></i>&nbsp;Moderation</a>
<a title="BotsCord" href="/tag/Fun" class="text-white bg-button-primary hover:bg-button-primary focus:ring-4 focus:ring-blue-300 font-bold rounded-lg text-sm px-2 py-2 mb-2 dark:bg-button-primary dark:hover:bg-button-primary focus:outline-none dark:focus:ring-button-primary underline hover:no-underline"><i class="fad fa-smile"></i>&nbsp;Fun</a>
<a title="BotsCord" href="/tag/Moderation" class="text-white bg-button-primary hover:bg-button-primary focus:ring-4 focus:ring-blue-300 font-bold rounded-lg text-sm px-2 py-2 mb-2 dark:bg-button-primary dark:hover:bg-button-primary focus:outline-none dark:focus:ring-button-primary underline hover:no-underline"><i class="fad fa-file"></i></i>&nbsp;Logging</a>
<a title="BotsCord" href="/tag/Utility" class="botscord-button"><i class="fad fa-cogs"></i>&nbsp;Utility</a>
<a title="BotsCord" href="/tag/Utility" class="text-white bg-button-primary hover:bg-button-primary focus:ring-4 focus:ring-blue-300 font-bold rounded-lg text-sm px-2 py-2 mb-2 dark:bg-button-primary dark:hover:bg-button-primary focus:outline-none dark:focus:ring-button-primary underline hover:no-underline"><i class="fad fa-cogs"></i>&nbsp;Utility</a>
</div>
</div>
</div>
<!-- Bots card with bot info -->
<div class="max-w-sm rounded overflow-hidden shadow-lg">
<img class="w-full" src="/img/card-top.jpg" alt="Sunset in the mountains">
<div class="px-6 py-4">
<div class="font-bold text-xl mb-2">The Coldest Sunset</div>
<p class="text-gray-700 text-base">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, nulla! Maiores et perferendis eaque, exercitationem praesentium nihil.
</p>
<!-- header with Title Promoted Bots -->
<div class="mb-3 mx-auto text-center">
<h2 class="text-xl text-white" translate="no">Promoted Bots</h2>
<p class="content text-white" style="opacity:.6">These bots are featured on BotsCord!</p>
</div>
<div class="flex flex-wrap grid-cols-3 items-center container-sm">
<div class="max-w-sm rounded overflow-hidden shadow-lg flex-none">
<img class="w-full rounded-full" src="https://cdn.discordapp.com/avatars/860390761307439114/2845a42b0c7868c3db29ea1996e84320.webp" alt="Sunset in the mountains">
<div class="px-6 py-4">
<div class="font-bold text-xl mb-2 text-white">The Coldest Sunset</div>
<p class="text-white text-base">
</p>
</div>
<div class="px-6 pt-4 pb-2">
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#photography</span>
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#travel</span>
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#winter</span>
</div>
</div>
<div class="px-6 pt-4 pb-2">
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#photography</span>
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#travel</span>
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#winter</span>
<div class="max-w-sm rounded overflow-hidden shadow-lg flex-none">
<img class="w-full rounded-full" src="https://cdn.discordapp.com/avatars/860390761307439114/2845a42b0c7868c3db29ea1996e84320.webp" alt="Sunset in the mountains">
<div class="px-6 py-4">
<div class="font-bold text-xl mb-2 text-white">The Coldest Sunset</div>
<p class="text-white text-base">
</p>
</div>
<div class="px-6 pt-4 pb-2">
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#photography</span>
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#travel</span>
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#winter</span>
</div>
</div>
<div class="max-w-sm rounded overflow-hidden shadow-lg flex-none">
<img class="w-full rounded-full" src="https://cdn.discordapp.com/avatars/860390761307439114/2845a42b0c7868c3db29ea1996e84320.webp" alt="Sunset in the mountains">
<div class="px-6 py-4">
<div class="font-bold text-xl mb-2 text-white">The Coldest Sunset</div>
<p class="text-white text-base">
</p>
</div>
<div class="px-6 pt-4 pb-2">
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#photography</span>
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#travel</span>
<span class="inline-block bg-button-primary rounded-full px-3 py-1 text-sm font-semibold text-white mr-2 mb-2">#winter</span>
</div>
</div>
</div>
<%- include("./includes/footer.ejs") %>