-
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.
- Loading branch information
Showing
9 changed files
with
268 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
@import "/src/scss/utils"; | ||
|
||
.avatar { | ||
border-radius: 50%; | ||
|
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,236 @@ | ||
export const chat_list_data = [ | ||
{ | ||
id: 1, | ||
avatar: `https://fikiwiki.com/uploads/posts/2022-02/1644885500_22-fikiwiki-com-p-kartinki-dlya-geimerov-na-avu-26.jpg`, | ||
type: "dialog", | ||
title: "Ivan", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Ivan", | ||
second_name: "Ivanov", | ||
avatar: `https://fikiwiki.com/uploads/posts/2022-02/1644885500_22-fikiwiki-com-p-kartinki-dlya-geimerov-na-avu-26.jpg`, | ||
}, | ||
time: "12.33", | ||
text: "this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 22, | ||
title: "Neighbors", | ||
type: "chat", | ||
unread_msg_count: 6, | ||
last_message: { | ||
user: { | ||
first_name: "Shurum", | ||
second_name: "Burum", | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 333, | ||
type: "dialog", | ||
title: "Shurum", | ||
unread_msg_count: 1, | ||
last_message: { | ||
user: { | ||
first_name: "Shurum", | ||
second_name: "Burum", | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 7, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
type: "dialog", | ||
title: "Alena", | ||
unread_msg_count: 8, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Alena", | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
{ | ||
id: 4444, | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
type: "dialog", | ||
title: "Nina", | ||
unread_msg_count: 4, | ||
last_message: { | ||
user: { | ||
first_name: "Nina", | ||
second_name: "Anin", | ||
avatar: `https://klike.net/uploads/posts/2023-01/1673594987_3-24.jpg`, | ||
}, | ||
time: "12.34", | ||
text: "this is message from user this is message from user this is message from user" | ||
} | ||
}, | ||
] |
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 conversation = | ||
{ | ||
id: 1, | ||
user: { | ||
first_name: "Ivan", | ||
second_name: "Ivanov", | ||
avatar: `https://fikiwiki.com/uploads/posts/2022-02/1644885500_22-fikiwiki-com-p-kartinki-dlya-geimerov-na-avu-26.jpg`, | ||
}, | ||
} | ||
|
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,11 @@ | ||
export const Error404 = { | ||
error: 404, | ||
errorText: "Oops! This Page Could Not Be Found", | ||
message: "sorry but the page you are looking for does not exist, have been removed. name changed or is temporarily unavailable", | ||
} | ||
|
||
export const Error500 = { | ||
error: 500, | ||
errorText: "Oops! This Page Could Not Be Found", | ||
message: "sorry but the page you are looking for does not exist, have been removed. name changed or is temporarily unavailable", | ||
} |
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,4 @@ | ||
export { chat_list_data as ChatListData } from './chat_list'; | ||
export { conversation as ConversationData } from './conversation'; | ||
export { Error404 as Errors404Data } from './errors'; | ||
export { Error500 as Errors500Data } from './errors'; |
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,8 +1,8 @@ | ||
<main class="messenger"> | ||
<div class="messenger"> | ||
{{> ChatList list=chat_list}} | ||
{{#if true}} | ||
{{> Conversation conversation=conversation}} | ||
{{^}} | ||
<span class="messenger__placeholder">Choose a chat to start messaging.</span> | ||
{{/if}} | ||
</main> | ||
</div> |
This file was deleted.
Oops, something went wrong.