Files
twenty/packages/twenty-companion/src/index.css
T
Paul Rastoin 845a1934d3 Tt call recording app (#18281)
Co-authored-by: Thomas Trompette <thomas.trompette@sfr.fr>
Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
Co-authored-by: Weiko <corentin@twenty.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@twenty.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2026-03-04 14:11:57 +00:00

1068 lines
18 KiB
CSS

:root {
--primary-bg: #f9f9f9;
--card-bg: #fff;
--light-purple: #f3e9ff;
--light-green: #e8f5e9;
--border-color: #e0e0e0;
--text-primary: #000;
--text-secondary: #666;
--sidebar-width: 320px;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
background-color: var(--primary-bg);
margin: 0;
overflow-x: hidden;
color: var(--text-primary);
min-height: 100vh;
display: flex;
}
.app-container {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
transition: width 0.3s ease, margin-right 0.3s ease;
flex: 1;
}
.app-container.debug-panel-open {
width: 50%;
max-width: 50%;
}
/* Header Styles */
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: var(--card-bg);
border-bottom: 1px solid var(--border-color);
position: sticky;
top: 0;
z-index: 100;
}
#drag-region, #debug-drag-region {
-webkit-app-region: drag;
}
.header-left, .header-right {
display: flex;
align-items: center;
}
.header-left {
margin-left: 60px;
gap: 8px;
}
.app-logo {
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
overflow: hidden;
flex-shrink: 0;
}
.header-center {
flex-grow: 1;
max-width: 400px;
margin: 0 20px;
}
.search-container {
position: relative;
display: flex;
align-items: center;
}
.search-icon {
position: absolute;
left: 10px;
color: var(--text-secondary);
display: flex;
align-items: center;
justify-content: center;
}
.search-input {
width: 100%;
padding: 8px 8px 8px 35px;
border-radius: 5px;
border: 1px solid var(--border-color);
background-color: #f2f2f2;
font-size: 14px;
-webkit-app-region: no-drag; /* Make input not draggable to allow text selection */
}
.btn {
padding: 8px 16px;
border-radius: 5px;
border: none;
cursor: pointer;
font-weight: 500;
-webkit-app-region: no-drag; /* Make button clickable */
display: flex;
align-items: center;
justify-content: center;
}
.back-btn {
background-color: transparent;
color: var(--text-secondary);
padding: 8px;
}
.toggle-sidebar-btn {
background-color: transparent;
color: var(--text-secondary);
padding: 8px;
margin-right: 10px;
display: none;
}
.new-note-btn, .join-meeting-btn {
background-color: var(--card-bg);
border: 1px solid var(--border-color);
margin-right: 10px;
-webkit-app-region: no-drag; /* Make button clickable */
}
.join-meeting-btn {
background-color: #007aff;
color: white;
}
.join-meeting-btn:disabled {
background-color: #ccc;
color: #666;
cursor: not-allowed;
opacity: 0.6;
}
.user-avatar {
width: 32px;
height: 32px;
border-radius: 50%;
overflow: hidden;
background-color: #ddd;
-webkit-app-region: no-drag; /* Make avatar clickable */
}
.avatar-img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Main Content Styles */
.main-content {
padding: 20px;
flex-grow: 1;
width: 100%;
}
.content-container {
max-width: 800px;
margin: 0 auto;
width: 100%;
}
.section-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 15px;
margin-top: 25px;
width: 100%;
}
.meetings-list {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
}
.meeting-card {
display: flex;
align-items: center;
padding: 15px;
background-color: var(--card-bg);
border-radius: 8px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
cursor: pointer;
transition: background-color 0.2s;
}
.meeting-card:hover {
background-color: #f5f5f5;
}
.meeting-icon {
margin-right: 15px;
width: 40px;
height: 40px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
}
.meeting-content {
flex-grow: 1;
}
.meeting-title {
font-weight: 500;
margin-bottom: 4px;
}
.meeting-time {
font-size: 14px;
color: var(--text-secondary);
}
.meeting-demo-link {
color: #0077ff;
text-decoration: none;
cursor: pointer;
}
.meeting-actions {
margin-left: auto;
display: flex;
align-items: center;
opacity: 0; /* Hidden by default */
transition: opacity 0.2s ease;
}
.meeting-card:hover .meeting-actions {
opacity: 1; /* Show on hover */
}
.delete-meeting-btn {
background: none;
border: none;
padding: 6px;
cursor: pointer;
color: #999;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.delete-meeting-btn:hover {
background-color: rgba(255, 0, 0, 0.1);
color: #ff3b30;
}
.delete-meeting-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Spinner animation for loading states */
.spinner {
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.meeting-icon.calendar {
background-color: var(--light-purple);
}
.meeting-icon.document {
background-color: var(--light-green);
}
.profile-pic {
width: 40px;
height: 40px;
border-radius: 4px;
overflow: hidden;
}
.profile-pic img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Note Editor Styles */
.note-container {
display: flex;
flex: 1;
position: relative;
height: calc(100vh - 120px);
}
.editor-content {
flex: 1;
padding: 40px;
background-color: var(--card-bg);
width: calc(100% - var(--sidebar-width));
transition: width 0.3s ease, padding 0.3s ease;
}
.editor-content.full-width {
width: 100%;
}
/* Adjust editor padding when debug panel is open */
.app-container.debug-panel-open .editor-content {
padding: 20px;
}
/* Ensure content fits when both sidebar and debug panel are open */
.app-container.debug-panel-open .editor-content:not(.full-width) {
padding: 15px;
width: 100%;
}
.note-header {
margin-bottom: 30px;
}
.title-container {
display: flex;
align-items: center;
position: relative;
}
#noteTitle {
outline: none;
padding: 5px;
border-radius: 4px;
transition: background-color 0.2s;
}
#noteTitle:hover {
background-color: rgba(0, 0, 0, 0.03);
}
#noteTitle:focus {
background-color: rgba(0, 0, 0, 0.05);
}
.edit-icon {
opacity: 0;
margin-left: 8px;
transition: opacity 0.2s;
}
.title-container:hover .edit-icon {
opacity: 0.5;
}
.note-meta {
display: flex;
gap: 15px;
color: var(--text-secondary);
font-size: 14px;
margin-top: 10px;
}
.note-date, .note-author {
display: flex;
align-items: center;
gap: 5px;
}
.recall-link {
display: inline-flex;
align-items: center;
gap: 5px;
color: #6947BD;
text-decoration: none;
font-size: 13px;
font-weight: 500;
padding: 3px 10px;
border-radius: 6px;
background: var(--light-purple);
transition: background 0.15s, color 0.15s;
cursor: pointer;
margin-left: auto;
}
.recall-link:hover {
background: #e0d0f5;
color: #5235a0;
}
/* Simple text editor styles */
#simple-editor {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.6;
color: #333;
background-color: white;
padding: 20px;
border: none;
border-radius: 4px;
width: 100%;
height: calc(100vh - 250px);
resize: none;
outline: none;
transition: font-size 0.3s ease, padding 0.3s ease;
}
/* Adjust editor content when debug panel is open */
.app-container.debug-panel-open #simple-editor {
padding: 15px;
font-size: 14px;
}
/* Sidebar */
.sidebar {
width: var(--sidebar-width);
position: absolute;
top: 0;
right: 0;
bottom: 0;
background-color: var(--card-bg);
border-left: 1px solid var(--border-color);
padding: 20px;
overflow-y: auto;
transition: transform 0.3s ease;
}
.sidebar.hidden {
transform: translateX(100%);
}
.sidebar-section {
margin-bottom: 30px;
}
.sidebar-section h3 {
font-size: 14px;
color: var(--text-secondary);
margin-bottom: 15px;
font-weight: 500;
}
.share-options, .share-export {
display: flex;
gap: 10px;
margin-bottom: 15px;
}
.share-btn {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
border-radius: 5px;
border: 1px solid var(--border-color);
background-color: var(--card-bg);
color: var(--text-primary);
font-size: 14px;
cursor: pointer;
flex: 1;
justify-content: center;
}
.share-btn.wide {
flex: 1;
}
.ai-options {
display: flex;
flex-direction: column;
gap: 10px;
}
.ai-btn {
padding: 10px 16px;
border-radius: 5px;
border: 1px solid var(--border-color);
background-color: var(--card-bg);
color: var(--text-primary);
font-size: 14px;
cursor: pointer;
text-align: left;
}
/* Floating Controls */
.floating-controls {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
z-index: 50;
display: flex;
justify-content: center;
}
.control-buttons {
display: flex;
align-items: center;
gap: 8px;
padding: 5px;
background-color: white;
border-radius: 25px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.control-btn {
display: flex;
align-items: center;
justify-content: center;
background: #f5f5f5;
border: none;
border-radius: 20px;
min-width: 36px;
height: 36px;
cursor: pointer;
transition: background-color 0.2s, color 0.2s;
color: #666;
padding: 0 15px;
font-size: 13px;
font-weight: 500;
}
.control-btn:hover {
background-color: #eaeaea;
}
.record-btn {
color: #666;
background: #f5f5f5;
border-radius: 50%;
padding: 0;
width: 36px;
height: 36px;
}
.record-btn:hover {
background-color: #eaeaea;
}
.record-btn.recording {
color: #fff;
background-color: #ff3b30;
}
.record-btn.recording:hover {
background-color: #d93129;
}
.generate-btn {
color: #00957B;
background: #E3F3F1;
font-weight: 500;
font-size: 13px;
display: flex;
align-items: center;
padding: 0 12px 0 10px;
}
.generate-btn:hover {
background-color: #d1eae7;
}
.generate-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn-text {
margin-left: 4px;
}
/* Toast notification */
.toast {
position: fixed;
bottom: 80px;
left: 50%;
transform: translateX(-50%);
padding: 10px 20px;
background-color: rgba(0,0,0,0.7);
color: white;
border-radius: 20px;
font-size: 14px;
font-weight: 500;
z-index: 1000;
opacity: 1;
transition: opacity 0.3s ease;
}
/* Debug Panel */
.debug-panel {
position: fixed;
top: 0;
right: 0;
width: 50%; /* Takes up half the screen */
height: 100vh;
background-color: #1e1e1e;
color: #e0e0e0;
z-index: 999; /* Ensure it's above everything */
display: flex;
flex-direction: column;
transition: transform 0.3s ease, width 0.3s ease;
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
overflow-x: hidden;
}
.debug-panel.hidden {
transform: translateX(100%);
}
.debug-panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 15px;
background-color: #333;
border-bottom: 1px solid #444;
}
.debug-panel-header h3 {
margin: 0;
font-size: 16px;
font-weight: 500;
color: #fff;
}
.debug-panel-close {
background: transparent;
border: none;
color: #e0e0e0;
padding: 5px;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
-webkit-app-region: no-drag; /* Make button clickable */
}
.debug-panel-close:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.debug-panel-toggle {
position: fixed;
top: 70px;
right: 0;
width: 40px;
height: 40px;
background: #333;
color: #fff;
border: none;
border-radius: 4px 0 0 4px;
cursor: pointer;
z-index: 1000; /* Above everything */
display: flex;
align-items: center;
justify-content: center;
transition: right 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.debug-panel-toggle:hover {
background: #444;
}
.debug-panel-toggle:before {
content: 'Debug';
position: absolute;
bottom: -20px;
left: 0;
width: 100%;
text-align: center;
font-size: 10px;
font-weight: 500;
}
/* Notification that new content is available */
.debug-panel-toggle.has-new-content {
animation: pulse 2s infinite;
}
.debug-panel-toggle.has-new-content:before {
content: 'New Data';
color: #4CAF50;
font-weight: 600;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
}
70% {
box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
}
}
/* Debug notification */
.debug-notification {
position: fixed;
bottom: 100px;
right: 20px;
max-width: 300px;
background-color: rgba(30, 30, 30, 0.9);
color: #fff;
padding: 12px 16px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
z-index: 1001;
transition: opacity 0.5s, transform 0.5s;
animation: slide-in 0.3s ease-out;
}
.debug-notification.fade-out {
opacity: 0;
transform: translateX(30px);
}
.debug-notification-speaker {
font-weight: bold;
color: #0077FF;
}
.debug-notification-text {
margin-left: 4px;
}
/* Specific notification styles */
.debug-notification.transcript-notification {
border-left: 3px solid #0077FF;
}
.debug-notification.participant-notification {
border-left: 3px solid #4CAF50;
}
.debug-notification-title {
font-weight: bold;
color: #4CAF50;
}
.debug-notification-name {
font-weight: 500;
margin-left: 4px;
}
@keyframes slide-in {
from {
transform: translateX(30px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
.debug-panel-content {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 15px;
padding: 15px;
height: calc(100vh - 40px);
}
.debug-section {
background-color: #252525;
border-radius: 6px;
overflow: hidden;
display: flex;
flex-direction: column;
flex: 1;
min-height: 150px;
max-height: 300px;
}
.debug-section-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 15px;
background-color: #333;
border-bottom: 1px solid #444;
}
.debug-section-header h4 {
margin: 0;
font-size: 14px;
font-weight: 500;
color: #fff;
}
.debug-section-action {
background: transparent;
border: none;
color: #e0e0e0;
cursor: pointer;
font-size: 12px;
border-radius: 3px;
padding: 3px 8px;
}
.debug-section-action:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.debug-section-content {
flex: 1;
overflow-y: auto;
padding: 10px;
font-family: monospace;
font-size: 12px;
line-height: 1.5;
}
/* Placeholder content styling */
.placeholder-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: #666;
text-align: center;
padding: 20px;
}
.video-placeholder {
background-color: #1a1a1a;
border-radius: 4px;
min-height: 120px;
}
/* Transcript styling */
.transcript-entries {
display: flex;
flex-direction: column;
gap: 12px;
padding: 5px 0;
}
.transcript-entry {
padding: 8px;
border-radius: 4px;
background-color: #2a2a2a;
position: relative;
}
.transcript-entry.newest-entry {
background-color: #2d3b4a;
border-left: 3px solid #0077FF;
}
.transcript-speaker {
font-weight: bold;
color: #0077FF;
margin-bottom: 4px;
}
.transcript-text {
color: #e0e0e0;
margin-bottom: 4px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
.transcript-timestamp {
font-size: 10px;
color: #888;
text-align: right;
}
/* Participants styling */
.participants-list {
display: flex;
flex-direction: column;
gap: 10px;
padding: 5px 0;
}
.participant-entry {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border-radius: 4px;
background-color: #2a2a2a;
}
.participant-avatar {
width: 24px;
height: 24px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
}
.participant-name {
flex-grow: 1;
color: #e0e0e0;
font-weight: 500;
}
.participant-status {
font-size: 12px;
color: #4CAF50;
padding: 2px 6px;
background-color: rgba(76, 175, 80, 0.1);
border-radius: 10px;
}
/* Video preview styling */
.video-participant-container {
margin-bottom: 15px;
background-color: #1a1a1a;
border-radius: 4px;
overflow: hidden;
position: relative;
}
.video-frame {
width: 100%;
display: block;
max-height: 200px;
object-fit: contain;
}
.video-participant-name {
position: absolute;
top: 8px;
left: 8px;
background-color: rgba(0, 0, 0, 0.6);
color: white;
padding: 2px 6px;
border-radius: 4px;
font-size: 12px;
z-index: 10;
}
.video-frame-type {
position: absolute;
bottom: 8px;
right: 8px;
background-color: rgba(0, 0, 0, 0.6);
color: white;
padding: 2px 6px;
border-radius: 4px;
font-size: 12px;
z-index: 10;
}
/* SDK Logger styling */
#sdkLoggerContent {
font-family: monospace;
font-size: 12px;
line-height: 1.5;
}
.sdk-log-entry {
margin-bottom: 10px;
padding: 8px;
border-radius: 4px;
background-color: #2a2a2a;
border-left: 3px solid #555;
word-break: break-word;
}
.sdk-log-entry.api-call {
border-left-color: #0077FF;
}
.sdk-log-entry.event {
border-left-color: #4CAF50;
}
.sdk-log-entry.error {
border-left-color: #FF3B30;
background-color: rgba(255, 59, 48, 0.1);
}
.sdk-log-entry .timestamp {
color: #999;
font-size: 10px;
margin-bottom: 4px;
}
.sdk-log-entry .method {
font-weight: bold;
color: #0077FF;
}
.sdk-log-entry .event-type {
font-weight: bold;
color: #4CAF50;
}
.sdk-log-entry .error-type {
font-weight: bold;
color: #FF3B30;
}
.sdk-log-entry .params {
color: #e0e0e0;
margin-top: 5px;
}
/* Chat Input */
.chat-input-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 100;
width: calc(var(--sidebar-width) - 40px);
}
.chat-input {
display: flex;
width: 100%;
position: relative;
}
#chatInput {
flex: 1;
padding: 12px 40px 12px 20px;
border-radius: 20px;
border: 1px solid var(--border-color);
font-size: 14px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
width: 100%;
}
#sendButton {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
background: transparent;
border: none;
cursor: pointer;
padding: 5px;
}