Skip to content

Commit

Permalink
feature(uesr-profile): build user profile page
Browse files Browse the repository at this point in the history
- write tests
- add components for view

[Starts #162380480]
  • Loading branch information
tersoo-atsen committed Dec 28, 2018
1 parent a0e41e2 commit 0d8a1e7
Show file tree
Hide file tree
Showing 18 changed files with 832 additions and 0 deletions.
45 changes: 45 additions & 0 deletions mockdata/userProfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import path from 'path';

export default {
status: 'success',
userProfile: {
id: 1,
fullName: 'Johnny Does',
email: 'jonny@example.com',
avatarUrl: path.join(__dirname, 'public/images/avatar.jpg'),
bio: 'Unwilling sportsmen he in questions september therefore described so. Attacks may set few believe moments was. Reasonably how possession shy way introduced age inquietude. Missed he engage no exeter of. Still tried means we aware order among on. Eldest father can design tastes did joy settle.',
confirmEmail: true,
twitterUrl: null,
facebookUrl: null,
location: 'Lagos',
followers: 4,
following: 7,
createdAt: '2018-2-29T07:38:16.490Z',
roleId: 3,
articles: [
{
id: 1,
title: 'Change To Proprietary Display Driver Ubuntu 18.04',
description: 'I recently upgraded to 18.04 from 16.04. My machine has NVIDIA Graphics ',
body: 'I recently upgraded to 18.04 from 16.04. My machine has NVIDIA Graphics cards Quadro 410 When i tried to change graphics driver using the GUI mode under Software and updates. The default X.Org X server keeps on getting selected and I do not get any error.',
articleImage: '',
rating: 4,

},
{
id: 2,
title: 'Is There Such a Thing as ‘Naturally Creative\'?',
description: 'While we often think of creativity as an event or as a natural skill ',
body: 'While we often think of creativity as an event or as a natural skill that some people have and some don\'t, research actually suggests that both creativity and non-creativity are learned.',
rating: 3
},
{
id: 2,
title: 'My 2017 Annual Review',
description: 'I finished the first draft of the manuscript in November, and we\'re working on edits',
body: 'I finished the first draft of the manuscript in November, and we\'re working on edits now. There are still many improvements to make and, truthfully, a few months of work left, but it feels really good to see literally years of work all coming together.',
rating: 2
}
]
}
};
20 changes: 20 additions & 0 deletions public/assets/Profile.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

.first-div {
background-color: #0b5461;
height: 20vh;
padding: 2em 1em;

h3 {
margin: 0;
}
}

.second-div {
background-color: #5c9be4;
height: 20vh;
padding: 2em 1em;

h3 {
margin: 0;
}
}
Binary file added public/images/avatar1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/avatar2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/card-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/header-bg-img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/medal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/rubbish-bin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions public/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
@import './Welcome';
@import './Spinner';
@import './SearchPage';
@import './profiles';


* {
box-sizing: border-box;
Expand Down
Loading

0 comments on commit 0d8a1e7

Please sign in to comment.