1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

profile pic on the left

This commit is contained in:
Fedor Katurov 2020-04-08 21:40:53 +07:00
parent 671f640a58
commit 911beea4ad
4 changed files with 10 additions and 9 deletions

View file

@ -32,15 +32,16 @@ const ProfilePageUnconnected: FC<Props> = ({
return (
<div className={styles.wrap}>
<div className={styles.left}>
<ProfilePageLeft profile={profile} username={username} />
</div>
<div className={styles.right}>
<Switch>
<Route path="/profile/:username" render={() => <div>DEFAULT</div>} />
<Route path="/profile/:username/tab" render={() => <div>TAB</div>} />
</Switch>
</div>
<div className={styles.left}>
<ProfilePageLeft profile={profile} username={username} />
</div>
</div>
);
};

View file

@ -11,10 +11,10 @@
.left {
flex: 1;
background: darken($content_bg, 2%);
border-radius: $radius 0 0 $radius;
border-radius: 0 $radius $radius 0;
box-sizing: border-box;
}
.right {
flex: 3;
flex: 4;
}

View file

@ -52,7 +52,7 @@ const ProfilePageLeft: FC<IProps> = ({ username, profile }) => {
</div>
</div>
{profile && profile.user && profile.user.description && (
{profile && profile.user && profile.user.description && false && (
<div className={styles.description}>{profile.user.description}</div>
)}
</div>

View file

@ -7,8 +7,8 @@
.avatar {
width: 100%;
padding-bottom: 50%;
border-radius: $radius 0 0 0;
padding-bottom: 75%;
border-radius: 0 $radius 0 0;
background: 50% 50% no-repeat;
background-size: cover;
}
@ -25,7 +25,7 @@
// background: $content_bg;
background: darken($content_bg, 2%);
width: 100%;
border-radius: $radius;
border-radius: 0 $radius $radius 0;
}
.name {