avtopost.kultmost.ru/templates/competition/member/index.html
2026-09-14 08:29:48 -04:00

228 lines
16 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "base.html" %}
{% import "/components/header.html" as header %}
{% import "components/share.html" as share %}
{% import "/components/footer.html" as footer %}
{% block title %}{{competition.title}} | Картины | {{member.username}}{% endblock %}
{% block content %}
{{ header.section(user) }}
<section class="c_r75b6">
<div class="c_hku7i b_g103h">
<div class="c_6vze6">
<div class="c_sjdyg b_erngz">
<div class="c_3uc9v b_xdnpi"><a class="c_pkwlt b_i5j4n" href="/competition/{{competition._id}}"><svg width="18" height="18" viewBox="0 0 18 18" fill="none"
xmlns="http://www.w3.org/2000/svg">
<path d="M5.86875 9.75L10.0688 13.95L9 15L3 9L9 3L10.0688 4.05L5.86875 8.25H15V9.75H5.86875Z"
fill="#5F1798" />
</svg><span class="c_xx3p8 b_52e6m">К участникам</span></a>
{% if competition.get('status',-1) == 2 %}
<div class="b_nj4pd_2">
<span class="b_ucqaf_2">Закончился</span>
</div>
{% elif competition.get('status',-1) == 1 %}
<div class="b_nj4pd_2">
<span class="b_ucqaf_2">Идет отбор</span>
</div>
{% else %}
<div class="b_nj4pd">
<span class="b_ucqaf">Прием заявок</span>
</div>
{% endif %}
</div>
<header class="c_crj73 b_0j79e">
<h2 class="c_ll3bc b_p0rks">{{competition.title}}</h2>
{{ share.share('/competition/{}'.format(competition._id), competition.title, '/b/competition/{}'.format(competition.poster_file_id), "Приглашаю на конкурс 🎨") }}
</header>
</div>
{% if competition.get('status',-1) == 0%}
<a class="c_wcdb7 b_ofiw3 ba" href="/profile/competition/{{competition._id}}#main"><span class="b_j2ln2">Отправить заявку на конкурс</span></a>
{% endif %}
<a class="c_rpq63 b_lyhks" href="/competition/{{competition._id}}">
<div class="c_fqmiw b_ilrcq"><img class="c_3jjk6 b_cm8eh" src="/a/{{member._id}}" crossorigin="anonymous" fetchpriority="high" loading="eager">
<div class="c_z4hj1 b_wobxu">
<p class="c_zra0k b_2oew9">{{member.living_place or ''}}</p>
<p class="c_7z8ku b_zjx0y">{{member.username or ''}}</p>
<p class="c_vzp3b b_2tocm">{% if 'user' in member.roles %}{{member.grade or ''}}{%endif%}</p>
{% if competition.get('status',-1) == 2%}
<p class="c_vzp3b b_2tocm">Картин отобрано: {{ posts|length }}</p>
{% else %}
<p class="c_vzp3b b_2tocm">Картин выставлено: {{ posts|length }}</p>
{% endif %}
{% if competition.type_ == 'artist' %}
{% if member.status %}
<div class="b_thlt1">
<span class="b_5dr47">Проходит</span>
</div>
{%else%}
<div class="b_thlt1_2">
<span class="b_5dr47_2">На рассмотрении</span>
</div>
{%endif%}
{% endif %}
</div>
</div>
</a >
</div>
<div class="c_fyi26">
{% for post in posts %}
{% if competition.get('status',-1) == 2%}
{% if post.status == 'Проходит'%}
<figure class="c_g5532 b_wcxt0">
<div class="b_1tx4m">
<picture>
<img crossorigin="anonymous" fetchpriority="high" loading="eager" alt="{{ post.title }}" class="b_1tx4m"
src="/b/posts/{{ post.medias_original[0] }}/500/90/80" data-src="/b/posts/{{ post.medias_original[0] }}">
</picture>
</div>
<figcaption class="c_fzh03 b_bp0ws">
{% if post.status == 'Проходит'%}
<div class="b_nj4pd"><span class="b_ucqaf">Проходит</span></div>
{% else %}
<div class="b_nj4pd_2"><span class="b_ucqaf_2">На рассмотрении</span></div>
{% endif %}
{% if 'galerist' in member.roles %}
<div class="c_rpq63 b_lyhks">
<div class="c_fqmiw b_ilrcq"><img class="c_3jjk6 b_cm8eh" src="/a/{{member._id}}" crossorigin="anonymous" fetchpriority="high" loading="eager">
<div class="c_z4hj1 b_wobxu">
<p class="c_zra0k b_2oew9">{{post.city or ''}}</p>
<p class="c_7z8ku b_zjx0y">{{post.author or ''}}</p>
<p class="c_vzp3b b_2tocm">{{post.grade or ''}}</p>
</div>
</div>
</div>
{% endif %}
<header class="c_zjvne b_tt84a">
<h2 class="c_6kn8d b_uilob">{{post.title}}</h2>
</header>
<p class="c_25654 b_tqr4q">{{post.description}}</p>
<p class="c_tn4fi b_vjrwu">{{ (post._id.generation_time.strftime('%d.%m.%Y')) if post._id else ''}}</p>
</figcaption>
</figure>
{% endif %}
{% else %}
<figure class="c_g5532 b_wcxt0">
<div class="b_1tx4m">
<picture>
<img crossorigin="anonymous" fetchpriority="high" loading="eager" alt="{{ post.title }}" class="b_1tx4m"
src="/b/posts/{{ post.medias_original[0] }}/500/90/80" data-src="/b/posts/{{ post.medias_original[0] }}">
</picture>
</div>
<figcaption class="c_fzh03 b_bp0ws">
{% if competition.type_ != 'artist' %}
{% if post.status == 'Проходит'%}
<div class="b_nj4pd"><span class="b_ucqaf">Проходит</span></div>
{% else %}
<div class="b_nj4pd_2"><span class="b_ucqaf_2">На рассмотрении</span></div>
{% endif %}
{% endif %}
{% if post.nomination %}
<div class="b_nj4pd_2"><span class="b_ucqaf_2">Номинация: {{post.nomination}}</span></div>
{% endif %}
{% if 'galerist' in member.roles %}
<div class="c_fqmiw b_ilrcq"><img class="c_3jjk6 b_cm8eh" crossorigin="anonymous" fetchpriority="high" loading="eager" src="/a/{{member._id}}">
<div class="c_z4hj1 b_wobxu">
<p class="c_zra0k b_2oew9">{{post.city or ''}}</p>
<p class="c_7z8ku b_zjx0y">{{post.author or ''}}</p>
<p class="c_vzp3b b_2tocm">{{post.grade or ''}}</p>
</div>
</div>
{% endif %}
<header class="c_zjvne b_tt84a">
<h2 class="c_6kn8d b_uilob">{{post.title}}</h2>
</header>
<p class="c_25654 b_tqr4q">{{post.description}}</p>
<p class="c_tn4fi b_vjrwu">{{ (post._id.generation_time.strftime('%d.%m.%Y')) if post._id else ''}}</p>
</figcaption>
</figure>
{% endif %}
{% endfor %}
</div>
</div>
</section>
{{ footer.section() }}
{% endblock %}
{% block head %}
{{ header.style() }}
<style>
.b_thlt1 { align-items: center; background: rgba(14, 214, 70, 0.20); border-radius: 30px; display: flex; justify-content: center; padding: 1.5px 10px; }
.b_5dr47 { color: #0ED646; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 700; line-height: normal; }
.b_thlt1_2 { align-items: center; background: rgba(95, 23, 152, 0.20); border-radius: 30px; display: flex; justify-content: center; padding: 1.5px 10px; }
.b_5dr47_2 { color: #5F1798; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 700; line-height: normal; }
picture{overflow: hidden;}
picture>img{
width: 100%;
object-fit: contain;
}
.b_ofiw3 { align-items: center; background: #5F1798; border-radius: 5px; display: flex; justify-content: center; padding: 15px 0; width: 335px; }
.b_j2ln2 { color: #FFF; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; }
.b_itgkw { fill: #5F1798; height: 12px; width: 12px; }
.b_tsh13 { height: 18px; width: 18px; }
.b_52e6m { color: #5F1798; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 700; line-height: normal; }
.b_i5j4n { align-items: center; background: rgba(95, 23, 152, 0.20); border-radius: 30px; display: flex; justify-content: center; padding: 0 10px; }
.b_ucqaf { color: #0ED646; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 700; line-height: normal; }
.b_nj4pd { align-items: center; background: rgba(14, 214, 70, 0.20); border-radius: 30px; display: flex; justify-content: center; padding: 1.5px 10px; }
.b_ucqaf_2 { color: #5F1798; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 700; line-height: normal; }
.b_nj4pd_2 { align-items: center; background: rgba(95, 23, 152, 0.20); border-radius: 30px; display: flex; justify-content: center; padding: 1.5px 10px; }
.b_ucqaf_3 { color: #cc1818; font-family: Inter; font-size: 12px; font-style: normal; font-weight: 700; line-height: normal; }
.b_nj4pd_3 { align-items: center; background: rgba(152, 23, 41, 0.2); border-radius: 30px; display: flex; justify-content: center; padding: 1.5px 10px; }
.b_xdnpi { align-items: flex-start; display: flex; gap: 10px; }
.b_p0rks { color: #000; font-family: Inter; font-size: 24px; font-style: normal; font-weight: 700; line-height: normal; }
.b_0j79e { align-items: baseline;
display: flex;
flex-direction: column;}
.b_erngz { align-items: flex-start; background: #FFF; border-radius: 10px; box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25), 0 4px 20px 0 rgba(0, 0, 0, 0.20); display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 10px 20px; width: 335px; }
.b_cm8eh { aspect-ratio: 1/1; border-radius: 1em; height: 70px; width: 70px; object-fit: cover;}
.b_2oew9 { color: #3A3A3A; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; width: 189px; }
.b_zjx0y { -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #000; display: -webkit-box; font-family: Inter; font-size: 16px; font-style: normal; font-weight: 700; line-height: normal; overflow: hidden; text-overflow: ellipsis; }
.b_2tocm { -webkit-box-orient: vertical; -webkit-line-clamp: 1; color: #000; display: -webkit-box; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; overflow: hidden; text-overflow: ellipsis; }
.b_wobxu { align-items: flex-start; display: flex; flex-direction: column; flex: 1 0 0; justify-content: center; }
.b_ilrcq { align-items: center; align-self: stretch; display: flex; gap: 13px; }
.b_lyhks { align-items: flex-start; background: #FFF; border-radius: 10px; box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25), 0 4px 20px 0 rgba(0, 0, 0, 0.20); display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 10px 20px; width: 335px; }
.b_1tx4m { align-self: stretch; border-radius: 5px; }
.b_uilob { color: #000; font-family: Inter; font-size: 24px; font-style: normal; font-weight: 700; line-height: normal; width: 315px; }
.b_tt84a { align-items: center; align-self: stretch; display: flex; justify-content: center; }
.b_tqr4q { -webkit-box-orient: vertical; -webkit-line-clamp: 3; align-self: stretch; color: rgba(58, 58, 58, 0.75); display: -webkit-box; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; overflow: hidden; text-overflow: ellipsis; }
.b_vjrwu { align-self: stretch; color: rgba(58, 58, 58, 0.75); font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; text-align: right; }
.b_bp0ws { align-items: flex-start; align-self: stretch; display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 10px 20px; }
.b_wcxt0 { align-items: flex-start; background: #FDFAFF; border-radius: 5px; border: 1px solid #5F1798; box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25), 0 4px 20px 0 rgba(0, 0, 0, 0.20); display: flex; flex-direction: column; width: 335px; }
.b_kcdt4 { -webkit-box-orient: vertical; -webkit-line-clamp: 1; color: #000; display: -webkit-box; font-family: Inter; font-size: 24px; font-style: normal; font-weight: 700; line-height: normal; overflow: hidden; text-overflow: ellipsis; }
.b_fa8f0 { -webkit-box-orient: vertical; -webkit-line-clamp: 3; align-self: stretch; color: rgba(58, 58, 58, 0.75); display: -webkit-box; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; min-height: 51px; overflow: hidden; text-overflow: ellipsis; }
.b_n8hqw { align-items: flex-start; background: #FDFAFF; border-radius: 5px; border: 1px solid #5F1798; box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25), 0 4px 20px 0 rgba(0, 0, 0, 0.20); display: flex; flex-direction: column; width: 335px; }
.b_g103h { align-items: center; display: flex; flex-direction: column; flex: 1 0 0; gap: 30px; }
.c_r75b6{margin: auto;}
/* Mobile */
@media (max-width: 699px) {
.c_wcdb7 { align-items: center; background: #5F1798; border-radius: 5px; display: flex; justify-content: center; min-width: 300px; padding: 15px 0; width: 335px; }
.c_6vze6 { align-content: flex-start; align-items: flex-start; align-self: stretch; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; min-width: 300px; }
.c_g5532 { align-items: flex-start; background: #FDFAFF; border-radius: 5px; border: 1px solid #5F1798; box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25), 0 4px 20px 0 rgba(0, 0, 0, 0.20); display: flex; flex-direction: column; min-width: 300px; width: 335px; }
.c_fyi26 { align-content: flex-start; align-items: flex-start; align-self: stretch; display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.c_r75b6 { align-items: flex-start; background: #FFF; display: flex; justify-content: center; width: 375px; }
}
/* Tablet */
@media (min-width: 700px) and (max-width: 900px) {
.c_6vze6 { align-content: flex-start; align-items: flex-start; align-self: stretch; display: flex; flex-wrap: wrap; gap: 20px; padding-left: 50px; }
.c_fyi26 { align-content: flex-start; align-items: flex-start; align-self: stretch; display: flex; flex-wrap: wrap; gap: 20px; padding-left: 50px; }
.c_hku7i { align-items: flex-start; display: flex; flex-direction: column; flex: 1 0 0; gap: 30px; }
.c_r75b6 { align-items: flex-start; background: #FFF; display: flex; justify-content: center; width: 800px; }
.c_6kn8d { -webkit-box-orient: vertical; -webkit-line-clamp: 1; display: -webkit-box; overflow: hidden; text-overflow: ellipsis; }
}
/* Desktop */
@media (min-width: 901px) {
.c_ll3bc { -webkit-box-orient: vertical; -webkit-line-clamp: 1; color: #000; display: -webkit-box; font-family: Inter; font-size: 24px; font-style: normal; font-weight: 700; line-height: normal; overflow: hidden; text-overflow: ellipsis; }
.c_6vze6 { align-content: center; align-items: center; align-self: stretch; display: flex; flex-wrap: wrap; gap: 20px; padding-left: 100px; }
.c_6kn8d { -webkit-box-orient: vertical; -webkit-line-clamp: 1; color: #000; display: -webkit-box; font-family: Inter; font-size: 24px; font-style: normal; font-weight: 700; line-height: normal; overflow: hidden; text-overflow: ellipsis; }
.c_zjvne { align-items: center; align-self: stretch; display: flex; }
.c_25654 { -webkit-box-orient: vertical; -webkit-line-clamp: 3; align-self: stretch; color: rgba(58, 58, 58, 0.75); display: -webkit-box; font-family: Inter; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; min-height: 51px; overflow: hidden; text-overflow: ellipsis; }
.c_fyi26 { align-content: flex-start; align-items: flex-start; align-self: stretch; display: flex; flex-wrap: wrap; gap: 20px; padding-left: 100px; }
.c_r75b6 { align-items: flex-start; background: #FFF; display: flex; justify-content: center; width: 1600px; }
}</style>
{{ footer.style() }}
{% endblock %}