This commit is contained in:
jf 2019-10-28 12:15:31 +01:00
parent 05d40216ee
commit 43f97e4f82
No known key found for this signature in database
GPG key ID: B0C0A4C9085372B7
5 changed files with 53 additions and 45 deletions

View file

@ -4,14 +4,25 @@
<title>mat2 - web edition</title>
<link href="{{url_for('static', filename='raleway.woff2') }}" as="font" type="font/woff2" rel="preload">
<link rel="stylesheet" href="{{ url_for('static', filename='normalize.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ url_for('static', filename='skeleton.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ url_for('static', filename='uikit.min.css') }}" type="text/css" />
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" type="text/css" />
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
<script defer src="{{url_for('static', filename='script.js') }}"></script>
</head>
<body>
<div class="container">
<div class="row">
<header class="main-header">
<div class="uk-container">
<div class="row">
<div class="two-half column">
<a href='.' class="u-center-block">
<img class='logo' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo"/>
</a>
</div>
</div>
</div>
</header>
<div class="uk-container uk-flex uk-flex-center">
<div class="row uk-flex uk-flex-center">
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class=flashes>
@ -24,15 +35,9 @@
</div>
<section>
<div class="row">
<div class="four columns">
<a href='.'>
<img class='u-max-full-width' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo"/>
</a>
</div>
<div class="eight columns">
{% block content %}{% endblock %}
</div>
<div class="row uk-flex uk-flex-center">
{% block content %}{% endblock %}
</div>
</section>
<footer>

View file

@ -1,31 +1,15 @@
{% extends "base.html" %}
{% block content %}
<h2>» Remove metadata</h2>
<p>
Upload your file (max size: {{ max_file_size }}MB), get a <em>cleaned</em> one in
response.
<br><br>
Please note that while we do not keep a copy of your file,<br>
there is no way that you could be certain about this: act accordingly.
<br><br>
If you have the option, always run <a href="https://0xacab.org/jvoisin/mat2">mat2</a>
on your local device instead!<br>
</p>
<details>
<summary>Click <span class='fakelink'>here</span> to see the supported formats</summary>
<ul>
{% for mimetype in mimetypes %}
<li>{{ mimetype }}</li>
{% endfor %}
</ul>
</details>
<br>
<p>
Simply drag &amp; drop your file here or use the file select button below.
</p>
<form class='b' method=post enctype=multipart/form-data>
<input type=file name=file id="upload_file" accept="{{ mimetypes | join(', ') }}">
<input type=submit value=Upload>
</form>
<div class="shadowed-box u-text-center u-center-block">
<h2 class="uk-text-center">Remove metadata</h2>
<p class="uk-text-center">
The file you see is just the tip of the iceberg. Remove the hidden meta
</p>
<form class="b" method=post enctype=multipart/form-data>
<div class="uk-margin">
<input type="file" name=file id="upload_file" accept="{{ mimetypes | join(', ') }}">
<button class="uk-button uk-button-default" type="submit" value="Upload">Upload</button>
</div>
</form>
</div>
{% endblock %}