Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Pass F part 1: six modals migrated to the modal-* primitive (delete, reset, share-delete, recording-disclaimer, upload-disclaimer, recording-recovery, system-audio-help) — overlay, panel, header (icon + title + close), body, footer (cancel + action button) all share one design language with consistent padding, type scale, and theme-safe colours; hardcoded bg-blue-600, bg-red-600, bg-blue-900/20 banner backgrounds replaced with banner--info / banner--danger / banner--warn primitives

Murtaza Nasirc545119ac212
diff --git a/templates/modals/delete-modal.html b/templates/modals/delete-modal.html
index 679d1e78..ef580c0e 100644
--- a/templates/modals/delete-modal.html
+++ b/templates/modals/delete-modal.html
@@ -1,32 +1,20 @@
-<!-- Delete Confirmation Modal -->
-<div v-if="showDeleteModal" @click.self="cancelDelete" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-md">
- <div class="p-6">
- <div class="flex items-center justify-between mb-4">
- <div class="flex items-center gap-4">
- <i class="fas fa-exclamation-triangle text-3xl text-[var(--text-danger)]"></i>
- <div>
- <h3 class="text-lg font-semibold" v-text="t('modal.deleteRecording')"></h3>
- <p class="text-[var(--text-muted)]" v-text="t('help.thisActionCannotBeUndone')"></p>
- </div>
- </div>
- <button @click="cancelDelete" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
- <i class="fas fa-times text-xl"></i>
- </button>
- </div>
- <p class="text-[var(--text-secondary)] mb-6">
- Are you sure you want to delete "${recordingToDelete?.title || 'this recording'}"?
- </p>
- <div class="flex justify-end gap-3">
- <button @click="cancelDelete"
- class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">
- Cancel
- </button>
- <button @click="deleteRecording"
- class="px-4 py-2 bg-[var(--bg-danger)] text-white rounded-lg hover:bg-[var(--bg-danger-hover)] transition-colors">
- Delete
- </button>
+<!-- Delete Confirmation Modal (design system v1) -->
+<div v-if="showDeleteModal" @click.self="cancelDelete" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm modal-panel--danger">
+ <div class="modal-header">
+ <i class="fas fa-exclamation-triangle text-2xl text-[var(--text-danger)]"></i>
+ <div class="flex-1">
+ <h3 class="modal-title" v-text="t('modal.deleteRecording')"></h3>
+ <div class="modal-subtitle" v-text="t('help.thisActionCannotBeUndone')"></div>
</div>
+ <button @click="cancelDelete" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>
+ </div>
+ <div class="modal-body">
+ Are you sure you want to delete "${recordingToDelete?.title || 'this recording'}"?
+ </div>
+ <div class="modal-footer">
+ <button @click="cancelDelete" class="btn btn--ghost">${ t('buttons.cancel') }</button>
+ <button @click="deleteRecording" class="btn btn--danger">${ t('buttons.delete') || 'Delete' }</button>
</div>
</div>
</div>
diff --git a/templates/modals/recording-disclaimer-modal.html b/templates/modals/recording-disclaimer-modal.html
index bbed85f4..a001eca4 100644
--- a/templates/modals/recording-disclaimer-modal.html
+++ b/templates/modals/recording-disclaimer-modal.html
@@ -1,36 +1,20 @@
-<!-- Recording Disclaimer Modal -->
-<div v-if="showRecordingDisclaimerModal" @click.self="cancelRecordingDisclaimer" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col overflow-hidden">
- <div class="flex-shrink-0 p-6 border-b border-[var(--border-primary)]">
- <div class="flex items-center justify-between">
- <div class="flex items-center gap-3">
- <i class="fas fa-info-circle text-2xl text-[var(--text-accent)]"></i>
- <h3 class="text-xl font-semibold text-[var(--text-primary)]" v-text="t('modal.recordingNotice')"></h3>
- </div>
- <button @click="cancelRecordingDisclaimer" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
- <i class="fas fa-times text-xl"></i>
- </button>
- </div>
+<!-- Recording Disclaimer Modal (design system v1) -->
+<div v-if="showRecordingDisclaimerModal" @click.self="cancelRecordingDisclaimer" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg">
+ <div class="modal-header">
+ <i class="fas fa-info-circle text-2xl text-[var(--text-accent)]"></i>
+ <h3 class="modal-title" v-text="t('modal.recordingNotice')"></h3>
+ <button @click="cancelRecordingDisclaimer" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>
</div>
- <div class="flex-1 overflow-y-auto p-6">
- <!-- Render markdown content -->
- <div class="ai-message text-[var(--text-secondary)]"
- style="line-height: 1.6;">
- <div v-html="recordingDisclaimerHtml"></div>
- </div>
+ <div class="modal-body">
+ <div class="prose-flush" v-html="recordingDisclaimerHtml"></div>
</div>
- <div class="flex-shrink-0 p-6 border-t border-[var(--border-primary)] bg-[var(--bg-tertiary)] rounded-b-lg">
- <div class="flex justify-end gap-3">
- <button @click="cancelRecordingDisclaimer"
- class="px-6 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-secondary)] rounded-lg transition-colors border border-[var(--border-secondary)]">
- Cancel
- </button>
- <button @click="acceptRecordingDisclaimer"
- class="px-6 py-2 bg-[var(--bg-accent)] text-white rounded-lg hover:bg-[var(--bg-accent-hover)] transition-colors">
- <i class="fas fa-microphone mr-2"></i>
- Start Recording
- </button>
- </div>
+ <div class="modal-footer">
+ <button @click="cancelRecordingDisclaimer" class="btn btn--ghost">${ t('buttons.cancel') }</button>
+ <button @click="acceptRecordingDisclaimer" class="btn btn--primary">
+ <i class="fas fa-microphone"></i>
+ <span>${ t('buttons.startRecording') || 'Start Recording' }</span>
+ </button>
</div>
</div>
</div>
diff --git a/templates/modals/recording-recovery-modal.html b/templates/modals/recording-recovery-modal.html
index 4007b2c7..adf75742 100644
--- a/templates/modals/recording-recovery-modal.html
+++ b/templates/modals/recording-recovery-modal.html
@@ -1,63 +1,51 @@
-<!-- Recording Recovery Modal -->
-<div v-if="showRecoveryModal" @click.self="cancelRecovery" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md max-h-[85vh] overflow-y-auto">
- <div class="p-6 border-b border-[var(--border-primary)]">
- <div class="flex items-center justify-between">
- <div class="flex items-center gap-3">
- <i class="fas fa-history text-2xl text-blue-500"></i>
- <h3 class="text-lg font-semibold" v-text="t('recording.recoveryTitle')"></h3>
- </div>
- <button @click="cancelRecovery" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
- <i class="fas fa-times text-xl"></i>
- </button>
- </div>
+<!-- Recording Recovery Modal (design system v1) -->
+<div v-if="showRecoveryModal" @click.self="cancelRecovery" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm">
+ <div class="modal-header">
+ <i class="fas fa-history text-2xl text-[var(--text-accent)]"></i>
+ <h3 class="modal-title" v-text="t('recording.recoveryTitle')"></h3>
+ <button @click="cancelRecovery" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>
</div>
-
- <div class="p-6 space-y-4">
- <div class="p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg">
- <div class="flex items-start gap-3">
- <i class="fas fa-info-circle text-blue-600 dark:text-blue-400 mt-0.5"></i>
- <div class="text-sm text-blue-700 dark:text-blue-400">
- <p class="font-medium mb-1">${ t('recording.recoveryFound') }</p>
- <p>${ t('recording.recoveryDescription') }</p>
- </div>
+ <div class="modal-body">
+ <div class="banner banner--info" style="display: flex; align-items: flex-start; gap: var(--sp-2); margin-bottom: var(--sp-4);">
+ <i class="fas fa-info-circle" style="margin-top: 2px;"></i>
+ <div>
+ <div class="t-body-strong" style="margin-bottom: var(--sp-1);">${ t('recording.recoveryFound') }</div>
+ <div class="t-meta">${ t('recording.recoveryDescription') }</div>
</div>
</div>
- <div v-if="recoverableRecording" class="space-y-2 text-sm">
+ <div v-if="recoverableRecording" class="space-y-2 t-meta">
<div class="flex justify-between">
- <span class="text-[var(--text-muted)]">${ t('recording.recordingMode') }:</span>
- <span class="font-medium">${ formatRecordingMode(recoverableRecording.mode) }</span>
+ <span>${ t('recording.recordingMode') }:</span>
+ <span class="t-body-strong">${ formatRecordingMode(recoverableRecording.mode) }</span>
</div>
<div class="flex justify-between">
- <span class="text-[var(--text-muted)]">${ t('recording.duration') }:</span>
- <span class="font-medium">${ formatTime(recoverableRecording.duration) }</span>
+ <span>${ t('recording.duration') }:</span>
+ <span class="t-body-strong">${ formatTime(recoverableRecording.duration) }</span>
</div>
<div class="flex justify-between">
- <span class="text-[var(--text-muted)]">${ t('recording.size') }:</span>
- <span class="font-medium">${ formatFileSize(recoverableRecording.totalSize) }</span>
+ <span>${ t('recording.size') }:</span>
+ <span class="t-body-strong">${ formatFileSize(recoverableRecording.totalSize) }</span>
</div>
<div class="flex justify-between">
- <span class="text-[var(--text-muted)]">${ t('recording.startedAt') }:</span>
- <span class="font-medium">${ formatDateTime(recoverableRecording.startTime) }</span>
+ <span>${ t('recording.startedAt') }:</span>
+ <span class="t-body-strong">${ formatDateTime(recoverableRecording.startTime) }</span>
</div>
- <div v-if="recoverableRecording.notes" class="pt-2 border-t border-[var(--border-secondary)]">
- <span class="text-[var(--text-muted)]">${ t('recording.notes') }:</span>
- <p class="mt-1 text-[var(--text-primary)] max-h-32 overflow-y-auto text-xs whitespace-pre-wrap">${ recoverableRecording.notes }</p>
+ <div v-if="recoverableRecording.notes" class="pt-2 border-t border-[var(--border-primary)]">
+ <span>${ t('recording.notes') }:</span>
+ <p class="mt-1 t-body max-h-32 overflow-y-auto whitespace-pre-wrap">${ recoverableRecording.notes }</p>
</div>
</div>
</div>
-
- <div class="p-6 border-t border-[var(--border-primary)] flex gap-3">
- <button
- @click="cancelRecovery"
- class="flex-1 px-4 py-2.5 bg-[var(--bg-tertiary)] text-[var(--text-primary)] rounded-lg hover:bg-[var(--bg-hover)] transition-colors font-medium">
- <i class="fas fa-trash mr-2"></i>${ t('recording.discardRecovery') }
+ <div class="modal-footer modal-footer--between">
+ <button @click="cancelRecovery" class="btn btn--ghost">
+ <i class="fas fa-trash"></i>
+ <span>${ t('recording.discardRecovery') }</span>
</button>
- <button
- @click="recoverRecording"
- class="flex-1 px-4 py-2.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium">
- <i class="fas fa-undo mr-2"></i>${ t('recording.restoreRecording') }
+ <button @click="recoverRecording" class="btn btn--primary">
+ <i class="fas fa-undo"></i>
+ <span>${ t('recording.restoreRecording') }</span>
</button>
</div>
</div>
diff --git a/templates/modals/reset-modal.html b/templates/modals/reset-modal.html
index 6acba421..fc64500e 100644
--- a/templates/modals/reset-modal.html
+++ b/templates/modals/reset-modal.html
@@ -1,31 +1,17 @@
-<!-- Reset Status Confirmation Modal -->
-<div v-if="showResetModal" @click.self="cancelReset" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md">
- <div class="p-6">
- <div class="flex items-start justify-between mb-4">
- <div class="flex items-start gap-3">
- <div class="flex items-center justify-center h-12 w-12 rounded-full bg-orange-100 dark:bg-orange-800">
- <i class="fas fa-exclamation-triangle text-2xl text-orange-500 dark:text-orange-300"></i>
- </div>
- <div>
- <h3 class="text-lg font-semibold text-[var(--text-primary)] mb-2" v-text="t('modal.resetStatus')"></h3>
- </div>
- </div>
- <button @click="cancelReset" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
- <i class="fas fa-times text-xl"></i>
- </button>
- </div>
- <p class="text-sm text-[var(--text-muted)] mb-6">
- This will mark the recording as 'Failed'. This is useful if processing is stuck. You will be able to reprocess it afterwards.
- </p>
+<!-- Reset Status Confirmation Modal (design system v1) -->
+<div v-if="showResetModal" @click.self="cancelReset" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm">
+ <div class="modal-header">
+ <i class="fas fa-exclamation-triangle text-2xl" style="color: #f97316;"></i>
+ <h3 class="modal-title" v-text="t('modal.resetStatus')"></h3>
+ <button @click="cancelReset" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>
</div>
- <div class="bg-[var(--bg-tertiary)] px-6 py-4 rounded-b-xl flex justify-end space-x-3">
- <button @click="cancelReset" class="px-4 py-2 bg-[var(--bg-secondary)] text-[var(--text-secondary)] rounded-lg border border-[var(--border-secondary)] hover:bg-[var(--bg-tertiary)]">
- Cancel
- </button>
- <button @click="executeReset" class="px-4 py-2 bg-orange-500 text-white rounded-lg hover:bg-orange-600">
- Yes, Reset Status
- </button>
+ <div class="modal-body">
+ <p class="t-meta">This will mark the recording as 'Failed'. This is useful if processing is stuck. You will be able to reprocess it afterwards.</p>
+ </div>
+ <div class="modal-footer">
+ <button @click="cancelReset" class="btn btn--ghost">${ t('buttons.cancel') }</button>
+ <button @click="executeReset" class="btn btn--primary" style="background: #f97316; border-color: #f97316;">Yes, Reset Status</button>
</div>
</div>
</div>
diff --git a/templates/modals/share-delete-modal.html b/templates/modals/share-delete-modal.html
index 1f543971..def0669f 100644
--- a/templates/modals/share-delete-modal.html
+++ b/templates/modals/share-delete-modal.html
@@ -1,51 +1,30 @@
-<!-- Share Delete Confirmation Modal -->
-<div v-if="showShareDeleteModal" @click.self="cancelDeleteShare" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md transform transition-all duration-300 ease-in-out">
- <!-- Header with gradient background -->
- <div class="bg-gradient-to-r from-red-500 to-red-600 p-5 rounded-t-xl">
- <div class="flex items-center justify-between">
- <div class="flex items-center">
- <div class="w-12 h-12 bg-white/20 backdrop-blur rounded-full flex items-center justify-center mr-4">
- <i class="fas fa-trash-alt text-white text-lg"></i>
- </div>
- <div>
- <h3 class="text-lg font-bold text-white">Delete Shared Link</h3>
- <p class="text-red-100 text-sm mt-1">This action cannot be undone</p>
- </div>
- </div>
- <button @click="cancelDeleteShare" class="text-white/80 hover:text-white transition-colors">
- <i class="fas fa-times text-xl"></i>
- </button>
+<!-- Share Delete Confirmation Modal (design system v1) -->
+<div v-if="showShareDeleteModal" @click.self="cancelDeleteShare" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm modal-panel--danger">
+ <div class="modal-header">
+ <i class="fas fa-trash-alt text-2xl text-[var(--text-danger)]"></i>
+ <div class="flex-1">
+ <h3 class="modal-title">Delete Shared Link</h3>
+ <div class="modal-subtitle" v-text="t('help.thisActionCannotBeUndone')"></div>
</div>
+ <button @click="cancelDeleteShare" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>
</div>
-
- <!-- Content -->
- <div class="p-6">
- <p class="text-[var(--text-secondary)] mb-4">
- Are you sure you want to delete the shared link for:
- </p>
- <div v-if="shareToDelete" class="bg-[var(--bg-tertiary)] p-3 rounded-lg border border-[var(--border-primary)]">
- <p class="font-medium text-[var(--text-primary)]">${shareToDelete.recording_title}</p>
- <p class="text-sm text-[var(--text-muted)] mt-1">Shared on: ${shareToDelete.created_at}</p>
+ <div class="modal-body">
+ <p class="t-body" style="margin-bottom: var(--sp-3);">Are you sure you want to delete the shared link for:</p>
+ <div v-if="shareToDelete" class="banner" style="display: block;">
+ <div class="t-body-strong">${shareToDelete.recording_title}</div>
+ <div class="t-meta" style="margin-top: var(--sp-1);">Shared on: ${shareToDelete.created_at}</div>
</div>
- <div class="mt-4 p-3 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg">
- <div class="flex items-start">
- <i class="fas fa-exclamation-triangle text-red-600 dark:text-red-400 mt-0.5 mr-2"></i>
- <p class="text-sm text-red-800 dark:text-red-300">
- The share link will be permanently deleted and anyone with this link will no longer be able to access the recording.
- </p>
- </div>
+ <div class="banner banner--danger" style="margin-top: var(--sp-3); display: flex; align-items: flex-start;">
+ <i class="fas fa-exclamation-triangle" style="margin-top: 2px;"></i>
+ <span>The share link will be permanently deleted and anyone with this link will no longer be able to access the recording.</span>
</div>
</div>
-
- <!-- Actions -->
- <div class="p-6 pt-0 flex justify-end gap-3">
- <button @click="cancelDeleteShare" class="px-4 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] rounded-lg transition-colors">
- Cancel
- </button>
- <button @click="deleteShare" class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors flex items-center gap-2">
+ <div class="modal-footer">
+ <button @click="cancelDeleteShare" class="btn btn--ghost">${ t('buttons.cancel') }</button>
+ <button @click="deleteShare" class="btn btn--danger">
<i class="fas fa-trash"></i>
- Delete Share Link
+ <span>Delete Share Link</span>
</button>
</div>
</div>
diff --git a/templates/modals/system-audio-help-modal.html b/templates/modals/system-audio-help-modal.html
index 84ee3aa9..b5f63f09 100644
--- a/templates/modals/system-audio-help-modal.html
+++ b/templates/modals/system-audio-help-modal.html
@@ -1,30 +1,22 @@
-<!-- System Audio Help Modal -->
-<div v-if="showSystemAudioHelp" @click.self="showSystemAudioHelp = false" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-lg max-h-[80vh] overflow-y-auto">
- <div class="p-6 border-b border-[var(--border-primary)]">
- <div class="flex items-center justify-between">
- <h3 class="text-lg font-semibold" v-text="t('help.systemAudioHelp')"></h3>
- <button @click="showSystemAudioHelp = false" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
- <i class="fas fa-times text-xl"></i>
- </button>
- </div>
+<!-- System Audio Help Modal (design system v1) -->
+<div v-if="showSystemAudioHelp" @click.self="showSystemAudioHelp = false" class="modal-overlay">
+ <div class="modal-panel modal-panel--md">
+ <div class="modal-header">
+ <h3 class="modal-title" v-text="t('help.systemAudioHelp')"></h3>
+ <button @click="showSystemAudioHelp = false" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>
</div>
- <div class="p-6 space-y-4">
- <div class="p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg">
- <div class="flex items-start gap-3">
- <i class="fas fa-info-circle text-blue-600 dark:text-blue-400 mt-0.5"></i>
- <div>
- <p class="font-medium text-blue-800 dark:text-blue-300 mb-2">Browser Compatibility</p>
- <p class="text-sm text-blue-700 dark:text-blue-400">
- System audio recording works best in Chrome, Edge, and Brave. Firefox is supported but requires the tab to be actively playing audio. Not supported on Safari or mobile devices.
- </p>
- </div>
+ <div class="modal-body">
+ <div class="banner banner--info" style="display: flex; align-items: flex-start; gap: var(--sp-2); margin-bottom: var(--sp-4);">
+ <i class="fas fa-info-circle" style="margin-top: 2px;"></i>
+ <div>
+ <div class="t-body-strong" style="margin-bottom: var(--sp-1);">Browser Compatibility</div>
+ <div class="t-meta">System audio recording works best in Chrome, Edge, and Brave. Firefox is supported but requires the tab to be actively playing audio. Not supported on Safari or mobile devices.</div>
</div>
</div>
- <div>
- <h4 class="font-medium mb-2">How to record system audio:</h4>
- <ol class="list-decimal list-inside space-y-2 text-sm text-[var(--text-secondary)]">
+ <div style="margin-bottom: var(--sp-4);">
+ <div class="t-body-strong" style="margin-bottom: var(--sp-2);">How to record system audio:</div>
+ <ol class="list-decimal list-inside space-y-1 t-body" style="color: var(--text-secondary);">
<li>Click "System Audio" or "Mic + System" button</li>
<li>A screen sharing dialog will appear</li>
<li>Select a tab or window that is <strong>actively playing audio</strong></li>
@@ -34,8 +26,8 @@
</div>
<div>
- <h4 class="font-medium mb-2">Troubleshooting:</h4>
- <ul class="list-disc list-inside space-y-1 text-sm text-[var(--text-muted)]">
+ <div class="t-body-strong" style="margin-bottom: var(--sp-2);">Troubleshooting:</div>
+ <ul class="list-disc list-inside space-y-1 t-meta">
<li><strong>Important:</strong> The tab/window must be playing audio when you share it</li>
<li>Check that "Share audio" checkbox is checked in the sharing dialog</li>
<li>In Firefox, start playing audio first, then click record</li>
@@ -44,10 +36,8 @@
</ul>
</div>
</div>
- <div class="p-6 border-t border-[var(--border-primary)] flex justify-end">
- <button @click="showSystemAudioHelp = false" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-lg hover:bg-[var(--bg-button-hover)] transition-colors">
- Got it
- </button>
+ <div class="modal-footer">
+ <button @click="showSystemAudioHelp = false" class="btn btn--primary">Got it</button>
</div>
</div>
</div>
diff --git a/templates/modals/upload-disclaimer-modal.html b/templates/modals/upload-disclaimer-modal.html
index 554e7985..fa0f6df8 100644
--- a/templates/modals/upload-disclaimer-modal.html
+++ b/templates/modals/upload-disclaimer-modal.html
@@ -1,36 +1,20 @@
-<!-- Upload Disclaimer Modal -->
-<div v-if="showUploadDisclaimerModal" @click.self="cancelUploadDisclaimer" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col overflow-hidden">
- <div class="flex-shrink-0 p-6 border-b border-[var(--border-primary)]">
- <div class="flex items-center justify-between">
- <div class="flex items-center gap-3">
- <i class="fas fa-info-circle text-2xl text-[var(--text-accent)]"></i>
- <h3 class="text-xl font-semibold text-[var(--text-primary)]" v-text="t('modal.uploadNotice')"></h3>
- </div>
- <button @click="cancelUploadDisclaimer" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
- <i class="fas fa-times text-xl"></i>
- </button>
- </div>
+<!-- Upload Disclaimer Modal (design system v1) -->
+<div v-if="showUploadDisclaimerModal" @click.self="cancelUploadDisclaimer" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg">
+ <div class="modal-header">
+ <i class="fas fa-info-circle text-2xl text-[var(--text-accent)]"></i>
+ <h3 class="modal-title" v-text="t('modal.uploadNotice')"></h3>
+ <button @click="cancelUploadDisclaimer" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>
</div>
- <div class="flex-1 overflow-y-auto p-6">
- <!-- Render markdown content -->
- <div class="ai-message text-[var(--text-secondary)]"
- style="line-height: 1.6;">
- <div v-html="uploadDisclaimerHtml"></div>
- </div>
+ <div class="modal-body">
+ <div class="prose-flush" v-html="uploadDisclaimerHtml"></div>
</div>
- <div class="flex-shrink-0 p-6 border-t border-[var(--border-primary)] bg-[var(--bg-tertiary)] rounded-b-lg">
- <div class="flex justify-end gap-3">
- <button @click="cancelUploadDisclaimer"
- class="px-6 py-2 text-[var(--text-secondary)] hover:bg-[var(--bg-secondary)] rounded-lg transition-colors border border-[var(--border-secondary)]">
- ${ t('buttons.cancel') }
- </button>
- <button @click="acceptUploadDisclaimer"
- class="px-6 py-2 bg-[var(--bg-accent)] text-white rounded-lg hover:bg-[var(--bg-accent-hover)] transition-colors">
- <i class="fas fa-upload mr-2"></i>
- <span v-text="t('modal.uploadFiles')"></span>
- </button>
- </div>
+ <div class="modal-footer">
+ <button @click="cancelUploadDisclaimer" class="btn btn--ghost">${ t('buttons.cancel') }</button>
+ <button @click="acceptUploadDisclaimer" class="btn btn--primary">
+ <i class="fas fa-upload"></i>
+ <span v-text="t('modal.uploadFiles')"></span>
+ </button>
</div>
</div>
</div>