diff --git a/public/css/main.css b/public/css/main.css
index 1b9e4d5..f0e9e9b 100644
--- a/public/css/main.css
+++ b/public/css/main.css
@@ -491,4 +491,68 @@ button span {
border-radius: 3px;
margin: 5px 5px 0 0;
display: inline-block;
-}
\ No newline at end of file
+}
+
+
+.resultListItem {
+ padding: 7px;
+ display: flex;
+ align-items: center;
+ flex-shrink: 0;
+ border-bottom: 1px solid var(--lightGrey);
+}
+
+.resultListItem:hover {
+ background-color: #f2f2f2;
+}
+
+.resultsDetailsContainer {
+ display: flex;
+ flex-direction: column;
+ flex: 1;
+}
+
+.resultsDetailsContainer .heading {
+ font-weight: 500;
+}
+
+.resultsDetailsContainer .subText {
+ color: var(--greyText);
+ font-size: 14px;
+}
+
+.resultListItem img {
+ height: 100%;
+ width: 100%;
+ border-radius: 50%;
+}
+
+.resultsImageContainer {
+ height: 40px;
+ width: 40px;
+ position: relative;
+ margin-right: 10px;
+ display: flex;
+ align-items: center;
+ padding: 5px;
+}
+
+.groupChatImage img {
+ height: 65%;
+ width: 65%;
+ position: absolute;
+ bottom: 0;
+ margin: 0;
+ border: 3px solid #fff;
+}
+
+.groupChatImage img:first-of-type {
+ top: 0;
+ right: 0;
+}
+
+.ellipsis {
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
diff --git a/public/js/inboxPage.js b/public/js/inboxPage.js
index e69de29..e02f18c 100644
--- a/public/js/inboxPage.js
+++ b/public/js/inboxPage.js
@@ -0,0 +1,74 @@
+$(document).ready(() => {
+ $.get("/api/chats", (data, status, xhr) => {
+ if (xhr.status == 400) {
+ alert("Не выходит получить список чатов. Попробуйте позже.")
+ } else {
+ outputChatList(data, $(".resultsContainer"))
+ }
+ })
+})
+
+function outputChatList(chatList, container) {
+ chatList.forEach(chat => {
+ const html = createChatHtml(chat)
+ container.append(html)
+ })
+
+ if (chatList.length == 0) {
+ container.append("Вы не участвуете ни в одном чате")
+ }
+}
+
+function createChatHtml(chatData) {
+ const chatName = getChatName(chatData);
+ const image = getChatImageElements(chatData);
+ const latestMessage = "Это последнее сообщение из чата";
+
+ return `
+ ${image}
+