Async-Redis
view release on metacpan or search on metacpan
examples/pagi-chat/public/css/style.css view on Meta::CPAN
.login-container {
background: var(--bg-primary);
padding: 2.5rem;
border-radius: 12px;
box-shadow: var(--shadow-lg);
width: 100%;
max-width: 400px;
text-align: center;
}
.login-header h1 {
font-size: 2rem;
margin-bottom: 0.25rem;
color: var(--accent-color);
}
.login-header .subtitle {
color: var(--text-secondary);
margin-bottom: 2rem;
}
.form-group {
margin-bottom: 1.5rem;
text-align: left;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--text-secondary);
}
input[type="text"] {
width: 100%;
padding: 0.75rem 1rem;
border: 2px solid var(--border-color);
border-radius: 8px;
font-size: 1rem;
background: var(--bg-primary);
color: var(--text-primary);
transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus {
outline: none;
border-color: var(--accent-color);
box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.15);
}
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
border: none;
border-radius: 8px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
}
.btn-primary {
background: var(--accent-color);
color: white;
}
.btn-primary:hover {
background: var(--accent-hover);
}
.btn-secondary {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.btn-secondary:hover {
background: var(--border-color);
}
.btn-icon {
width: 32px;
height: 32px;
padding: 0;
border: none;
border-radius: 6px;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
font-size: 1.2rem;
transition: all 0.2s;
}
.btn-icon:hover {
background: var(--bg-tertiary);
color: var(--text-primary);
}
.pagi-info {
margin-top: 2rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border-color);
color: var(--text-muted);
}
.pagi-info .small {
font-size: 0.85rem;
}
/* Chat Layout */
.chat-layout {
display: flex;
height: 100%;
}
/* Sidebar */
.sidebar {
width: 260px;
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
overflow: hidden;
}
.sidebar-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem;
border-bottom: 1px solid var(--border-color);
}
.sidebar-header h2 {
font-size: 1.25rem;
color: var(--accent-color);
}
/* Connection Status */
.connection-status {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
background: var(--bg-tertiary);
font-size: 0.85rem;
}
.status-dot {
examples/pagi-chat/public/css/style.css view on Meta::CPAN
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
font-size: 1rem;
}
.user-name {
font-weight: 500;
}
/* Sidebar Sections */
.sidebar-section {
padding: 1rem;
border-bottom: 1px solid var(--border-color);
}
.sidebar-section:last-child {
border-bottom: none;
margin-top: auto;
}
.section-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
}
.section-header h3 {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--text-muted);
}
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 20px;
height: 20px;
padding: 0 6px;
border-radius: 10px;
background: var(--bg-tertiary);
color: var(--text-secondary);
font-size: 0.75rem;
font-weight: 500;
}
/* Navigation Lists */
.nav-list {
list-style: none;
max-height: 200px;
overflow-y: auto;
}
.nav-list li {
padding: 0.5rem 0.75rem;
border-radius: 6px;
cursor: pointer;
transition: background 0.2s;
display: flex;
align-items: center;
gap: 0.5rem;
}
.nav-list li:hover {
background: var(--bg-tertiary);
}
.nav-list li.active {
background: var(--accent-color);
color: white;
}
.nav-list li .room-users {
margin-left: auto;
font-size: 0.75rem;
color: var(--text-muted);
}
.nav-list li.active .room-users {
color: rgba(255,255,255,0.7);
}
.nav-list li .typing-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--accent-color);
animation: pulse 1s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
/* Stats */
.stats-section {
background: var(--bg-tertiary);
border-radius: 8px;
margin: 0.5rem;
padding: 1rem !important;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
text-align: center;
}
.stat-value {
display: block;
font-size: 1.25rem;
font-weight: 600;
color: var(--accent-color);
}
( run in 0.510 second using v1.01-cache-2.11-cpan-39bf76dae61 )