checkpoint chat
This commit is contained in:
parent
9750ba524a
commit
dc80804241
@ -4,7 +4,7 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100vh;
|
/* height: 100vh;*/
|
||||||
margin: 0;
|
margin: 0;
|
||||||
background-color: #e9ecef;
|
background-color: #e9ecef;
|
||||||
}
|
}
|
||||||
@ -89,6 +89,7 @@ button:hover {
|
|||||||
|
|
||||||
/* Header Layout */
|
/* Header Layout */
|
||||||
.header {
|
.header {
|
||||||
|
z-index: 10;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@ -149,6 +150,7 @@ main {
|
|||||||
|
|
||||||
/* Benutzerliste Styling */
|
/* Benutzerliste Styling */
|
||||||
.user-list {
|
.user-list {
|
||||||
|
margin-top: 6rem;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-color: #f8f9fa;
|
background-color: #f8f9fa;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
@ -169,10 +171,9 @@ main {
|
|||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Chat Interface Styles */
|
/* Chat Interface Styles
|
||||||
.chat-container {
|
.chat-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 600px;
|
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -181,7 +182,7 @@ main {
|
|||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}*/
|
||||||
|
|
||||||
.chat-box {
|
.chat-box {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@ -250,8 +251,11 @@ main {
|
|||||||
|
|
||||||
/* Haupt-Container für Layout mit Seitenleiste */
|
/* Haupt-Container für Layout mit Seitenleiste */
|
||||||
.main-container {
|
.main-container {
|
||||||
|
padding-top: 13rem;
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100vh;
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Linke Seitenleiste */
|
/* Linke Seitenleiste */
|
||||||
@ -288,6 +292,7 @@ main {
|
|||||||
|
|
||||||
/* Chatbereich Styles (wie oben beschrieben) */
|
/* Chatbereich Styles (wie oben beschrieben) */
|
||||||
.chat-container {
|
.chat-container {
|
||||||
|
width: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@ -366,3 +371,4 @@ main {
|
|||||||
background-color: #27ae60;
|
background-color: #27ae60;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,8 +24,28 @@
|
|||||||
</header>
|
</header>
|
||||||
|
|
||||||
<!-- Freier Platz für zukünftige Features -->
|
<!-- Freier Platz für zukünftige Features -->
|
||||||
<main></main>
|
<div class="main-container">
|
||||||
|
<!-- Linke Seitenleiste für Chat-Sessions -->
|
||||||
|
<div class="sidebar" id="chatSidebar">
|
||||||
|
<h3>Gespeicherte Chats</h3>
|
||||||
|
<button id="newChatButton">Neuer Chat</button>
|
||||||
|
<div id="chatList"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Chatbereich -->
|
||||||
|
|
||||||
|
<div class="chat-container">
|
||||||
|
<div class="chat-box" id="chatBox">
|
||||||
|
<!-- Nachrichten werden hier angezeigt -->
|
||||||
|
</div>
|
||||||
|
<div class="chat-input-container">
|
||||||
|
<textarea id="chatInput" class="chat-input" placeholder="Schreibe eine Nachricht..."></textarea>
|
||||||
|
<button id="sendButton" class="chat-send-button">Senden</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<script src="js/chat.js"></script>
|
||||||
<script src="js/main.js"></script>
|
<script src="js/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user