avtopost.kultmost.ru/templates/profile/competition.html
2026-08-02 12:08:08 -04:00

72 lines
2.9 KiB
HTML

{% extends "base.html" %}
{% import "/components/header.html" as header %}
{% import "competition/card.html" as card %}
{% import "components/profile_card.html" as profile_card %}
{% import "components/profile_nav.html" as profile_nav %}
{% import "/components/footer.html" as footer %}
{% block title %}Конкурсы{% endblock %}
{% block content %}
{{ header.section(user) }}
<section class="c_dg3k4">
<div class="c_gtoe9">
{{ profile_card.profile_card(user) }}
<div class="c_ru432">
{{ profile_nav.profile_nav(user, 'competitions') }}
<div class="c_tihtk" id="main">
{% for competition in competitions %}
<a href="/competition/{{competition._id}}" id="l{{competition._id}}">
{{card.section(competition)}}
</a>
{% endfor %}
</div>
</div>
</div>
</section>
{{ footer.section(user) }}
{% endblock %}
{% block head %}
{{ header.style() }}
{{ card.style() }}
{{ profile_nav.style() }}
<style>
/* Mobile */
@media (max-width: 699px) {
.c_mrl59 { align-items: center; background: #5F1798; border-radius: 25px; bottom: -15px; display: flex; height: 50px; justify-content: center; position: absolute; right: -15px; width: 50px; }
.c_iiehk { align-items: flex-end; align-self: stretch; border-radius: 5px; display: flex; flex-direction: column; gap: 20px; }
.c_nnsh6 { align-content: center; align-items: baseline; display: flex; flex-shrink: 0; justify-content: space-around; padding: 3px 0; row-gap: 8px; width: 315px; flex-direction: column;}
.c_nnsh6>a, .c_nnsh6>a>span{width: 100%;box-shadow: none;}
.c_nnsh6>a:hover{background: #f7f7f7;border-radius: 8px;}
.c_nnsh6>a:active{background: #f7f7f7;border-radius: 8px;}
.c_3ihvi { align-items: center; background: #FFF; display: flex; flex-direction: column; flex-shrink: 0; gap: 15px; justify-content: center; padding: 15px 10px; width: 335px; }
.c_tihtk { align-content: flex-start; align-items: flex-start; display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 20px; justify-content: center; width: 335px; }
.c_ru432 { align-content: flex-start; align-items: flex-start; background: #FFF; border-radius: 5px; display: flex; flex-wrap: wrap; justify-content: center; padding: 15px 0; width: 335px; }
.c_gtoe9 { align-items: center; display: flex; flex-direction: column; gap: 30px; width: 335px; }
.c_dg3k4 { align-items: center; background: #F6EBFF; display: flex; flex-direction: column; padding: 50px 0; }
}
/* Tablet */
@media (min-width: 700px) and (max-width: 900px) {
.c_iiehk { align-items: center; border-radius: 5px; display: flex; flex-direction: column; gap: 20px; width: 335px; }
.c_nnsh6>a>img{display: none;}
}
/* Desktop */
@media (min-width: 901px) {
.c_iiehk { align-items: flex-end; border-radius: 5px; display: flex; flex-direction: column; gap: 20px; width: 310px; }
.c_nnsh6>a>img{display: none;}
}</style>
{{ footer.style() }}
{% endblock %}