Skip to content

Commit

Permalink
Merge pull request #94 from msrjr91/ryan
Browse files Browse the repository at this point in the history
data render mvp
  • Loading branch information
msrjr91 committed Mar 23, 2023
2 parents 817ec1b + 2ce2657 commit 18f70af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
11 changes: 8 additions & 3 deletions client/src/pages/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ export default function Profile(){

return user && comments && posts && allUsers ? (
<div className="profile">
<img src={'https://i.pravatar.cc/100'}/>
<img src={profileUser.avatar}/>
<section className="profile-header">
<h2 style={{color: 'white'}}>
{profileUser.username} / {profileUser.name}
</h2>
<button onClick={() => navigate('/update')}>Update Profile</button>
<button className="registerbtn" onClick={() => navigate('/update')}>Update Profile</button>
<figure style={{marginLeft: '70vw'}}>
<figcaption style={{color: 'white'}}>
Currently listening to..
Expand All @@ -167,6 +167,10 @@ export default function Profile(){
}
</div>:null
}
</div>


<div className="profile-body-inner">
{
(posts)?
<div className='profilefeed2' style={{border: '2px solid white'}}>Albums/Songs/Playlists
Expand Down Expand Up @@ -204,8 +208,9 @@ export default function Profile(){
}

</div>
</section>
</section>
</div>

) : <div>Please Log In</div>
}

2 changes: 1 addition & 1 deletion client/src/pages/UpdateProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const UpdateProfile = (props) => {
Update
</button>
</form>
<button onClick={deleteUser}>Delete Profile</button>
<button className="registerbtn" onClick={deleteUser}>Delete Profile</button>
</div>
</div>
)
Expand Down
12 changes: 7 additions & 5 deletions client/src/styles/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -251,27 +251,29 @@ body {

.profile-header {
font-style: italic;
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
font-family: 'Cambria', 'Cochin', 'Georgia', 'Times', 'Times New Roman', 'serif';
color: white;
font-size: 20px;
padding: 0%;
margin: 0%;
}

.profile-body {
width: 100%;
display: flex;
flex-direction: row;
width: 100vw;
border: 1px solid rgb(51, 51, 51);
overflow: hidden;
height: 100%;
height: fit-content;
border-radius: 20px;
box-shadow: 0 0 10px 3px rgba(60, 60, 60, 0.8);
justify-content: space-around;
}

.profile-body-inner {
overflow-y: scroll;
height: 800px;
width: 450px;
height: fit-content;
width: 40vw;
border-radius: 8px;
background: rgba(255, 255, 255, 0.3);
}

0 comments on commit 18f70af

Please sign in to comment.