tech-envision
Add CORS and modernize frontend
6ebba8f
raw
history blame
3.33 kB
.chat-container {
width: 420px;
max-width: 90vw;
height: 600px;
display: flex;
flex-direction: column;
background: var(--glass-bg);
border: 1px solid var(--glass-border);
backdrop-filter: blur(var(--blur)) saturate(180%);
-webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
border-radius: var(--radius);
padding: 1rem;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.chat-container::before {
content: '';
position: absolute;
inset: 0;
background: var(--glare);
mix-blend-mode: overlay;
pointer-events: none;
}
.message-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.5rem;
padding-right: 4px;
scroll-behavior: smooth;
}
.session-list {
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
margin-bottom: 0.5rem;
z-index: 1;
}
.session-item {
padding: 0.25rem 0.5rem;
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: var(--radius);
backdrop-filter: blur(var(--blur));
-webkit-backdrop-filter: blur(var(--blur));
font-size: 0.75rem;
transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.session-item.active {
background: rgba(255, 255, 255, 0.4);
font-weight: bold;
}
.message {
width: fit-content;
max-width: 80%;
padding: 0.5rem 1rem;
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: var(--radius);
backdrop-filter: blur(var(--blur));
-webkit-backdrop-filter: blur(var(--blur));
animation: jelly 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.message.user {
align-self: flex-end;
}
.input-bar {
display: flex;
gap: 0.5rem;
margin-top: 0.5rem;
}
.input-bar input {
flex: 1;
padding: 0.5rem 1rem;
border: 1px solid var(--glass-border);
background: var(--glass-bg);
border-radius: var(--radius);
backdrop-filter: blur(var(--blur));
-webkit-backdrop-filter: blur(var(--blur));
color: #000;
outline: none;
}
.input-bar button {
padding: 0.5rem 1rem;
border: none;
border-radius: var(--radius);
background: rgba(255, 255, 255, 0.6);
color: #000;
font-weight: bold;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.username-form {
display: flex;
flex-direction: column;
gap: 0.5rem;
flex: 1;
justify-content: center;
align-items: center;
}
.username-form input {
padding: 0.75rem 1rem;
border: 1px solid var(--glass-border);
background: var(--glass-bg);
border-radius: var(--radius);
backdrop-filter: blur(var(--blur));
-webkit-backdrop-filter: blur(var(--blur));
width: 100%;
max-width: 200px;
text-align: center;
outline: none;
}
.username-form button {
padding: 0.5rem 1.5rem;
border: none;
border-radius: var(--radius);
background: rgba(255, 255, 255, 0.7);
font-weight: bold;
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.username-form button:hover {
transform: scale(1.05);
}
.username-form button:active {
transform: scale(0.95);
}
.input-bar button:hover {
transform: scale(1.05);
}
.input-bar button:active {
transform: scale(0.95);
}
@keyframes jelly {
0% {
transform: scale(0.9);
}
40% {
transform: scale(1.05);
}
60% {
transform: scale(0.97);
}
100% {
transform: scale(1);
}
}