mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
1eafafe8a7
* Fixed home page going out of bound due to git commit message. * Git commit message will no longer have dotted underline. The old solution by using border-bottom wasn't suitable when the text is being split by word-break, but text-decoration-style wouldn't look as good due to its distance from the text being too close. * Updated bulma to 0.7.2. * Bumped v1 and v3 version strings. * Various other small tweaks.
77 lines
2.7 KiB
Plaintext
77 lines
2.7 KiB
Plaintext
{% extends "_layout.njk" %}
|
|
|
|
{% block stylesheets %}
|
|
{{ super() }}
|
|
<link rel="stylesheet" type="text/css" href="css/home.css?v={{ globals.v1 }}">
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{{ super() }}
|
|
<section id="home" class="hero is-fullheight">
|
|
<div class="hero-body">
|
|
<div class="container has-text-centered">
|
|
<p id="b">
|
|
<img class="logo" alt="logo" src="images/logo_smol.png?v={{ globals.v2 }}">
|
|
</p>
|
|
<h1 class="title">{{ globals.name }}</h1>
|
|
<h2 class="subtitle">{{ globals.home_subtitle | safe }}</h2>
|
|
|
|
<h3 class="subtitle" id="maxFileSize">
|
|
Maximum upload size per file is {{ renderOptions.maxFileSize }}
|
|
</h3>
|
|
|
|
<div class="columns is-gapless">
|
|
<div class="column is-hidden-mobile"></div>
|
|
<div class="column">
|
|
<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 %}
|
|
</div>
|
|
{%- endif %}
|
|
</div>
|
|
<div class="column is-hidden-mobile"></div>
|
|
</div>
|
|
|
|
{% set plain_links = true %}
|
|
{% include "_partial/links.njk" %}
|
|
|
|
{% if gitHash -%}
|
|
<div class="git-commit columns is-gapless">
|
|
<div class="column is-hidden-mobile"></div>
|
|
<div class="column">
|
|
<span>Git commit: </span><a href="https://github.com/BobbyWibowo/lolisafe/commit/{{ gitHash }}" target="_blank" rel="noopener">{{ gitHash }}</a>
|
|
</div>
|
|
<div class="column is-hidden-mobile"></div>
|
|
</div>
|
|
{%- endif %}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{% endblock %}
|