Files
python-flask-picture-factory/templates/index.html

48 lines
1.9 KiB
HTML

<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Image factory providing automatically resized and re-encoded images.">
<meta name="author" content="Yannik Schmidt">
<meta name="title" content="Image Factory">
<meta property="og:type" content="website" />
<meta property="og:title" content="Image Factory" />
<meta property="og:description" content="Image Factory developed by Yannik Schmidt" />
<meta property="og:url" content="/" />
</head>
<body>
<div class="dev-info">
Image Factory for internal use,
developed by <a href="https://potaris.de">Yannik Schmidt</a><br>
Availiable on
<a href="https://github.com/FAUSheppy/python-flask-picture-factory">FAUSheppy GitHub</a>
</div>
<p>
Public Images List:
</p>
<div class="overview">
{% for path in paths %}
{% if not "cache" in path %}
{% if isPictureDict[path] %}
<a href="/m/{{ path }}" style="display: inline-block; float: left; margin: 5px;">
<img alt="{{ path }}" src="/m/{{ path }}?encoding=webp&x=250"
style="max-width: 250px; max-heigh: 250px; overflow: hidden;">
</img>
</a>
{% else %}
<a href="/m/{{ path }}" style="display: inline-block; float: left; magin: 5px;
word-break: break-all;">
<div style="height: 150px; width: 250px; background: aliceblue;">
<p style="font-size: 40px; position: absolute; margin-left: 80px;
margin-top: 20px;">&#10060;</p>
<br>
<p style="margin-top: 80px; padding-left: 20px; padding-right: 20px">
{{ path }}
</p>
</div>
</a>
{% endif %}
{% endif %}
{% endfor %}
</div>
</body>