rDrama/files/templates/login.html

92 lines
3.0 KiB
HTML

{% set random = range(1, 13)|random() %}
<!DOCTYPE html>
<html class="h-full" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Sign in to {{'SITE_NAME' | app_config}}">
<meta name="author" content="">
{% block title %}
<title>Login - {{'SITE_NAME' | app_config}}</title>
{% endblock %}
<link rel="stylesheet" href="/assets/css/main.css?v=125">
{% assets 'css' %}
<link rel="stylesheet" href="{{ ASSET_URL }}">
{% endassets %}
<style>:root{--primary:#{{'DEFAULT_COLOR' | app_config}}</style>
<link rel="preload" href="/assets/css/fa.css?v=52" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="/assets/css/fa.css?v=52"></noscript>
</head>
<body class="relative h-full bg-gradient-to-t from-gray-500 to-gray-400">
<div class="relative min-h-full flex flex-col items-center justify-center pt-28 pb-12 px-4 sm:px-6 lg:px-8">
<div class="max-w-md w-full">
<div class="max-w-2xl mx-8 p-3 flex justify-center items-center rounded-t-lg bg-gray-700 border border-gray-800 shadow-inset-t-white-10">
<img class="-ml-4 block w-32 object-contain" src="/assets/images/logos/winter/logo-{{ random }}.png" alt="logo"/>
</div>
<div class="max-w-2xl w-full space-y-8 px-6 py-5 bg-gray-200 rounded shadow">
<form action="/login" method="post" class="mt-md-3" id="login">
<div class="space-y-4">
<input type="hidden" name="redirect" value="{{redirect}}">
<h2 class="text-base label text-black">
Login to rDrama
<span class="text-gray-500">or</span>
<a href="/signup{{'?redirect='+redirect if redirect else ''}}" class="text-green-600 hover:text-green-700">
Create an Account
</a>
</h2>
<div>
<label for="username" class="hidden">Username or Email Address</label>
<input class="form-input" id="username" aria-describedby="usernameHelp" type="text" name="username" required placeholder="Username or Email Address">
</div>
<div>
<label for="password" class="hidden">Password</label>
<input class="form-input" id="password" aria-describedby="passwordHelp" type="password" name="password" required placeholder="Password">
<small class="block mt-1 text-gray-400">
<a href="/forgot">Forgot password?</a>
</small>
</div>
<button class="btn btn-green w-full" id="login_button">Log in</button>
</div>
</form>
</div>
</div>
<div class="hidden mx-auto text-gray-300/70 text-xs mt-4">
Not a rdramanaut yet?
<a href="/signup{{'?redirect='+redirect if redirect else ''}}" class="font-bold text-gray-300/70 hover:text-gray-300">Create account</a>
</div>
{% include '/awards/Christmas/Snow.html' %}
</div>
<script defer src="/assets/js/christmas/snow.js?v=2"></script>
</body>
</html>