-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The user profile page with editing was added (without pop-up forms)
- Loading branch information
Showing
14 changed files
with
115 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as Pair } from './pair.hbs?raw'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<li class="pair"> | ||
<div class="pair__key">{{key}}</div> | ||
<div class="pair__value"> | ||
<a href="">{{value}} <span class="pair__value-icon">✍</span></a> | ||
</div> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@import "/src/scss/variables"; | ||
|
||
.pair { | ||
display: flex; | ||
width: 100%; | ||
justify-content: space-between; | ||
border-bottom: 1px $border-color solid; | ||
padding-top: 15px; | ||
|
||
&__key { | ||
display: flex; | ||
align-items: flex-end; | ||
} | ||
|
||
&__value { | ||
display: flex; | ||
align-items: flex-end; | ||
|
||
a, &:hover, &:visited { | ||
text-decoration: none; | ||
color: $text-secondary-color; | ||
} | ||
|
||
&-icon { | ||
font-size: 1.5rem; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export const userData = { | ||
avatar: "https://fikiwiki.com/uploads/posts/2022-02/1644885500_22-fikiwiki-com-p-kartinki-dlya-geimerov-na-avu-26.jpg", | ||
first_name: "Ivan", | ||
second_name: "Ivanov", | ||
display_name : "Ivanchik", | ||
login: "ivan1645", | ||
email: "[email protected]", | ||
phone: "+78005553535", | ||
password: "0123456789", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export {SignInPage} from './signin' | ||
export {SignUpPage} from './signup' | ||
export {Messenger} from './messenger' | ||
export {MessengerPage} from './messenger' | ||
export {ErrorPage} from './error' | ||
export {ProfilePage} from './profile' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { default as Messenger } from './messenger.hbs?raw'; | ||
export { default as MessengerPage } from './messenger.hbs?raw'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as ProfilePage } from './profile.hbs?raw'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="messenger"> | ||
<div class="messenger__widget"> | ||
{{> Avatar user=user }} | ||
{{#with user}} | ||
<h1>{{display_name}}</h1> | ||
<div class="messenger__space"></div> | ||
<ul> | ||
<!--to edit this field we should click on it to invoke pop-up form--> | ||
{{> Pair key="Display name:" value=display_name}} | ||
{{> Pair key="First name:" value=first_name}} | ||
{{> Pair key="Second name:" value=second_name}} | ||
{{> Pair key="Login:" value=login}} | ||
{{> Pair key="Phone:" value=phone}} | ||
</ul> | ||
{{> Button label="Changr password" type="link"}} | ||
<div class="messenger__space"></div> | ||
{{/with}} | ||
{{> Button label="Log out" type="primary"}} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.messenger { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
background-color: white; | ||
|
||
&__widget { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
padding: 50px 30px 30px; | ||
width: 500px; | ||
box-shadow: 0 0 10px rgba(0,0,0,0.5); | ||
border-radius: 12px; | ||
|
||
.avatar { | ||
display: flex; | ||
width: 120px; | ||
height: 120px; | ||
} | ||
|
||
h1 { | ||
text-align: center; | ||
} | ||
|
||
ul { | ||
padding: 0; | ||
width: 100%; | ||
} | ||
} | ||
|
||
&__space { | ||
height: 15px; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters