Prettify code

This commit is contained in:
RedoX 2021-06-22 15:07:07 +00:00
parent 67f4298223
commit 64395efcbb
4 changed files with 30 additions and 44 deletions

View File

@ -1,11 +1,11 @@
</div> </div>
<footer class="w-full my-4 py-4 bg-gray-300 xl:text-xl"> <footer class="w-full my-4 py-4 bg-gray-300 xl:text-xl">
<div class="mx-auto text-center text-black max-w-screen-xl"> <div class="mx-auto text-center text-black max-w-screen-xl">
<a href="https://github.com/odysseusmax/tg-index" target="_blank"> @odysseusmax </a> <a href="https://github.com/odysseusmax/tg-index" target="_blank"> @odysseusmax </a>
</div> </div>
</footer> </footer>
<script> <script>
function toggleTheme() { function toggleTheme() {
element = document.documentElement; element = document.documentElement;
if (element.className == "light") { if (element.className == "light") {
element.className = "dark"; element.className = "dark";
@ -19,18 +19,8 @@
function chatImgAlt() { function chatImgAlt() {
document.getElementById('chatimg').src = 'https://s3.imgcdn.dev/nWNtu.jpg' document.getElementById('chatimg').src = 'https://s3.imgcdn.dev/nWNtu.jpg'
} }
</script> </script>
<!--
<script>
function toggleColorMode() {
if (localStorage.theme = 'light') {
localStorage.theme = 'dark';
} else {
localStorage.theme = 'dark';
}
}
</script>
-->
</body> </body>
</html> </html>

View File

@ -1,16 +1,15 @@
{% include 'header.html' %} {% include 'header.html' %}
<h1 class=" my-2 text-2xl text-center font-bold text-green-400"> <h1 class=" my-2 text-2xl text-center font-bold text-green-400">
Available Sources Available Sources
</h1> </h1>
<div class="mx-auto my-1 p-1 w-full"> <div class="mx-auto my-1 p-1 w-full">
<div class="px-2 sm:px-4 md:px-6 lg:px-8 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3 text-center break-words"> <div class="px-2 sm:px-4 md:px-6 lg:px-8 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3 text-center break-words">
{% for chat in chats %} {% for chat in chats %}
<a title="{{chat.name}}" href="/{{chat.page_id}}" <a title="{{chat.name}}" href="/{{chat.page_id}}" class="p-4 rounded shadow hover:shadow-md hover:border hover:border-blue-300 hover:bg-blue-100 dark:bg-red-700 dark:hover:bg-red-500">
class="p-4 rounded shadow hover:shadow-md hover:border hover:border-blue-300 hover:bg-blue-100 dark:bg-red-700 dark:hover:bg-red-500">
<img src="/{{chat.page_id}}/logo?big=1" class="w-full rounded-full "> <img src="/{{chat.page_id}}/logo?big=1" class="w-full rounded-full ">
<div class="p-2 mt-2 rounded text-white bg-blue-500 dark:bg-yellow-500">{{chat.name}}</div> <div class="p-2 mt-2 rounded text-white bg-blue-500 dark:bg-yellow-500">{{chat.name}}</div>
</a> </a>

View File

@ -1,17 +1,14 @@
{% include 'header.html' %} {% include 'header.html' %} {% block javascript %}
{% block javascript %}
<script type="text/javascript"> <script type="text/javascript">
{% include "./js/filesaver.min.js" %} {% include "./js/filesaver.min.js" %}
{% include "./js/playlist.js" %} {% include "./js/playlist.js" %}
</script> </script>
{% endblock %} {% endblock %}
<div class="block md:flex justify-between items-center px-4 text-center border-b-2"> <div class="block md:flex justify-between items-center px-4 text-center border-b-2">
<div <div class="m-2 block md:flex items-center justify-center md:justify-start text-2xl md:text-right font-bold text-blue-500">
class="m-2 block md:flex items-center justify-center md:justify-start text-2xl md:text-right font-bold text-blue-500"> <img class="mx-auto md:ml-0 md:mr-1 my-4 md:my-2 w-16 h-16 rounded-full bg-black outline-none" src="{{logo}}">
<img class="mx-auto md:ml-0 md:mr-1 my-4 md:my-2 w-16 h-16 rounded-full bg-black outline-none" src="{{logo}}">
<a href="javascript:window.location.href=window.location.href"> {{name}} </a> <a href="javascript:window.location.href=window.location.href"> {{name}} </a>
</div> </div>

View File

@ -1,21 +1,21 @@
{% include 'header.html' %} {% include 'header.html' %}
<div class="min-h-full flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8"> <div class="min-h-full flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-md w-full space-y-8"> <div class="max-w-md w-full space-y-8">
<div> <div>
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-green-500"> <h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-green-500">
Sign in to view the contents Sign in to view the contents
</h2> </h2>
</div> </div>
{% if error %} {% if error %}
<div> <div>
<h2 class="p-2 text-center text-xl text-red-500 rounded border border-l-4 border-red-500"> <h2 class="p-2 text-center text-xl text-red-500 rounded border border-l-4 border-red-500">
{{ error }} {{ error }}
</h2> </h2>
</div> </div>
{% endif %} {% endif %}
<form class="mt-8 space-y-6" action="/login" method="POST"> <form class="mt-8 space-y-6" action="/login" method="POST">
<input type="hidden" name="remember" value="true"> <input type="hidden" name="remember" value="true">
<input type="hidden" name="redirect_to" value="{{redirect_to}}"> <input type="hidden" name="redirect_to" value="{{redirect_to}}">
<div class="rounded-md shadow-sm -space-y-px"> <div class="rounded-md shadow-sm -space-y-px">
<div> <div>