Merge branch 'feature/empty-feed' into hotfix/following
This commit is contained in:
commit
823ff181c6
|
@ -351,9 +351,9 @@
|
||||||
"Personal": "Личные",
|
"Personal": "Личные",
|
||||||
"personal data usage and email notifications": "на обработку персональных данных и на получение почтовых уведомлений",
|
"personal data usage and email notifications": "на обработку персональных данных и на получение почтовых уведомлений",
|
||||||
"Pin": "Закрепить",
|
"Pin": "Закрепить",
|
||||||
"Placeholder feed": "Подпишитесь на любимые темы, авторов и сообщества — моментально узнавайте о новых публикациях и обсуждениях",
|
"Placeholder feed": "Подпишитесь на любимые темы, авторов и сообщества — <br/>моментально узнавайте о новых публикациях и обсуждениях",
|
||||||
"Placeholder feedCollaborations": "На платформе можно писать материалы вместе. Здесь появятся публикации, в которые вы внесли вклад",
|
"Placeholder feedCollaborations": "На платформе можно писать материалы вместе. <br/>Здесь появятся публикации, в которые вы внесли вклад",
|
||||||
"Placeholder feedDiscussions": "Дискурс — свободная платформа для осмысленного общения. Здесь появятся все ваши реплики, чтобы в любой момент вернуться к диалогу",
|
"Placeholder feedDiscussions": "Дискурс — свободная платформа для осмысленного общения. <br/>Здесь появятся все ваши реплики, чтобы в любой момент вернуться к диалогу",
|
||||||
"Platform Guide": "Гид по дискурсу",
|
"Platform Guide": "Гид по дискурсу",
|
||||||
"Please check your email address": "Пожалуйста, проверьте введенный адрес почты",
|
"Please check your email address": "Пожалуйста, проверьте введенный адрес почты",
|
||||||
"Please check your inbox! We have sent a password reset link.": "Пожалуйста, проверьте свою почту, мы отправили вам письмо со ссылкой для сброса пароля",
|
"Please check your inbox! We have sent a password reset link.": "Пожалуйста, проверьте свою почту, мы отправили вам письмо со ссылкой для сброса пароля",
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
.placeholder {
|
.placeholder {
|
||||||
border-radius: 2.2rem;
|
border-radius: 2.2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
font-size: 1.4rem;
|
||||||
@include font-size(1.4rem);
|
|
||||||
|
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
@include font-size(2.4rem);
|
font-size: 2.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
|
@ -17,10 +15,9 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 1.2rem;
|
border-radius: 1.2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
@include font-size(1.5rem);
|
@include font-size(1.5rem);
|
||||||
|
|
||||||
gap: 0.6rem;
|
gap: 0.6rem;
|
||||||
|
justify-content: center;
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
padding: 1rem 2rem;
|
padding: 1rem 2rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -33,49 +30,71 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder--feed-mode {
|
.placeholder--feed-mode {
|
||||||
aspect-ratio: 1 / 0.8;
|
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
min-height: 40rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
&::after {
|
@include media-breakpoint-up(lg) {
|
||||||
bottom: 0;
|
aspect-ratio: 1 / 0.8;
|
||||||
content: '';
|
|
||||||
height: 20%;
|
|
||||||
left: 0;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
.placeholder--feed & {
|
|
||||||
background: linear-gradient(to top, #171032, rgb(23 16 50 / 0%));
|
|
||||||
}
|
|
||||||
|
|
||||||
.placeholder--feedCollaborations & {
|
|
||||||
background: linear-gradient(to top, #070709, rgb(7 7 9 / 0%));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholderCover {
|
.placeholderCover {
|
||||||
flex: 0 100%;
|
flex: 1 100%;
|
||||||
width: 100%;
|
position: relative;
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
bottom: 0;
|
||||||
|
content: '';
|
||||||
|
height: 20%;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.placeholder--feedMy .placeholderCover:after {
|
||||||
|
background: linear-gradient(to top, #171032, rgba(23, 16, 50, 0));
|
||||||
|
}
|
||||||
|
|
||||||
|
&.placeholder--feedCollaborations .placeholderCover:after {
|
||||||
|
background: linear-gradient(to top, #070709, rgba(7, 7, 9, 0));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder--profile-mode {
|
.placeholder--profile-mode {
|
||||||
min-height: 28rem;
|
min-height: 40rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-down(lg) {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
max-height: 30rem;
|
||||||
|
min-height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.placeholderCover {
|
.placeholderCover {
|
||||||
flex: 0 45rem;
|
flex: 1;
|
||||||
min-width: 45rem;
|
|
||||||
order: 2;
|
|
||||||
padding: 1.6rem;
|
padding: 1.6rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
order: 2;
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: auto;
|
aspect-ratio: 16/10;
|
||||||
|
min-width: 40rem;
|
||||||
|
object-fit: contain;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
object-position: right;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,11 +102,19 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
font-size: 1.4rem;
|
||||||
@include font-size(2rem);
|
|
||||||
|
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
padding: 3rem;
|
min-width: 60%;
|
||||||
|
padding: 0 2rem 2rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(md) {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
padding: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
font-size: 2rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
|
@ -96,11 +123,18 @@
|
||||||
|
|
||||||
.button {
|
.button {
|
||||||
background: var(--background-color-invert);
|
background: var(--background-color-invert);
|
||||||
color: var(--default-color-invert);
|
|
||||||
bottom: 2rem;
|
bottom: 2rem;
|
||||||
position: absolute;
|
color: var(--default-color-invert);
|
||||||
|
font-size: 1.6rem;
|
||||||
|
left: 2rem;
|
||||||
right: 2rem;
|
right: 2rem;
|
||||||
width: auto;
|
width: 100%;
|
||||||
|
|
||||||
|
@include media-breakpoint-up(lg) {
|
||||||
|
left: auto;
|
||||||
|
position: absolute;
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
filter: invert(1);
|
filter: invert(1);
|
||||||
|
@ -121,9 +155,15 @@
|
||||||
|
|
||||||
.placeholderContent {
|
.placeholderContent {
|
||||||
padding: 1.6rem;
|
padding: 1.6rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-down(lg) {
|
||||||
|
br {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder--feed,
|
.placeholder--feedMy,
|
||||||
.placeholder--feedCollaborations {
|
.placeholder--feedCollaborations {
|
||||||
color: var(--default-color-invert);
|
color: var(--default-color-invert);
|
||||||
|
|
||||||
|
@ -134,7 +174,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.placeholder--feed {
|
.placeholder--feedMy {
|
||||||
background: #171032;
|
background: #171032;
|
||||||
|
|
||||||
.placeholderCover {
|
.placeholderCover {
|
||||||
|
@ -193,11 +233,14 @@
|
||||||
|
|
||||||
.bottomLinks {
|
.bottomLinks {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
@include font-size(1.6rem);
|
@include font-size(1.6rem);
|
||||||
|
|
||||||
gap: 4rem;
|
gap: 4rem;
|
||||||
|
|
||||||
|
@include media-breakpoint-down(sm) {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 1.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
border: none !important;
|
border: none !important;
|
||||||
padding-left: 2.6rem;
|
padding-left: 2.6rem;
|
||||||
|
|
|
@ -16,7 +16,7 @@ export const Placeholder = (props: PlaceholderProps) => {
|
||||||
const { author } = useSession()
|
const { author } = useSession()
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
feed: {
|
feedMy: {
|
||||||
image: 'placeholder-feed.webp',
|
image: 'placeholder-feed.webp',
|
||||||
header: t('Feed settings'),
|
header: t('Feed settings'),
|
||||||
text: t('Placeholder feed'),
|
text: t('Placeholder feed'),
|
||||||
|
|
|
@ -251,9 +251,11 @@ export const AuthorView = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</Match>
|
</Match>
|
||||||
<Match when={getPage().route === 'authorComments'}>
|
<Match when={getPage().route === 'authorComments'}>
|
||||||
<div class="wide-container">
|
<Show when={me()?.slug === props.authorSlug && !me().stat?.comments}>
|
||||||
<Placeholder type={getPage().route} mode="profile" />
|
<div class="wide-container">
|
||||||
</div>
|
<Placeholder type={getPage().route} mode="profile" />
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
|
|
||||||
<div class="wide-container">
|
<div class="wide-container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -275,7 +277,7 @@ export const AuthorView = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</Match>
|
</Match>
|
||||||
<Match when={getPage().route === 'author'}>
|
<Match when={getPage().route === 'author'}>
|
||||||
<Show when={me()?.slug === props.authorSlug && !sortedArticles().length}>
|
<Show when={me()?.slug === props.authorSlug && !me().stat?.shouts}>
|
||||||
<div class="wide-container">
|
<div class="wide-container">
|
||||||
<Placeholder type={getPage().route} mode="profile" />
|
<Placeholder type={getPage().route} mode="profile" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -239,10 +239,11 @@ export const FeedView = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12 offset-xl-1">
|
<div class="col-md-12 offset-xl-1">
|
||||||
<Show
|
<Show when={!author() && page().route !== 'feed'}>
|
||||||
when={author() || !sortedArticles().length}
|
<Placeholder type={page().route} mode="feed" />
|
||||||
fallback={<Placeholder type={page().route} mode="feed" />}
|
</Show>
|
||||||
>
|
|
||||||
|
<Show when={(author() || page().route === 'feed') && sortedArticles().length}>
|
||||||
<div class={styles.filtersContainer}>
|
<div class={styles.filtersContainer}>
|
||||||
<ul class={clsx('view-switcher', styles.feedFilter)}>
|
<ul class={clsx('view-switcher', styles.feedFilter)}>
|
||||||
<li
|
<li
|
||||||
|
|
Loading…
Reference in New Issue
Block a user