2023-01-10 12:39:29 +00:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
|
2023-03-26 01:04:13 +00:00
|
|
|
{% block nav_profile %}selected{% endblock %}
|
2023-03-08 13:36:35 +00:00
|
|
|
{% block content %}
|
2023-04-20 13:58:40 +00:00
|
|
|
<div class="banner">
|
|
|
|
{% if user.banner %}
|
|
|
|
<img src="{{ url_for('static', filename='icon.png') }}" alt="Profile Banner" onload="imgFade(this)" style="opacity:0;"/>
|
|
|
|
{% else %}
|
|
|
|
<img src="{{ url_for('static', filename='banner.png') }}" alt="Profile Banner" onload="imgFade(this)" style="opacity:0;"/>
|
|
|
|
{% endif %}
|
|
|
|
<span class="banner-filter"></span>
|
2023-03-08 13:36:35 +00:00
|
|
|
<div class="banner-content">
|
2023-04-20 13:58:40 +00:00
|
|
|
{% if user.picture %}
|
|
|
|
<img class="banner-picture" src="{{ url_for('static', filename='icon.png') }}" alt="Profile picture" onload="imgFade(this)" style="opacity:0;"/>
|
|
|
|
{% else %}
|
|
|
|
<img class="banner-picture" src="{{ url_for('static', filename='icon.png') }}" alt="Profile picture" onload="imgFade(this)" style="opacity:0;"/>
|
|
|
|
{% endif %}
|
2023-04-04 19:36:24 +00:00
|
|
|
<h1 class="banner-header">{{ user.username }}</h1>
|
2023-04-20 13:58:40 +00:00
|
|
|
<p class="banner-subtitle">{{ images|length }} Images · {{ groups|length }} Groups</p>
|
|
|
|
<div class="pill-row">
|
|
|
|
<div>
|
2023-04-20 16:15:51 +00:00
|
|
|
<button class="pill-item" onclick="profileShare()"><i class="ph ph-export"></i></button>
|
|
|
|
<button class="pill-item" onclick="moreInfo()"><i class="ph ph-info"></i></button>
|
2023-04-20 13:58:40 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2023-04-20 16:15:51 +00:00
|
|
|
<a href="{{ url_for('settings.general') }}#profileSettings" class="pill-item"><i class="ph ph-user-circle-gear"></i></a>
|
2023-04-20 13:58:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-03-08 13:36:35 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-04-20 13:58:40 +00:00
|
|
|
|
2023-04-04 14:55:32 +00:00
|
|
|
{% if images %}
|
2023-04-20 13:58:40 +00:00
|
|
|
<h1 class="gallery-header">Images</h1>
|
2023-04-04 14:55:32 +00:00
|
|
|
<div class="gallery-grid">
|
|
|
|
{% for image in images %}
|
2023-04-06 16:22:56 +00:00
|
|
|
<a id="image-{{ image.id }}" class="gallery-item" href="{{ url_for('image.image', image_id=image.id) }}" style="background-color: rgb({{ image.colours.0.0 }}, {{ image.colours.0.1 }}, {{ image.colours.0.2 }})">
|
2023-04-04 14:55:32 +00:00
|
|
|
<div class="image-filter">
|
|
|
|
<p class="image-title"><span class="time">{{ image.created_at }}</span></p>
|
|
|
|
</div>
|
2023-04-05 16:35:59 +00:00
|
|
|
<img fetchpriority="low" alt="{{ image.alt }}" data-src="{{ url_for('api.file', file_name=image.filename) }}?r=thumb" onload="this.classList.add('loaded');" id="lazy-load"/>
|
2023-04-04 14:55:32 +00:00
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="big-text">
|
|
|
|
<h1>*crickets chirping*</h1>
|
2023-04-20 16:15:51 +00:00
|
|
|
<p>There are no images here yet, oopsie!</p>
|
2023-04-04 14:55:32 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2023-01-10 12:39:29 +00:00
|
|
|
{% endblock %}
|
|
|
|
|