forked from MarseyWorld/MarseyWorld
Merge branch 'frost' of https://github.com/Aevann1/rDrama into frost
commit
25707af72a
|
@ -2480,6 +2480,9 @@ a.bg-light:hover, a.bg-light:focus, button.bg-light:hover, button.bg-light:focus
|
||||||
.text-center {
|
.text-center {
|
||||||
text-align: center !important;
|
text-align: center !important;
|
||||||
}
|
}
|
||||||
|
.text-justify {
|
||||||
|
text-align: justify !important;
|
||||||
|
}
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.text-md-left {
|
.text-md-left {
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
|
@ -2509,6 +2512,9 @@ a.bg-light:hover, a.bg-light:focus, button.bg-light:hover, button.bg-light:focus
|
||||||
.font-italic {
|
.font-italic {
|
||||||
font-style: italic !important;
|
font-style: italic !important;
|
||||||
}
|
}
|
||||||
|
.font-underline {
|
||||||
|
text-decoration: underline !important;
|
||||||
|
}
|
||||||
.text-primary {
|
.text-primary {
|
||||||
color: var(--primary) !important;
|
color: var(--primary) !important;
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,4 +68,12 @@ def inject_constants():
|
||||||
"CASINO_ENABLED":CASINO_ENABLED, "GUMROAD_LINK":GUMROAD_LINK,
|
"CASINO_ENABLED":CASINO_ENABLED, "GUMROAD_LINK":GUMROAD_LINK,
|
||||||
"DEFAULT_THEME":DEFAULT_THEME, "DESCRIPTION":DESCRIPTION,
|
"DEFAULT_THEME":DEFAULT_THEME, "DESCRIPTION":DESCRIPTION,
|
||||||
"has_sidebar":has_sidebar, "has_logo":has_logo, "has_app":has_app,
|
"has_sidebar":has_sidebar, "has_logo":has_logo, "has_app":has_app,
|
||||||
"FP":FP, "NOTIF_MODACTION_JL_MIN":NOTIF_MODACTION_JL_MIN, "cache":cache, "ONLINE_STR":ONLINE_STR, "patron":patron, "approved_embed_hosts":approved_embed_hosts, "dues":dues, "SIDEBAR_THREAD":SIDEBAR_THREAD, "BANNER_THREAD":BANNER_THREAD, "BADGE_THREAD":BADGE_THREAD, "SNAPPY_THREAD":SNAPPY_THREAD, "KOFI_TOKEN":KOFI_TOKEN, "KOFI_LINK":KOFI_LINK, "MAIL_USERNAME":app.config['MAIL_USERNAME']}
|
"FP":FP, "NOTIF_MODACTION_JL_MIN":NOTIF_MODACTION_JL_MIN, "cache":cache,
|
||||||
|
"ONLINE_STR":ONLINE_STR, "patron":patron, "dues":dues,
|
||||||
|
"SIDEBAR_THREAD":SIDEBAR_THREAD, "BANNER_THREAD":BANNER_THREAD,
|
||||||
|
"BADGE_THREAD":BADGE_THREAD, "SNAPPY_THREAD":SNAPPY_THREAD,
|
||||||
|
"KOFI_TOKEN":KOFI_TOKEN, "KOFI_LINK":KOFI_LINK,
|
||||||
|
"approved_embed_hosts":approved_embed_hosts,
|
||||||
|
"site_settings":app.config['SETTINGS'],
|
||||||
|
"MAIL_USERNAME":app.config['MAIL_USERNAME'],
|
||||||
|
}
|
||||||
|
|
|
@ -430,7 +430,6 @@ def admin_home(v):
|
||||||
|
|
||||||
return render_template("admin/admin_home.html", v=v,
|
return render_template("admin/admin_home.html", v=v,
|
||||||
under_attack=under_attack,
|
under_attack=under_attack,
|
||||||
site_settings=app.config['SETTINGS'],
|
|
||||||
gitref=gitref)
|
gitref=gitref)
|
||||||
|
|
||||||
def admin_git_head():
|
def admin_git_head():
|
||||||
|
|
|
@ -7,136 +7,140 @@
|
||||||
<link rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
|
<link rel="icon" type="image/webp" href="{{'icon.webp' | asset_siteimg}}">
|
||||||
|
|
||||||
<meta name="description" content="{{DESCRIPTION}}">
|
<meta name="description" content="{{DESCRIPTION}}">
|
||||||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
|
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline'; connect-src 'self'; object-src 'none';">
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
<meta name="author" content="">
|
<meta name="author" content="">
|
||||||
<meta property="og:type" content="article">
|
<meta property="og:type" content="article">
|
||||||
<meta property="og:title" content="{{SITE_NAME}}">
|
<meta property="og:title" content="{{SITE_NAME}}">
|
||||||
<meta property="og:site_name" content="{{SITE}}">
|
<meta property="og:site_name" content="{{SITE}}">
|
||||||
<meta property="og:image" content="{{'site_preview.webp' | asset_siteimg}}">
|
<meta property="og:image" content="{{'site_preview.webp' | asset_siteimg}}">
|
||||||
<meta property="og:url" content="{{SITE_FULL}}">
|
<meta property="og:url" content="{{SITE_FULL}}">
|
||||||
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{DESCRIPTION}}">
|
<meta property="og:description" name="description" content="{{SITE_NAME}} - {{DESCRIPTION}}">
|
||||||
<meta property="og:author" name="author" content="{{SITE_FULL}}">
|
<meta property="og:author" name="author" content="{{SITE_FULL}}">
|
||||||
|
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
<meta name="twitter:card" content="summary_large_image">
|
||||||
<meta name="twitter:site" content="{{SITE_FULL}}">
|
<meta name="twitter:site" content="{{SITE_FULL}}">
|
||||||
<meta name="twitter:title" content="{{SITE_NAME}}">
|
<meta name="twitter:title" content="{{SITE_NAME}}">
|
||||||
<meta name="twitter:creator" content="{{SITE_FULL}}">
|
<meta name="twitter:creator" content="{{SITE_FULL}}">
|
||||||
<meta name="twitter:description" content="{{SITE_NAME}} - {{DESCRIPTION}}">
|
<meta name="twitter:description" content="{{SITE_NAME}} - {{DESCRIPTION}}">
|
||||||
<meta name="twitter:image" content="{{'site_preview.webp' | asset_siteimg}}">
|
<meta name="twitter:image" content="{{'site_preview.webp' | asset_siteimg}}">
|
||||||
<meta name="twitter:url" content="{{SITE_FULL}}">
|
<meta name="twitter:url" content="{{SITE_FULL}}">
|
||||||
|
|
||||||
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>
|
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>
|
||||||
|
|
||||||
<style>:root{--primary:#{{DEFAULT_COLOR}}</style>
|
<style>:root{--primary:#{{DEFAULT_COLOR}}</style>
|
||||||
<link rel="stylesheet" href="{{'css/main.css' | asset}}">
|
<link rel="stylesheet" href="{{'css/main.css' | asset}}">
|
||||||
<link rel="stylesheet" href="{{('css/'~DEFAULT_THEME~'.css') | asset}}">
|
<link rel="stylesheet" href="{{('css/'~DEFAULT_THEME~'.css') | asset}}">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body id="login">
|
<body id="login">
|
||||||
|
|
||||||
<div class="container-fluid position-absolute h-100 p-0 overflow-auto">
|
<div class="container-fluid position-absolute h-100 p-0 overflow-auto">
|
||||||
<div class="row no-gutters h-100">
|
<div class="row no-gutters h-100">
|
||||||
|
|
||||||
<div class="col-12 col-md-6 my-auto p-3">
|
<div class="col-12 col-md-6 my-auto p-3">
|
||||||
|
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
|
|
||||||
<div class="col-10 col-md-7">
|
<div class="col-10 col-md-7">
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<a href="/" class="text-decoration-none"><span class="h3 text-primary"></span></a>
|
<a href="/" class="text-decoration-none"><span class="h3 text-primary"></span></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="register-form" class="">
|
<div id="register-form" class="">
|
||||||
|
|
||||||
{% if ref_user %}
|
{% if ref_user %}
|
||||||
<h1 class="h2">@{{ref_user.username}} has invited you!</h1>
|
<h1 class="h2">@{{ref_user.username}} has invited you!</h1>
|
||||||
<p class="text-muted mb-md-2">Looks like someone wants you to join {{SITE_NAME}}.</p>
|
<p class="text-muted mb-md-2">Looks like someone wants you to join {{SITE_NAME}}.</p>
|
||||||
{% else %}
|
{% elif SITE_NAME == 'WPD' and site_settings['login_required'] %}
|
||||||
<h1 class="h2">Create your account.</h1>
|
<p class="text-muted text-justify mb-1" style="line-height: 1.2em">
|
||||||
<p class="text-muted mb-md-2">No email address required.</p>
|
<strong>Hi you!</strong> — <span style="font-variant-caps: small-caps;">WatchPeopleDie.co</span> is currently doing our monthly 24(ish) hours of "everyone needs to have an account"—sorry about that! But making an account is actually super easy. <strong>You don't even need an email address!</strong> Literally just pick a username, set a password, and that's that. Bam, done, like 8 seconds, tops.<br>
|
||||||
{% endif %}
|
</p>
|
||||||
|
<p class="text-muted mb-md-2">
|
||||||
|
We WANT you with us 💖<br>
|
||||||
|
Please join!
|
||||||
|
</p>
|
||||||
|
<hr>
|
||||||
|
{% else %}
|
||||||
|
<h1 class="h2">Create your account.</h1>
|
||||||
|
<p class="text-muted mb-md-2">No email address required.</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<form action="/signup" method="post" class="mt-md-3" id="signup">
|
<form action="/signup" method="post" class="mt-md-3" id="signup">
|
||||||
|
|
||||||
{% if error %}<span class="text-danger">{{error}}</span><br>{% endif %}
|
{% if error %}<span class="text-danger">{{error}}</span><br>{% endif %}
|
||||||
|
|
||||||
<input type="hidden" name="formkey" value="{{formkey}}">
|
<input type="hidden" name="formkey" value="{{formkey}}">
|
||||||
<input type="hidden" name="now" value="{{now}}">
|
<input type="hidden" name="now" value="{{now}}">
|
||||||
|
|
||||||
{% if redirect %}<input type="hidden" name="redirect" value="{{redirect}}">{% endif %}
|
{% if redirect %}<input type="hidden" name="redirect" value="{{redirect}}">{% endif %}
|
||||||
{% if ref_user %}
|
{% if ref_user %}
|
||||||
<input type="hidden" name="referred_by" value="{{ref_user.id}}">{% endif %}
|
<input type="hidden" name="referred_by" value="{{ref_user.id}}">{% endif %}
|
||||||
|
|
||||||
<label for="username-register" class="mt-3">Username</label>
|
<label for="username-register" class="mt-3">Username</label>
|
||||||
|
|
||||||
<input autocomplete="off" class="form-control" id="username-register"
|
<input autocomplete="off" class="form-control" id="username-register"
|
||||||
aria-describedby="usernameHelpRegister" type="text" name="username" pattern="[a-zA-Z0-9_\-]{3,25}" min="3" max="25" required="">
|
aria-describedby="usernameHelpRegister" type="text" name="username" pattern="[a-zA-Z0-9_\-]{3,25}" min="3" max="25" required="">
|
||||||
<small id="usernameHelpRegister"></small>
|
<small id="usernameHelpRegister"></small>
|
||||||
|
|
||||||
<label for="email-register" class="mt-3">Email Address</label>
|
<label for="email-register" class="mt-3">Email Address</label>
|
||||||
|
|
||||||
<small class="d-inline-block text-muted ml-1">(optional)</small>
|
<small class="d-inline-block text-muted ml-1">(optional)</small>
|
||||||
|
|
||||||
<input style="background-color: var(--gray-800)" autocomplete="off" class="form-control" id="email-register"
|
<input style="background-color: var(--gray-800)" autocomplete="off" class="form-control" id="email-register"
|
||||||
aria-describedby="emailHelpRegister" type="email" pattern='([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|a-z]{2,})+' name="email" readonly onfocus="if (this.hasAttribute('readonly')) {this.removeAttribute('readonly');this.blur();this.focus()}">
|
aria-describedby="emailHelpRegister" type="email" pattern='([A-Za-z0-9]+[.-_])*[A-Za-z0-9]+@[A-Za-z0-9-]+(\.[A-Z|a-z]{2,})+' name="email" readonly onfocus="if (this.hasAttribute('readonly')) {this.removeAttribute('readonly');this.blur();this.focus()}">
|
||||||
|
|
||||||
<label for="password-register" class="mt-3">Password</label>
|
<label for="password-register" class="mt-3">Password</label>
|
||||||
|
|
||||||
<input autocomplete="off" class="form-control" id="password-register"
|
<input autocomplete="off" class="form-control" id="password-register"
|
||||||
aria-describedby="passwordHelpReigster" type="password" name="password" required="">
|
aria-describedby="passwordHelpReigster" type="password" name="password" required="">
|
||||||
<small id="passwordHelpRegister" class="form-text font-weight-bold text-muted d-none mt-1">Minimum of 8
|
<small id="passwordHelpRegister" class="form-text font-weight-bold text-muted d-none mt-1">Minimum of 8
|
||||||
characters
|
characters
|
||||||
required.</small>
|
required.</small>
|
||||||
<small id="passwordHelpSuccess" class="form-text font-weight-bold text-success d-none mt-1">Your password meets the requirements.
|
<small id="passwordHelpSuccess" class="form-text font-weight-bold text-success d-none mt-1">Your password meets the requirements.
|
||||||
</small>
|
</small>
|
||||||
|
|
||||||
<label for="password_confirm" class="mt-3">Confirm Password</label>
|
<label for="password_confirm" class="mt-3">Confirm Password</label>
|
||||||
|
|
||||||
<input autocomplete="off" class="form-control" id="password_confirm"
|
|
||||||
aria-describedby="passwordConfirmHelp" type="password" name="password_confirm"
|
|
||||||
required="">
|
|
||||||
<div class="custom-control custom-checkbox mt-4">
|
|
||||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="termsCheck" required>
|
|
||||||
<label class="custom-control-label terms" for="termsCheck">I accept the <a href="/logged_out/sidebar">rules</a></label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if hcaptcha %}
|
|
||||||
<div class="h-captcha" data-sitekey="{{hcaptcha}}" data-theme="dark"></div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<button class="btn btn-primary login w-100 mt-3" id="register_button">Register</button>
|
|
||||||
|
|
||||||
<div class="text-center text-muted text-small mt-5 mb-3">
|
|
||||||
Already have an account? <a href="/login{{'?redirect='+redirect if redirect else ''}}" class="font-weight-bold toggle-login">Log in</a>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<input autocomplete="off" class="form-control" id="password_confirm"
|
||||||
|
aria-describedby="passwordConfirmHelp" type="password" name="password_confirm"
|
||||||
|
required="">
|
||||||
|
<div class="custom-control custom-checkbox mt-4">
|
||||||
|
<input autocomplete="off" type="checkbox" class="custom-control-input" id="termsCheck" required>
|
||||||
|
<label class="custom-control-label terms" for="termsCheck">I accept the <a href="/logged_out/sidebar">rules</a></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if hcaptcha %}
|
||||||
|
<div class="h-captcha" data-sitekey="{{hcaptcha}}" data-theme="dark"></div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<button class="btn btn-primary login w-100 mt-3" id="register_button">Register</button>
|
||||||
|
|
||||||
|
<div class="text-center text-muted text-small mt-5 mb-3">
|
||||||
|
Already have an account? <a href="/login{{'?redirect='+redirect if redirect else ''}}" class="font-weight-bold toggle-login">Log in</a>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 col-md-6 d-none d-md-block">
|
</div>
|
||||||
|
|
||||||
<div class="splash-wrapper">
|
|
||||||
|
|
||||||
<div class="splash-overlay"></div>
|
|
||||||
|
|
||||||
<img alt="cover" loading="lazy" class="splash-img" src="{{'cover.webp' | asset_siteimg}}"></img>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="col-12 col-md-6 d-none d-md-block">
|
||||||
|
<div class="splash-wrapper">
|
||||||
|
<div class="splash-overlay"></div>
|
||||||
|
<img alt="cover" loading="lazy" class="splash-img" src="{{'cover.webp' | asset_siteimg}}"></img>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script defer src="{{'js/signup.js' | asset}}"></script>
|
<script defer src="{{'js/signup.js' | asset}}"></script>
|
||||||
|
|
Loading…
Reference in New Issue