Spaces:
Sleeping
Sleeping
File size: 2,397 Bytes
d09f9ae | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | body {
background-color: #f4f7f6;
margin: 0;
}
.App {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
height: 100vh;
padding: 20px;
box-sizing: border-box;
}
h1 {
color: #333;
}
.chat-window {
width: 100%;
max-width: 600px;
height: 80vh;
border: 1px solid #e0e0e0;
border-radius: 12px;
overflow-y: auto;
padding: 16px;
margin-bottom: 20px;
display: flex;
flex-direction: column;
gap: 12px;
background-color: white;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.message {
padding: 10px 16px;
border-radius: 20px;
max-width: 75%;
word-wrap: break-word;
line-height: 1.5;
}
.user {
background-color: #007bff;
color: white;
align-self: flex-end;
border-bottom-right-radius: 4px;
}
.bot, .error {
background-color: #e9e9eb;
color: #333;
align-self: flex-start;
border-bottom-left-radius: 4px;
}
.error {
background-color: #f8d7da;
color: #721c24;
}
.chat-form {
display: flex;
width: 100%;
max-width: 600px;
}
input[type="text"] {
flex-grow: 1;
padding: 12px;
border: 1px solid #ccc;
border-radius: 8px;
margin-right: 10px;
font-size: 1rem;
}
button {
padding: 12px 24px;
border: none;
border-radius: 8px;
background-color: #007bff;
color: white;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.2s;
}
button:hover {
background-color: #0056b3;
}
button:disabled {
background-color: #cccccc;
cursor: not-allowed;
}
.header {
display: flex;
flex-direction: row; /* Stack logo above text */
align-items: center; /* Center horizontally */
justify-content: center;
/*background-color: #ffffff; /* White background */
padding: 5px 0; /* Vertical padding */
border-bottom: 1px solid #e0e0e0; /* Light gray divider */
}
.logo {
width: 40px; /* Adjust size of logo */
height: 40px;
margin-right: 7px;
/*margin-bottom: 8px; /* Space between logo and text */
}
.header h1 {
font-size: 24px;
font-weight: 700; /* Bold */
color: #333333; /* Dark gray text */
text-transform: uppercase; /* Make NOVA uppercase */
margin: 0;
}
|