merged-empty-header

This commit is contained in:
Untone 2024-05-31 15:18:14 +03:00
parent e6a4db2eb5
commit b9705ab8ba
5 changed files with 16 additions and 8 deletions

View File

@ -18,6 +18,7 @@
.authorName { .authorName {
@include font-size(4rem); @include font-size(4rem);
font-weight: 700; font-weight: 700;
margin-bottom: 1.2rem; margin-bottom: 1.2rem;
} }

View File

@ -193,12 +193,12 @@ export const AuthorCard = (props: Props) => {
<Show when={props.author.bio}> <Show when={props.author.bio}>
<div class={styles.authorAbout} innerHTML={props.author.bio} /> <div class={styles.authorAbout} innerHTML={props.author.bio} />
</Show> </Show>
<Show when={props.followers?.length > 0 || props.following?.length > 0}> <Show when={props.followers?.length > 0 || props.flatFollows?.length > 0}>
<div class={styles.subscribersContainer}> <div class={styles.subscribersContainer}>
<Subscribers <Subscribers
followers={props.followers} followers={props.followers}
followersAmount={props.author?.stat?.followers} followersAmount={props.author?.stat?.followers}
following={props.following} following={props.flatFollows}
followingAmount={props.author?.stat?.authors} followingAmount={props.author?.stat?.authors}
/> />
</div> </div>

View File

@ -1,7 +1,9 @@
.placeholder { .placeholder {
border-radius: 2.2rem; border-radius: 2.2rem;
display: flex; display: flex;
@include font-size(1.4rem); @include font-size(1.4rem);
font-weight: 500; font-weight: 500;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
@ -15,7 +17,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;
margin-top: 3rem; margin-top: 3rem;
padding: 1rem 2rem; padding: 1rem 2rem;
@ -33,7 +37,7 @@
flex-direction: column; flex-direction: column;
text-align: center; text-align: center;
&:after { &::after {
bottom: 0; bottom: 0;
content: ''; content: '';
height: 20%; height: 20%;
@ -42,11 +46,11 @@
width: 100%; width: 100%;
.placeholder--feed & { .placeholder--feed & {
background: linear-gradient(to top, #171032, rgba(23, 16, 50, 0)); background: linear-gradient(to top, #171032, rgb(23 16 50 / 0%));
} }
.placeholder--feedCollaborations & { .placeholder--feedCollaborations & {
background: linear-gradient(to top, #070709, rgba(7, 7, 9, 0)); background: linear-gradient(to top, #070709, rgb(7 7 9 / 0%));
} }
} }
@ -79,7 +83,9 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
@include font-size(2rem); @include font-size(2rem);
line-height: 1.2; line-height: 1.2;
padding: 3rem; padding: 3rem;
} }
@ -187,7 +193,9 @@
.bottomLinks { .bottomLinks {
display: flex; display: flex;
@include font-size(1.6rem); @include font-size(1.6rem);
gap: 4rem; gap: 4rem;
a { a {

View File

@ -13,6 +13,7 @@
.topicDescription { .topicDescription {
@include font-size(1.8rem); @include font-size(1.8rem);
line-height: 1.4; line-height: 1.4;
margin: 1rem 0 2rem; margin: 1rem 0 2rem;
} }

View File

@ -275,9 +275,7 @@ export const AuthorView = (props: Props) => {
</div> </div>
</Match> </Match>
<Match when={getPage().route === 'author'}> <Match when={getPage().route === 'author'}>
<Show <Show when={me()?.slug === props.authorSlug && !sortedArticles().length}>
when={session()?.user?.app_data?.profile?.slug === props.authorSlug && !sortedArticles().length}
>
<div class="wide-container"> <div class="wide-container">
<Placeholder type={getPage().route} mode="profile" /> <Placeholder type={getPage().route} mode="profile" />
</div> </div>