0.0.149 upd main page
This commit is contained in:
@@ -1684,7 +1684,7 @@ button.cancel_remove{
|
||||
|
||||
|
||||
/*Static_pages*/
|
||||
h2#title_static{
|
||||
#title_static{
|
||||
text-align: center;
|
||||
font-family: Inter;
|
||||
font-size: 44px;
|
||||
@@ -1696,7 +1696,7 @@ h2#title_static{
|
||||
.title_static_wrapper{
|
||||
text-align: center;
|
||||
}
|
||||
.title_static_wrapper>h2#title_static{
|
||||
.title_static_wrapper>#title_static{
|
||||
display: inline-block;
|
||||
}
|
||||
span#sub_title_static{
|
||||
@@ -2311,6 +2311,47 @@ summary:focus {
|
||||
|
||||
/*END faq_main_page*/
|
||||
|
||||
/*news_block_main_page*/
|
||||
.news_block_main {
|
||||
display: flex;
|
||||
margin: 0 80px 0 80px;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
|
||||
}
|
||||
|
||||
.news_item {
|
||||
width: 30%;
|
||||
margin-bottom: 2%;
|
||||
background-color: white;
|
||||
filter: drop-shadow(-1px 4px 10px rgba(198, 199, 203, 0.20)) drop-shadow(0px -1px 10px rgba(198, 199, 203, 0.20));
|
||||
border-radius: 20px;
|
||||
}
|
||||
|
||||
.news_item>div{
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
.news_img>img{
|
||||
object-fit: cover;
|
||||
width: 100%;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.news_gradient{
|
||||
width: 100%;
|
||||
height: 46px;
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(0deg, #FFF 50%, rgba(255, 255, 255, 0.00) 100%);
|
||||
margin: 0 !important;
|
||||
position: absolute;
|
||||
bottom: -2%;
|
||||
right: 0;
|
||||
|
||||
}
|
||||
/*END news_block_main_page*/
|
||||
|
||||
/*end_static_pages*/
|
||||
|
||||
|
||||
|
||||
@@ -74,9 +74,9 @@
|
||||
<img class="svg" src="/static/img/svg/User.svg">
|
||||
<a href="#">Мой профиль</a>
|
||||
</div>
|
||||
{# <div>#}
|
||||
{# <a href="/profile/logout">Выйти из профиля</a>#}
|
||||
{# </div>#}
|
||||
<div>
|
||||
<a href="/profile/logout">Выйти из профиля</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info_profile">
|
||||
{% if not page_html %}
|
||||
|
||||
@@ -13,10 +13,7 @@
|
||||
<div class="top_block_static">
|
||||
|
||||
<div class="title_static_wrapper">
|
||||
<h2 id=title_static>{% translate "Отправляй" %}</h2>
|
||||
<span class="color_title">{% translate "посылку" %}</span>
|
||||
<h2 id=title_static>{% translate "в любую точку мира" %}</h2>
|
||||
<h2 id=title_static>!</h2>
|
||||
<div id=title_static>{% blocktrans %}Отправляй <span class="color_title">посылку</span> в любую точку мира!{% endblocktrans %}</div>
|
||||
</div>
|
||||
<span id="sub_title_static">
|
||||
<p>
|
||||
@@ -249,10 +246,23 @@
|
||||
</div>
|
||||
|
||||
|
||||
<h2 id=title_static>{% translate "Последние новости" %}</h2>
|
||||
|
||||
<div class="news_block_static">
|
||||
<h2 id=title_static>{% translate "Последние новости" %}</h2>
|
||||
<div class="news_block_main">
|
||||
{% for art in articles %}
|
||||
|
||||
<div class="news_item">
|
||||
<div class="news_img"><img src="{{ MEDIA_URL }}{{ art.picture }}" /></div>
|
||||
<div class="news_header">{{ art.name }}</div>
|
||||
<div class="news_description">
|
||||
{{ art.description|truncatechars:100 }}
|
||||
<div class="news_gradient"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user