2018-04-19 06:22:53 +00:00
|
|
|
{% extends "_layout.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
|
2018-08-30 18:45:51 +00:00
|
|
|
{% block endmeta %}
|
|
|
|
{{ super() }}
|
|
|
|
{% if globals.google_site_verification %}
|
|
|
|
<meta name="google-site-verification" content="{{ globals.google_site_verification }}" />
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-04-18 21:00:36 +00:00
|
|
|
{% block stylesheets %}
|
|
|
|
{{ super() }}
|
2018-05-12 16:34:19 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="libs/fontello/fontello.css?v={{ globals.v3 }}">
|
2018-04-28 17:26:39 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/sweetalert.css?v={{ globals.v1 }}">
|
2018-04-26 12:53:19 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="css/home.css?v={{ globals.v1 }}">
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{ super() }}
|
2018-05-12 16:34:19 +00:00
|
|
|
<script type="text/javascript" src="libs/sweetalert/sweetalert.min.js?v={{ globals.v3 }}"></script>
|
|
|
|
<script type="text/javascript" src="libs/dropzone/dropzone.min.js?v={{ globals.v3 }}"></script>
|
|
|
|
<script type="text/javascript" src="libs/axios/axios.min.js?v={{ globals.v3 }}"></script>
|
|
|
|
<script type="text/javascript" src="libs/clipboard.js/clipboard.min.js?v={{ globals.v3 }}"></script>
|
|
|
|
<script type="text/javascript" src="libs/lazyload/lazyload.min.js?v={{ globals.v3 }}"></script>
|
2018-04-26 12:53:19 +00:00
|
|
|
<script type="text/javascript" src="js/home.js?v={{ globals.v1 }}"></script>
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{{ super() }}
|
|
|
|
<section class="hero is-fullheight has-text-centered" id="home">
|
|
|
|
<div class="hero-body section">
|
|
|
|
<div class="container">
|
|
|
|
<p id="b">
|
2018-04-26 12:53:19 +00:00
|
|
|
<img class="logo" alt="logo" src="images/logo_smol.png?v={{ globals.v2 }}">
|
2018-04-18 21:00:36 +00:00
|
|
|
</p>
|
|
|
|
<h1 class="title">{{ globals.name }}</h1>
|
|
|
|
<h2 class="subtitle">{{ globals.home_subtitle | safe }}</h2>
|
|
|
|
|
|
|
|
<h3 class="subtitle" id="maxFileSize"></h3>
|
|
|
|
|
|
|
|
<div class="columns is-gapless">
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
2018-05-11 14:34:13 +00:00
|
|
|
<div class="column">
|
2018-04-18 21:00:36 +00:00
|
|
|
<a id="loginToUpload" class="button is-danger is-loading" style="display: flex"></a>
|
2018-05-06 14:14:57 +00:00
|
|
|
<div id="albumDiv" class="field has-addons" style="display: none">
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<div class="select is-fullwidth">
|
|
|
|
<select id="albumSelect"></select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control">
|
2018-07-17 03:21:04 +00:00
|
|
|
<a id="createAlbum" class="button is-breeze" title="Create new album">
|
2018-05-06 14:14:57 +00:00
|
|
|
<i class="icon-plus"></i>
|
|
|
|
</a>
|
|
|
|
</div>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
2018-05-12 22:13:26 +00:00
|
|
|
{% if urlMaxSize -%}
|
|
|
|
<div id="tabs" class="tabs is-centered" style="display: none">
|
|
|
|
<ul>
|
|
|
|
<li data-id="tab-files" class="is-active"><a>Files</a></li>
|
|
|
|
<li data-id="tab-urls"><a>URLs</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{%- endif %}
|
|
|
|
<div id="tab-files" class="tab-content" style="display: none">
|
|
|
|
<div class="field dz-container"></div>
|
|
|
|
<div class="field uploads" style="display: none"></div>
|
|
|
|
</div>
|
|
|
|
{% if urlMaxSize -%}
|
|
|
|
<div id="tab-urls" class="tab-content" style="display: none">
|
|
|
|
<div class="field">
|
|
|
|
<div class="control">
|
|
|
|
<textarea id="urls" class="textarea" rows="2"></textarea>
|
2018-05-11 14:34:13 +00:00
|
|
|
</div>
|
2018-05-12 22:13:26 +00:00
|
|
|
<p class="help">Maximum file size for URL upload is {{ urlMaxSize }}.</p>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<div class="control is-expanded">
|
|
|
|
<a id="uploadUrls" class="button is-danger is-fullwidth is-unselectable">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="icon-upload-cloud"></i>
|
|
|
|
</span>
|
|
|
|
<span>Upload URLs</span>
|
|
|
|
</a>
|
2018-05-11 14:34:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-05-12 22:13:26 +00:00
|
|
|
<div class="field uploads" style="display: none"></div>
|
2018-05-11 14:34:13 +00:00
|
|
|
</div>
|
2018-05-12 22:13:26 +00:00
|
|
|
{%- endif %}
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-11 14:34:13 +00:00
|
|
|
<div id="tpl" style="display: none">
|
|
|
|
<div class="field">
|
|
|
|
<img class="is-unselectable">
|
|
|
|
<p class="name is-unselectable"></p>
|
|
|
|
<progress class="progress is-small is-danger" value="0" max="100">0%</progress>
|
|
|
|
<p class="error"></p>
|
|
|
|
<p class="link">
|
|
|
|
<a target="_blank" rel="noopener"></a>
|
|
|
|
</p>
|
|
|
|
<p class="clipboard-mobile is-hidden-desktop" style="display: none">
|
|
|
|
<a class="button is-info is-outlined clipboard-js" style="display: flex">
|
|
|
|
<span class="icon">
|
|
|
|
<i class="icon-clipboard-1"></i>
|
|
|
|
</span>
|
|
|
|
<span>Copy link to clipboard</span>
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h3 class="subtitle">
|
|
|
|
<a href="auth" id="loginLinkText"></a>
|
|
|
|
</h3>
|
|
|
|
|
2018-04-19 06:22:53 +00:00
|
|
|
{% include "_partial/links.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
2018-04-21 13:14:34 +00:00
|
|
|
|
2018-04-23 19:58:44 +00:00
|
|
|
{% include "_partial/noscript.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
{% endblock %}
|