fix UI faq

This commit is contained in:
borntojesus 2024-02-08 12:36:33 +02:00
parent c71391a36f
commit 18e19a3ca7
4 changed files with 20 additions and 8 deletions

View file

@ -33,6 +33,7 @@ stripe = "https://donate.organicmaps.app/"
# Default English translation
[translations]
home = "Home"
address = "Address"
back = "Back to News"
contact = "Contact Us"

View file

@ -5,7 +5,10 @@
display: flex;
flex-direction: column;
align-items: flex-start;
ul {
list-style: disc;
padding-left: 20px;
}
&__row {
display: grid;
grid-template-columns: 1fr 1fr;
@ -14,16 +17,22 @@
&__img {
margin-bottom: 20rem;
width: 100%;
max-width: 400rem;
&--float {
float: right;
max-width: 100rem;
margin: 5rem;
max-height: 200rem;
object-fit: contain;
}
&--one {
max-height: 278rem;
max-height: 278rem;
max-width: 100%;
height: 278rem;
object-fit: cover;
object-position: center;
border-radius: 10rem;
height: 100%;
&:not(:first-of-type) {
display: none;
}
@ -43,6 +52,7 @@
&__content {
overflow: hidden;
margin-bottom: 60rem;
}
&__title {

View file

@ -71,12 +71,13 @@
{% endfor %}
{% if page.assets %}
{% for photo in page.assets | sort %}
<img class="post-min__img post-min__img--one" src="{{ page.path | safe }}{{ photo | split(pat='/') | last }}"/>
<!-- need to set firs image and discuss-->
{% endfor %}
{% else %}
<img class="post-min__img post-min__img--one" src="/"/>
<img class="post-min__img post-min__img--one" src="/images/post/img2.png"/>
{% endif %}
{% if page.title %}
<h2 class="h2-sub_v2 post-min__title">

View file

@ -26,13 +26,13 @@
</span>
</li>
<li class="bred-crum__item">
<a class="nav-bred bred-crum__link bred-crum--active" href="/post/"> <span style="color: red"> Need Title</span></a>
<a class="nav-bred bred-crum__link bred-crum--active" href="/post/"> {{ resource.title | safe }}</a>
</li>
</ul>
</nav>
<div class="single-news__item">
<h2 class="h1 post-min__title"> <span style="color: red"> Need Title</span></h2>
<h2 class="h1 post-min__title"> {{ resource.title | safe }}</h2>
<div class="post-min">