168 lines
6.6 KiB
HTML
168 lines
6.6 KiB
HTML
{% set random = range(1, 13)|random() %}
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en" class="h-full">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="description" content="Sign up in under 27 seconds.">
|
|
<meta name="author" content="">
|
|
<meta property="og:type" content="article" >
|
|
<meta property="og:title" content="{{'SITE_NAME' | app_config}}" >
|
|
<meta property="og:site_name" content="{{request.host}}" >
|
|
<meta property="og:image" content="{{'SITE_NAME' | app_config}}/assets/CHRISTMAS/images/{{'SITE_NAME' | app_config}}/preview.webp?v=200" >
|
|
<meta property="og:url" content="{{request.host}}">
|
|
<meta property="og:description" name="description" content="{{'SITE_NAME' | app_config}} - {{'SLOGAN' | app_config}}">
|
|
<meta property="og:author" name="author" content="{{request.host_url}}" >
|
|
<meta property="og:site_name" content="{{request.host}}" >
|
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:site" content="{{request.host_url}}">
|
|
<meta name="twitter:title" content="{{'SITE_NAME' | app_config}}" >
|
|
<meta name="twitter:creator" content="{{request.host_url}}">
|
|
<meta name="twitter:description" content="{{'SITE_NAME' | app_config}} - {{'SLOGAN' | app_config}}" >
|
|
<meta name="twitter:image" content="{{'SITE_NAME' | app_config}}/assets/CHRISTMAS/images/{{'SITE_NAME' | app_config}}/preview.webp?v=200" >
|
|
<meta name="twitter:url" content="{{request.host}}" >
|
|
|
|
<title>{% if ref_user %}{{ref_user.username}} invites you to {{'SITE_NAME' | app_config}}{% else %}Sign up - {{'SITE_NAME' | app_config}}{% endif %}</title>
|
|
|
|
<link rel="stylesheet" href="/assets/CHRISTMAS/css/main.css?v=440">
|
|
|
|
<link rel="stylesheet" href="/static/dist/main.css?v=440">
|
|
|
|
<style>:root{--primary:#{{'DEFAULT_COLOR' | app_config}}</style>
|
|
|
|
<link rel="preload" href="/assets/CHRISTMAS/css/fa.css?v=200" as="style" onload="this.onload=null;this.rel='stylesheet'">
|
|
<noscript><link rel="stylesheet" href="/assets/CHRISTMAS/css/fa.css?v=200"></noscript>
|
|
</head>
|
|
|
|
<body class="theme-iron dark 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">
|
|
|
|
{% if ref_user %}
|
|
<h1 class="text-center h2">@{{ref_user.username}} has invited you!</h1>
|
|
<p class="mx-auto text-gray-500">Looks like someone wants you to join {{'SITE_NAME' | app_config}}.</p>
|
|
{% endif %}
|
|
|
|
<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">
|
|
<a href="/">
|
|
<img class="-ml-4 block w-32 object-contain" src="/assets/CHRISTMAS/images/logos/winter/logo-{{ random }}.png" alt="logo"/>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="max-w-3xl w-full space-y-6 px-6 py-5 bg-gray-200 rounded shadow">
|
|
|
|
<form action="/signup" method="post" id="signup">
|
|
|
|
{% if error %}<div class="text-red-600 mb-2">{{error}}</div>{% endif %}
|
|
|
|
<div class="hidden">
|
|
<input type="hidden" name="formkey" value="{{formkey}}">
|
|
<input type="hidden" name="now" value="{{now}}">
|
|
{% if redirect %}
|
|
<input type="hidden" name="redirect" value="{{redirect}}">{% endif %}
|
|
{% if ref_user %}
|
|
<input type="hidden" name="referred_by" value="{{ref_user.id}}">{% endif %}
|
|
</div>
|
|
|
|
<div class="space-y-4">
|
|
|
|
<h2 class="text-base label text-black">
|
|
Create an Account
|
|
<span class="text-gray-500">or</span>
|
|
<a href="/login{{'?redirect='+redirect if redirect else ''}}" class="text-green-600 hover:text-green-700">
|
|
Login to rDrama
|
|
</a>
|
|
</h2>
|
|
|
|
<div>
|
|
<label for="username-register" class="hidden">Username</label>
|
|
<input class="form-input" id="username-register"
|
|
aria-describedby="usernameHelpRegister" type="text" name="username" pattern="[a-zA-Z0-9_\-]{3,25}" min="3" max="25" required placeholder="Username">
|
|
<small id="usernameHelpRegister" class="mt-1 block text-gray-500"></small>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="email-register" class="hidden">
|
|
Email Address <span class="text-xs text-gray-500 font-normal pl-1">(optional)</span>
|
|
</label>
|
|
<input class="form-input" id="email-register" aria-describedby="emailHelpRegister" type="email" name="email" placeholder="Email address">
|
|
</div>
|
|
|
|
<div>
|
|
<label for="password-register" class="hidden">Password</label>
|
|
<input class="form-input" id="password-register"
|
|
aria-describedby="passwordHelpReigster" type="password" name="password" required placeholder="Password">
|
|
<small id="passwordHelpRegister" class="block mt-1 text-gray-500 hidden">
|
|
Minimum of 8 characters required.
|
|
</small>
|
|
<small id="passwordHelpSuccess" class="block mt-1 text-green-600 hidden">
|
|
Your password meets the requirements.
|
|
</small>
|
|
</div>
|
|
|
|
<div>
|
|
<label for="password_confirm" class="hidden">Confirm Password</label>
|
|
<input class="form-input" id="password_confirm" aria-describedby="passwordConfirmHelp" type="password" name="password_confirm" required placeholder="Confirm password">
|
|
<div class="mt-4">
|
|
<input type="checkbox" id="termsCheck" required>
|
|
<label class="text-gray-700 text-xs pl-1" for="termsCheck">
|
|
I accept the <a href="/rules" target="_blank" class="text-blue-500 hover:text-blue-600">terms and conditions</a>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
{% if hcaptcha %}
|
|
<div class="h-captcha" data-sitekey="{{ hcaptcha }}"></div>
|
|
{% endif %}
|
|
|
|
<button class="btn btn-green w-full" id="register_button">
|
|
Create account
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
<ul class="pt-4 mx-auto w-full flex flex-col md:flex-row md:items-center md:justify-center md:space-x-3 md:divide-x md:divide-gray-300 text-xs leading-none border-t border-gray-300">
|
|
<li>
|
|
<a href="#" class="text-gray-400 hover:text-gray-500">
|
|
About
|
|
</a>
|
|
</li>
|
|
<li class="mt-2 md:mt-0 md:pl-3">
|
|
<a href="/rules" class="text-gray-400 hover:text-gray-500">
|
|
Community Etiquette
|
|
</a>
|
|
</li>
|
|
<li class="mt-2 md:mt-0 md:pl-3">
|
|
<span class="text-gray-400">
|
|
©2021 Copyright rdrama.net
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% include 'CHRISTMAS//awards/Christmas/Snow.html' %}
|
|
|
|
</div>
|
|
|
|
<script src="/assets/CHRISTMAS/js/signup.js?v=200"></script>
|
|
|
|
{% if hcaptcha %}
|
|
<script src="/assets/CHRISTMAS/js/hcaptcha.js?v=201"></script>
|
|
{% endif %}
|
|
|
|
<script defer src="/assets/CHRISTMAS/js/christmas/snow.js?v=200"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|