-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
when a chat is selected the messages are displayed
- Loading branch information
Showing
9 changed files
with
127 additions
and
22 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
from django.urls import path | ||
from .views import GetChats | ||
from .views import GetChats, GetMessages | ||
|
||
urlpatterns = [ | ||
path('getChats/', GetChats.as_view(), name='get-chats'), | ||
path('getMessages/', GetMessages.as_view(), name='get-messages'), | ||
] |
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,34 @@ | ||
.chats-page h1 { | ||
font-size: 400%; | ||
text-align: center; /* Centers your heading */ | ||
} | ||
|
||
.chats-box { | ||
display: flex; | ||
flex-direction: column; /* Stack chats vertically */ | ||
align-items: center; /* Center-align the chat containers */ | ||
justify-content: flex-start; /* Align items to the start of the flex container */ | ||
margin-top: 20px; | ||
width: 60vw; /* Adjusted for a wider view */ | ||
max-width: 600px; /* Maintains max-width for larger screens */ | ||
margin: 20px auto; /* Centers the box with automatic horizontal margins */ | ||
padding: 20px; | ||
background-color: #f5f5f5; /* Light grey background */ | ||
border-radius: 10px; /* Rounded corners for the box */ | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */ | ||
} | ||
|
||
.chat-container { /* Updated to match JSX className */ | ||
background-color: white; /* White background for each chat */ | ||
padding: 15px; | ||
margin-bottom: 10px; /* Space between each chat */ | ||
width: 100%; /* Ensures it fills the chats-box */ | ||
border-radius: 5px; /* Rounded corners for each chat */ | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Lighter shadow for each chat */ | ||
} | ||
|
||
.chat-container p { | ||
margin: 5px 0; /* Standardizes margin for paragraphs within a chat */ | ||
color: #333; /* Dark grey color for text for better readability */ | ||
} | ||
|
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