2018-04-19 06:22:53 +00:00
|
|
|
{% extends "_layout.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
|
|
|
|
{% block stylesheets %}
|
|
|
|
{{ super() }}
|
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 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>
|
2018-04-18 21:09:57 +00:00
|
|
|
<h2 class="subtitle">{{ globals.home_subtitle | safe }}</h2>
|
2018-04-18 21:00:36 +00:00
|
|
|
|
|
|
|
<h3 class="subtitle" id="maxFileSize">
|
2018-04-25 13:16:34 +00:00
|
|
|
Maximum upload size per file is {{ renderOptions.maxFileSize }}
|
2018-04-18 21:00:36 +00:00
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div class="columns is-gapless">
|
|
|
|
<div class="column is-hidden-mobile"></div>
|
|
|
|
<div class="column">
|
2018-05-12 22:13:26 +00:00
|
|
|
<p class="subtitle" style="font-size: 1rem">
|
|
|
|
Files uploaded through this No-JS uploader will not be associated to your account, if you have any.
|
|
|
|
</p>
|
|
|
|
{% if renderOptions.uploadDisabled -%}
|
|
|
|
<a class="button is-danger" style="display: flex" href="auth">{{ renderOptions.uploadDisabled }}</a>
|
|
|
|
{%- else -%}
|
|
|
|
<form id="form" class="field" action="" method="post" enctype="multipart/form-data">
|
|
|
|
<div class="field">
|
|
|
|
<input type="file" name="files[]" multiple="multiple" style="width: 100%">
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<input type="submit" class="button is-danger" value="Upload" style="width: 100%">
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{%- endif %}
|
|
|
|
{% if files -%}
|
|
|
|
<div class="field uploads nojs">
|
|
|
|
{% for file in files -%}
|
|
|
|
<div class="field">
|
|
|
|
{% if errorMessage -%}
|
|
|
|
<p class="error">{{ errorMessage | safe }}</p>
|
|
|
|
{%- endif %}
|
|
|
|
{% if file.url -%}
|
|
|
|
<p class="link">
|
|
|
|
<a href="{{ file.url }}" target="_blank" rel="noopener">{{ file.url | safe }}</a>
|
|
|
|
</p>
|
|
|
|
{%- endif %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2018-04-18 21:00:36 +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-04-23 19:58:44 +00:00
|
|
|
{% set plain_links = true %}
|
2018-04-19 06:22:53 +00:00
|
|
|
{% include "_partial/links.njk" %}
|
2018-04-18 21:00:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|