mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16:21 +00:00
ea37e0b7d3
Reduced album title max length from 280 to 70. Existing albums with longer titles will have their titles truncated in their public pages, but the original titles will still remain in db. "Load images for preview" will now properly display its saved value. Increased max parallel uploads to 10. "yarn develop" will now also restart safe if some Nunjuck templates are edited (_globals.njk, _layout.njk, and album.njk). Better meta tags generation. Bumped v1 version string.
72 lines
2.3 KiB
Plaintext
72 lines
2.3 KiB
Plaintext
{% set metaTitle = "Auth" %}
|
|
{% set metaUrl = '/auth' %}
|
|
|
|
{% extends "_layout.njk" %}
|
|
|
|
{% block stylesheets %}
|
|
{{ super() }}
|
|
<link rel="stylesheet" href="libs/fontello/fontello.css?v={{ globals.v3 }}">
|
|
<link rel="stylesheet" href="css/sweetalert.css?v={{ globals.v1 }}">
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
{{ super() }}
|
|
<script src="libs/sweetalert/sweetalert.min.js?v={{ globals.v3 }}"></script>
|
|
<script src="libs/axios/axios.min.js?v={{ globals.v3 }}"></script>
|
|
<script src="js/auth.js?v={{ globals.v1 }}"></script>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
<section id="login" class="hero is-fullheight">
|
|
<div class="hero-body">
|
|
<div class="container">
|
|
<div class="columns is-centered">
|
|
<div class="column is-one-third is-hidden-touch"></div>
|
|
<div class="column">
|
|
<h1 class="title">
|
|
Dashboard Access
|
|
</h1>
|
|
<h2 class="subtitle">
|
|
Login or register
|
|
</h2>
|
|
<form id="authForm">
|
|
<div class="field">
|
|
<div class="control">
|
|
<input id="user" name="user" class="input" type="text" placeholder="Your username" minlength="4" maxlength="32">
|
|
</div>
|
|
</div>
|
|
<div class="field">
|
|
<div class="control">
|
|
<input id="pass" name="pass" class="input" type="password" placeholder="Your password" minlength="6" maxlength="64">
|
|
</div>
|
|
</div>
|
|
<div class="field is-grouped is-grouped-right">
|
|
<div class="control">
|
|
<button id="registerBtn" type="button" class="button">
|
|
<span class="icon">
|
|
<i class="icon-user-plus"></i>
|
|
</span>
|
|
<span>Register</span>
|
|
</button>
|
|
</div>
|
|
<div class="control">
|
|
<button id="loginBtn" type="submit" class="button is-info">
|
|
<span class="icon">
|
|
<i class="icon-login"></i>
|
|
</span>
|
|
<span>Log in</span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="column is-one-third is-hidden-mobile"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% include "_partial/noscript.njk" %}
|
|
{% endblock %}
|