**Motivations :** - document and enforce the secure websocket endpoint for the relay - streamline wallet setup flow without manual blockers **Modifications :** - update docs and service bootstrap logic to rely on VITE_BOOTSTRAPURL with explicit /ws suffix - clean wallet setup and block sync pages to run automatically without continue buttons - refresh shared styles and services to match the new initialization path and logging adjustments **Page affectées :** - docs/INTEGRATION.md - src/services/service.ts - src/pages/wallet-setup/wallet-setup.*
522 lines
9.8 KiB
CSS
Executable File
522 lines
9.8 KiB
CSS
Executable File
/* Chat page base */
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: #f3f5f9;
|
|
color: var(--color-text-primary);
|
|
font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Navigation */
|
|
.nav-wrapper {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 70px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 238, 244, 0.9));
|
|
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
|
|
z-index: 25;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.brand-logo {
|
|
font-size: 1.4rem;
|
|
font-weight: 700;
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.nav-right-icons {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 18px;
|
|
}
|
|
|
|
.notification-container {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.notification-bell,
|
|
.burger-menu {
|
|
width: 22px;
|
|
height: 22px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--color-text-secondary);
|
|
cursor: pointer;
|
|
transition: color var(--transition-base);
|
|
}
|
|
|
|
.notification-bell:hover,
|
|
.burger-menu:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.notification-badge {
|
|
position: absolute;
|
|
top: -6px;
|
|
right: -6px;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
padding: 0 6px;
|
|
border-radius: 999px;
|
|
background: var(--color-danger);
|
|
color: #fff;
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
display: none;
|
|
}
|
|
|
|
.notification-badge.is-visible {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.notification-board {
|
|
position: absolute;
|
|
top: calc(100% + 12px);
|
|
right: 0;
|
|
width: min(280px, 90vw);
|
|
background: var(--color-surface);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
border: 1px solid rgba(148, 163, 184, 0.22);
|
|
padding: 10px 0;
|
|
display: none;
|
|
flex-direction: column;
|
|
z-index: 40;
|
|
}
|
|
|
|
.notification-board.is-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.notification-board .notification-item,
|
|
.notification-board .notification-element {
|
|
padding: 10px 16px;
|
|
color: var(--color-text-primary);
|
|
transition: background var(--transition-base);
|
|
}
|
|
|
|
.notification-board .notification-item:hover,
|
|
.notification-board .notification-element:hover {
|
|
background: rgba(58, 80, 107, 0.1);
|
|
}
|
|
|
|
/* Layout */
|
|
.container {
|
|
margin-top: 90px;
|
|
display: grid;
|
|
grid-template-columns: clamp(220px, 22%, 280px) minmax(0, 1fr);
|
|
gap: 20px;
|
|
padding: 24px 32px 48px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.group-list {
|
|
background: linear-gradient(180deg, #1f2c3d, #1b2735);
|
|
color: #fff;
|
|
border-radius: var(--radius-lg);
|
|
padding: 22px 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
box-shadow: var(--shadow-sm);
|
|
height: calc(100vh - 136px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.group-list ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.group-list li {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-radius: var(--radius-md);
|
|
padding: 14px 16px;
|
|
transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.group-list li:hover,
|
|
.group-list li.active {
|
|
background: rgba(255, 255, 255, 0.18);
|
|
transform: translateX(4px);
|
|
box-shadow: 0 14px 24px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.member-container {
|
|
position: relative;
|
|
}
|
|
|
|
.member-container button {
|
|
position: absolute;
|
|
top: -16px;
|
|
right: -16px;
|
|
padding: 6px 12px;
|
|
border-radius: 999px;
|
|
border: none;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
background: var(--color-primary);
|
|
color: #fff;
|
|
cursor: pointer;
|
|
transition: background var(--transition-base);
|
|
}
|
|
|
|
.member-container button:hover {
|
|
background: var(--color-accent);
|
|
}
|
|
|
|
/* Chat area */
|
|
.chat-area,
|
|
.signature-area {
|
|
background: var(--color-surface);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-md);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
padding: 20px;
|
|
min-height: calc(100vh - 136px);
|
|
}
|
|
|
|
.chat-header,
|
|
.signature-header {
|
|
background: var(--color-primary);
|
|
color: #fff;
|
|
border-radius: var(--radius-md);
|
|
padding: 14px 18px;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
background: rgba(58, 80, 107, 0.04);
|
|
border-radius: var(--radius-md);
|
|
border: 1px solid rgba(148, 163, 184, 0.25);
|
|
}
|
|
|
|
.message-container {
|
|
display: flex;
|
|
}
|
|
|
|
.message {
|
|
max-width: 68%;
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-secondary);
|
|
color: var(--color-text-primary);
|
|
box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
|
|
position: relative;
|
|
display: inline-flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.message.user {
|
|
margin-left: auto;
|
|
background: linear-gradient(135deg, #2196f3, #1363b5);
|
|
color: #fff;
|
|
}
|
|
|
|
.message-time {
|
|
font-size: 0.75rem;
|
|
opacity: 0.7;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.input-area {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(148, 163, 184, 0.18);
|
|
}
|
|
|
|
.input-area input[type='text'] {
|
|
flex: 1;
|
|
border: 1px solid rgba(148, 163, 184, 0.4);
|
|
border-radius: var(--radius-md);
|
|
padding: 10px 12px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.input-area .attachment-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: rgba(58, 80, 107, 0.12);
|
|
color: var(--color-primary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.input-area button {
|
|
padding: 10px 18px;
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
background: linear-gradient(135deg, #2980b9, #1f608d);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base), box-shadow var(--transition-base);
|
|
}
|
|
|
|
.input-area button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 12px 22px rgba(41, 128, 185, 0.35);
|
|
}
|
|
|
|
.tabs {
|
|
display: inline-flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.tabs button {
|
|
padding: 8px 16px;
|
|
border-radius: var(--radius-md);
|
|
border: none;
|
|
background: var(--color-primary);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base), box-shadow var(--transition-base);
|
|
}
|
|
|
|
.tabs button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 10px 18px rgba(58, 80, 107, 0.25);
|
|
}
|
|
|
|
.signature-area {
|
|
gap: 18px;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.signature-area.hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.signature-content {
|
|
background: rgba(58, 80, 107, 0.08);
|
|
color: var(--color-text-primary);
|
|
border-radius: var(--radius-md);
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
}
|
|
|
|
.signature-description,
|
|
.signature-documents {
|
|
display: flex;
|
|
gap: 12px;
|
|
overflow-x: auto;
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.signature-description li {
|
|
list-style: none;
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--color-primary);
|
|
color: #fff;
|
|
min-width: 140px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base), background var(--transition-base);
|
|
}
|
|
|
|
.signature-description li:hover {
|
|
background: var(--color-accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.new-request-btn,
|
|
#request-document-button,
|
|
.sign-button {
|
|
padding: 10px 18px;
|
|
border-radius: var(--radius-md);
|
|
border: none;
|
|
background: linear-gradient(135deg, var(--color-success), #2e7d32);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base), box-shadow var(--transition-base);
|
|
}
|
|
|
|
.new-request-btn:hover,
|
|
#request-document-button:hover,
|
|
.sign-button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 12px 24px rgba(76, 175, 80, 0.32);
|
|
}
|
|
|
|
/* Modals */
|
|
.modal,
|
|
.notifications-modal,
|
|
.qr-modal,
|
|
.request-modal,
|
|
.modal-document,
|
|
.pairing-modal {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.55);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
backdrop-filter: blur(10px);
|
|
z-index: 60;
|
|
padding: 24px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.modal.is-visible,
|
|
.notifications-modal.is-visible,
|
|
.qr-modal.is-visible,
|
|
.request-modal.is-visible,
|
|
.modal-document.is-visible,
|
|
.pairing-modal.is-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.modal-content,
|
|
.notifications-content,
|
|
.qr-modal-content,
|
|
.request-modal .modal-content,
|
|
.modal-document .modal-content,
|
|
.pairing-modal-content {
|
|
background: var(--color-surface);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
width: min(480px, 100%);
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-lg);
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.close-modal,
|
|
.close-button,
|
|
.close-qr-modal,
|
|
.close-signature,
|
|
.close-contract-popup {
|
|
position: absolute;
|
|
top: 14px;
|
|
right: 14px;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: 1.4rem;
|
|
color: var(--color-text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.close-modal:hover,
|
|
.close-button:hover,
|
|
.close-qr-modal:hover,
|
|
.close-signature:hover,
|
|
.close-contract-popup:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.modal-footer,
|
|
.button-group,
|
|
.header-buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1024px) {
|
|
.container {
|
|
grid-template-columns: 1fr;
|
|
padding: 18px 18px 36px;
|
|
}
|
|
|
|
.group-list {
|
|
height: auto;
|
|
max-height: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.nav-wrapper {
|
|
height: auto;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 14px 18px;
|
|
}
|
|
|
|
.nav-right-icons {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.container {
|
|
padding: 16px 14px 32px;
|
|
}
|
|
|
|
.chat-area,
|
|
.signature-area {
|
|
min-height: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.message {
|
|
max-width: 85%;
|
|
}
|
|
|
|
.input-area {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.input-area button {
|
|
width: 100%;
|
|
}
|
|
|
|
.tabs {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tabs button {
|
|
width: 100%;
|
|
}
|
|
} |