-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ченджлог на главной: первое приближение #1286
Open
solarrust
wants to merge
9
commits into
main
Choose a base branch
from
main-changelog
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a7e05d8
Ченджлог на главной: первое приближение
solarrust 9b5b11e
Стили для мобильных
solarrust 7a866c8
Обновляет разметку
solarrust 2d1b25a
Больше одного автора: меняет разметку и стили
solarrust 14aee60
Добавляет необходимые поля в коллекцию
igsekor 999bf0b
Добавляет объект для работы с ченджлогом
igsekor 46f5551
Меняет вёрстку на цикл
igsekor d8483dc
Делает короткую дату на мобильном реальностью
igsekor c49ea7e
Тюнит размеры
skorobaeus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<div class="changelog"> | ||
<h2 class="visually-hidden">Новые статьи</h2> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
<ul class="changelog-list"> | ||
<li class="changelog-list__item"> | ||
<div class="changelog-list__link changelog-item"> | ||
TatianaFokina marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<time datetime="0000000" class="changelog-item__time font-theme--code">22 апреля</time> | ||
<a href="#" class="changelog-item__title link">Распознавание речи</a> | ||
<a href="#" class="changelog-item__author font-theme--code link">Татьяна Фокина</a> | ||
</div> | ||
</li> | ||
<li class="changelog-list__item"> | ||
<div class="changelog-list__link changelog-item"> | ||
<time datetime="0000000" class="changelog-item__time font-theme--code">10 апреля</time> | ||
<a href="#" class="changelog-item__title link"><code>sv, lv, dv</code></a> | ||
<a href="#" class="changelog-item__author font-theme--code link">Александр Мосякин</a> | ||
</div> | ||
</li> | ||
<li class="changelog-list__item"> | ||
<div class="changelog-list__link changelog-item"> | ||
<time datetime="0000000" class="changelog-item__time font-theme--code">04 апреля</time> | ||
<a href="#" class="changelog-item__title link">Доступное имя и описание</a> | ||
<a href="#" class="changelog-item__author font-theme--code link">Марианна Минич</a> | ||
</div> | ||
</li> | ||
<li class="changelog-list__item"> | ||
<div class="changelog-list__link changelog-item"> | ||
<time datetime="0000000" class="changelog-item__time font-theme--code">01 апреля</time> | ||
<a href="#" class="changelog-item__title link">Очень выразительный React: самые простые компоненты</a> | ||
<a href="#" class="changelog-item__author font-theme--code link">Полина Гуртовая</a> | ||
</div> | ||
</li> | ||
<li class="changelog-list__item"> | ||
<div class="changelog-list__link changelog-item"> | ||
<time datetime="0000000" class="changelog-item__time font-theme--code">30 марта</time> | ||
<a href="#" class="changelog-item__title link"><code>.closest()</code></a> | ||
<a href="#" class="changelog-item__author font-theme--code link">Viktar Nezhbart</a> | ||
</div> | ||
</li> | ||
</ul> | ||
<div class="changelog-footer"> | ||
<p class="changelog-footer__item">Новые материалы в <a href="https://github.com/doka-guide/content/blob/main/CHANGELOG.md" class="link changelog-footer__link">ченджлоге</a></p> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
<p class="changelog-footer__item">Станьте автором! Выберите тему в 🔥 <a href="https://github.com/doka-guide/content/milestone/22" class="link changelog-footer__link">Бэклоге</a></p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
.changelog { | ||
padding-block-end: clamp(40px, 4.8%, 80px); | ||
} | ||
|
||
.changelog-list { | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; | ||
line-height: 1.3; | ||
} | ||
|
||
.changelog-list__item:not(:last-child) { | ||
margin-block-end: 20px; | ||
} | ||
|
||
.changelog-item { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: baseline; | ||
column-gap: 18px; | ||
} | ||
|
||
.changelog-item__time, | ||
.changelog-item__author { | ||
display: flex; | ||
align-items: baseline; | ||
gap: 18px; | ||
font-size: 28px; | ||
} | ||
|
||
.changelog-item__time::after, | ||
.changelog-item__author::before { | ||
content: ''; | ||
flex: 1 1 auto; | ||
border-block-end: 5px dotted var(--color-text); | ||
opacity: 0.3; | ||
} | ||
|
||
.changelog-item__time { | ||
flex-shrink: 0; | ||
inline-size: 30%; | ||
font-family: var(--font-family); | ||
} | ||
|
||
.changelog-item__title { | ||
margin: 0; | ||
font-weight: normal; | ||
font-size: 24px; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
|
||
.changelog-item__author { | ||
flex: 1 0 25%; | ||
justify-content: end; | ||
font-family: var(--font-family) | ||
} | ||
|
||
.changelog-footer { | ||
display: flex; | ||
justify-content: space-between; | ||
gap: 18px; | ||
margin-block-start: 45px; | ||
} | ||
|
||
.changelog-footer::before { | ||
content: ""; | ||
flex-basis: 30%; | ||
} | ||
|
||
.changelog-footer__item { | ||
margin: 0; | ||
} | ||
|
||
.changelog-footer__item:last-child { | ||
flex-grow: 1; | ||
text-align: end; | ||
} | ||
|
||
@media (width <= 1024px) { | ||
.changelog-item { | ||
flex-wrap: wrap; | ||
} | ||
|
||
.changelog-item__time { | ||
inline-size: 100%; | ||
justify-content: end; | ||
} | ||
|
||
.changelog-item__time::after { | ||
display: none; | ||
} | ||
|
||
.changelog-item__title { | ||
max-inline-size: 55%; | ||
font-size: 18px; | ||
} | ||
|
||
.changelog-item__author::before { | ||
border-block-end-width: 3px; | ||
} | ||
|
||
.changelog-item__time, | ||
.changelog-item__author { | ||
font-size: 22px; | ||
} | ||
|
||
.changelog-footer { | ||
flex-direction: column; | ||
font-size: 18px; | ||
} | ||
|
||
.changelog-footer::before { | ||
display: none; | ||
} | ||
|
||
.changelog-footer__item:last-child { | ||
text-align: start; | ||
} | ||
} | ||
|
||
@media (width <= 768px) { | ||
.changelog-item { | ||
flex-direction: column; | ||
justify-content: start; | ||
} | ||
|
||
.changelog-item__time { | ||
inline-size: fit-content; | ||
justify-content: start; | ||
} | ||
|
||
.changelog-item__title { | ||
max-inline-size: 90dvw; | ||
font-size: 20px; | ||
} | ||
|
||
.changelog-item__author { | ||
flex: 0 0 auto; | ||
} | ||
|
||
.changelog-item__author::before { | ||
display: none; | ||
} | ||
|
||
.changelog-item__time, | ||
.changelog-item__author { | ||
font-size: 20px; | ||
} | ||
|
||
.changelog-footer { | ||
margin-block-start: 30px; | ||
font-size: 17px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
У нас есть заголовок, и эта часть выглядит, как отдельная смысловая. Может выделим её в
section
?