mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
文件传输7-创建会话界面优化
This commit is contained in:
parent
985bb9dcba
commit
639c5fc62f
@ -108,7 +108,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
<ActionButton
|
<ActionButton
|
||||||
id="send-files"
|
id="send-files"
|
||||||
disabled={!peerConnected || sendingFiles}
|
disabled={!peerConnected || sendingFiles}
|
||||||
click={sendFiles}
|
click={sendFiles}
|
||||||
@ -242,12 +242,13 @@
|
|||||||
.file-drop-zone:hover::before {
|
.file-drop-zone:hover::before {
|
||||||
left: 100%;
|
left: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-drop-zone.dragover {
|
.file-drop-zone.dragover {
|
||||||
border-color: rgba(102, 126, 234, 0.6);
|
border-color: rgba(102, 126, 234, 0.6);
|
||||||
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
|
||||||
transform: scale(1.02);
|
transform: scale(1.02);
|
||||||
box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
|
box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
.file-drop-zone p {
|
.file-drop-zone p {
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
disabled={isCreating}
|
disabled={isCreating}
|
||||||
click={handleCreateSession}
|
click={handleCreateSession}
|
||||||
>
|
>
|
||||||
{isCreating ? 'Creating...' : $t("clipboard.create_session")}
|
{isCreating ? $t("clipboard.creating") : $t("clipboard.create_session")}
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -53,18 +53,17 @@
|
|||||||
<div class="setup-option">
|
<div class="setup-option">
|
||||||
<h3>{$t("clipboard.join_session")}</h3>
|
<h3>{$t("clipboard.join_session")}</h3>
|
||||||
<p>{$t("clipboard.join_description")}</p>
|
<p>{$t("clipboard.join_description")}</p>
|
||||||
<div class="join-form">
|
<div class="join-form"> <input
|
||||||
<input
|
|
||||||
type="text"
|
type="text"
|
||||||
bind:value={joinCode}
|
bind:value={joinCode}
|
||||||
placeholder="Enter session code"
|
placeholder={$t("clipboard.enter_code")}
|
||||||
disabled={isJoining}
|
disabled={isJoining}
|
||||||
/> <ActionButton
|
/> <ActionButton
|
||||||
id="join-session"
|
id="join-session"
|
||||||
disabled={isJoining || !joinCode.trim()}
|
disabled={isJoining || !joinCode.trim()}
|
||||||
click={handleJoinSession}
|
click={handleJoinSession}
|
||||||
>
|
>
|
||||||
{isJoining ? 'Joining...' : $t("clipboard.join_session")}
|
{isJoining ? $t("clipboard.joining") : $t("clipboard.join_session")}
|
||||||
</ActionButton>
|
</ActionButton>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -74,23 +73,20 @@
|
|||||||
<!-- Session Info -->
|
<!-- Session Info -->
|
||||||
<SettingsCategory title={$t("clipboard.session_active")} sectionId="session-info">
|
<SettingsCategory title={$t("clipboard.session_active")} sectionId="session-info">
|
||||||
<div class="session-info">
|
<div class="session-info">
|
||||||
<div class="session-details">
|
<div class="session-details"> <div class="session-id">
|
||||||
<div class="session-id">
|
<span>{$t("clipboard.session_id")}:</span>
|
||||||
<span>Session ID:</span>
|
|
||||||
<code>{sessionId}</code>
|
<code>{sessionId}</code>
|
||||||
<button class="copy-btn" on:click={handleShare}>📋</button>
|
<button class="copy-btn" on:click={handleShare}>📋</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{#if isCreator && sessionId && !peerConnected && qrCodeUrl}
|
{#if isCreator && sessionId && !peerConnected && qrCodeUrl} <div class="qr-code">
|
||||||
<div class="qr-code">
|
<h4>{$t("clipboard.scan_qr")}</h4>
|
||||||
<h4>Scan to join:</h4>
|
|
||||||
<img src={qrCodeUrl} alt="QR Code" />
|
<img src={qrCodeUrl} alt="QR Code" />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
<div class="connection-status">
|
||||||
<div class="connection-status">
|
|
||||||
<div class="status-indicator" class:connected={peerConnected}></div>
|
<div class="status-indicator" class:connected={peerConnected}></div>
|
||||||
<span>{peerConnected ? 'Connected' : 'Waiting for peer...'}</span>
|
<span>{peerConnected ? $t("clipboard.peer_connected") : $t("clipboard.waiting_peer")}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -107,34 +103,66 @@
|
|||||||
<style> .connection-setup {
|
<style> .connection-setup {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 2.5rem;
|
gap: 2rem;
|
||||||
padding: 1rem;
|
padding: 1.5rem;
|
||||||
|
max-width: 800px;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setup-option {
|
.setup-option {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 2rem;
|
padding: 2.5rem;
|
||||||
background: rgba(255, 255, 255, 0.03);
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
backdrop-filter: blur(8px);
|
backdrop-filter: blur(10px);
|
||||||
transition: all 0.3s ease;
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.setup-option::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
|
||||||
|
transition: left 0.5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setup-option:hover {
|
.setup-option:hover {
|
||||||
transform: translateY(-2px);
|
transform: translateY(-4px);
|
||||||
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
|
||||||
border-color: rgba(255, 255, 255, 0.15);
|
border-color: rgba(102, 126, 234, 0.3);
|
||||||
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.setup-option:hover::before {
|
||||||
|
left: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setup-option h3 {
|
.setup-option h3 {
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.75rem;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 600;
|
||||||
|
color: var(--text);
|
||||||
|
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.setup-option p {
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
color: var(--secondary);
|
||||||
|
line-height: 1.6;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
} .divider {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 1rem 0;
|
margin: 1.5rem 0;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider::before {
|
.divider::before {
|
||||||
@ -143,187 +171,281 @@
|
|||||||
top: 50%;
|
top: 50%;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 1px;
|
height: 2px;
|
||||||
background-color: var(--border);
|
background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
|
||||||
|
border-radius: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider span {
|
.divider span {
|
||||||
background-color: var(--background);
|
background: linear-gradient(135deg, var(--background), rgba(255, 255, 255, 0.02));
|
||||||
padding: 0 1rem;
|
padding: 0.75rem 1.5rem;
|
||||||
color: var(--secondary);
|
color: var(--secondary);
|
||||||
}
|
border-radius: 20px;
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
.join-form {
|
backdrop-filter: blur(10px);
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
z-index: 1;
|
||||||
|
position: relative;
|
||||||
|
} .join-form {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
max-width: 400px;
|
max-width: 500px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.join-form input {
|
.join-form input {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 0.5rem;
|
padding: 1rem 1.25rem;
|
||||||
border: 1px solid var(--border);
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
||||||
border-radius: 0.25rem;
|
border-radius: 12px;
|
||||||
background-color: var(--input-background);
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
|
font-size: 1rem;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
backdrop-filter: blur(8px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.join-form input:focus {
|
||||||
|
outline: none;
|
||||||
|
border-color: rgba(102, 126, 234, 0.5);
|
||||||
|
box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
|
||||||
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.join-form input::placeholder {
|
||||||
|
color: var(--secondary);
|
||||||
|
opacity: 0.7;
|
||||||
} .session-info {
|
} .session-info {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 1rem;
|
padding: 2rem;
|
||||||
|
max-width: 900px;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-details {
|
.session-details {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: column;
|
gap: 2rem;
|
||||||
gap: 1.5rem;
|
align-items: start;
|
||||||
align-items: center;
|
justify-items: center;
|
||||||
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-id {
|
.session-id {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
padding: 1rem;
|
padding: 1.5rem;
|
||||||
background: rgba(255, 255, 255, 0.02);
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
|
||||||
border-radius: 12px;
|
border-radius: 16px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
backdrop-filter: blur(4px);
|
backdrop-filter: blur(10px);
|
||||||
|
width: 100%;
|
||||||
|
max-width: 400px;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.session-id:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
|
||||||
|
border-color: rgba(102, 126, 234, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-id span {
|
.session-id span {
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--secondary);
|
color: var(--secondary);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-id code {
|
.session-id code {
|
||||||
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.75rem 1.25rem;
|
||||||
border-radius: 8px;
|
border-radius: 10px;
|
||||||
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 1px;
|
||||||
color: #667eea;
|
color: #667eea;
|
||||||
|
border: 1px solid rgba(102, 126, 234, 0.3);
|
||||||
|
font-size: 1.1rem;
|
||||||
|
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
} .copy-btn {
|
||||||
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
|
||||||
border: 1px solid rgba(102, 126, 234, 0.2);
|
border: 1px solid rgba(102, 126, 234, 0.2);
|
||||||
}
|
|
||||||
|
|
||||||
.copy-btn {
|
|
||||||
background: rgba(255, 255, 255, 0.03);
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0.5rem;
|
padding: 0.75rem;
|
||||||
border-radius: 8px;
|
border-radius: 10px;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
backdrop-filter: blur(4px);
|
backdrop-filter: blur(8px);
|
||||||
font-size: 1rem;
|
font-size: 1.1rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
min-width: 44px;
|
||||||
|
height: 44px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-btn:hover {
|
.copy-btn:hover {
|
||||||
background: rgba(102, 126, 234, 0.1);
|
background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
|
||||||
border-color: rgba(102, 126, 234, 0.3);
|
border-color: rgba(102, 126, 234, 0.4);
|
||||||
transform: translateY(-2px);
|
transform: translateY(-2px) scale(1.05);
|
||||||
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
|
box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-code {
|
.copy-btn:active {
|
||||||
|
transform: translateY(0) scale(0.95);
|
||||||
|
} .qr-code {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 1.5rem;
|
padding: 2rem;
|
||||||
background: rgba(255, 255, 255, 0.02);
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
|
||||||
border-radius: 16px;
|
border-radius: 20px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
backdrop-filter: blur(4px);
|
backdrop-filter: blur(10px);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
max-width: 300px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.qr-code:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
|
||||||
|
border-color: rgba(102, 126, 234, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-code h4 {
|
.qr-code h4 {
|
||||||
margin: 0 0 1rem 0;
|
margin: 0 0 1.5rem 0;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
|
font-size: 1.1rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-code img {
|
.qr-code img {
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
width: 100%;
|
||||||
border-radius: 12px;
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
||||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
border-radius: 16px;
|
||||||
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
|
||||||
|
transition: all 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.connection-status {
|
.qr-code img:hover {
|
||||||
|
transform: scale(1.05);
|
||||||
|
box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
|
||||||
|
} .connection-status {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0.75rem;
|
gap: 1rem;
|
||||||
padding: 1rem 1.5rem;
|
padding: 1.5rem 2rem;
|
||||||
background: rgba(255, 255, 255, 0.02);
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
|
||||||
border-radius: 12px;
|
border-radius: 16px;
|
||||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
backdrop-filter: blur(4px);
|
backdrop-filter: blur(10px);
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
max-width: 300px;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.connection-status:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-indicator {
|
.status-indicator {
|
||||||
width: 16px;
|
width: 20px;
|
||||||
height: 16px;
|
height: 20px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: #f44336;
|
background-color: #f44336;
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
|
box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-indicator::before {
|
.status-indicator::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -4px;
|
top: -6px;
|
||||||
left: -4px;
|
left: -6px;
|
||||||
right: -4px;
|
right: -6px;
|
||||||
bottom: -4px;
|
bottom: -6px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background-color: inherit;
|
background-color: inherit;
|
||||||
opacity: 0.3;
|
opacity: 0.2;
|
||||||
animation: pulse 2s infinite;
|
animation: pulse 2s infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-indicator.connected {
|
.status-indicator.connected {
|
||||||
background-color: #4caf50;
|
background-color: #4caf50;
|
||||||
|
box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes pulse {
|
@keyframes pulse {
|
||||||
0% {
|
0% {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
opacity: 0.3;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
50% {
|
50% {
|
||||||
transform: scale(1.2);
|
transform: scale(1.3);
|
||||||
opacity: 0.1;
|
opacity: 0.05;
|
||||||
}
|
}
|
||||||
100% {
|
100% {
|
||||||
transform: scale(1);
|
transform: scale(1);
|
||||||
opacity: 0.3;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.connection-status span {
|
.connection-status span {
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
font-size: 1rem;
|
||||||
|
text-transform: uppercase;
|
||||||
.disconnect-section {
|
letter-spacing: 0.5px;
|
||||||
|
} .disconnect-section {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 2.5rem;
|
margin-top: 3rem;
|
||||||
padding-top: 2rem;
|
padding-top: 2.5rem;
|
||||||
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
border-top: 2px solid rgba(255, 255, 255, 0.05);
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
.disconnect-section::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 50%;
|
||||||
|
transform: translateX(-50%);
|
||||||
|
width: 60px;
|
||||||
|
height: 2px;
|
||||||
|
background: linear-gradient(90deg, transparent, rgba(244, 67, 54, 0.5), transparent);
|
||||||
|
border-radius: 1px;
|
||||||
|
} @media (min-width: 768px) {
|
||||||
.connection-setup {
|
.connection-setup {
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: flex-start;
|
align-items: stretch;
|
||||||
|
gap: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.setup-option {
|
.setup-option {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
min-height: 280px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
.divider {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
margin: 0 2rem;
|
margin: 0;
|
||||||
width: 60px;
|
width: 80px;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider::before {
|
.divider::before {
|
||||||
@ -331,18 +453,49 @@
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
right: auto;
|
right: auto;
|
||||||
width: 1px;
|
width: 2px;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
background: linear-gradient(180deg, transparent, rgba(102, 126, 234, 0.3), transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.divider span {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.session-details {
|
.session-details {
|
||||||
flex-direction: row;
|
grid-template-columns: 1fr auto 1fr;
|
||||||
justify-content: space-between;
|
gap: 3rem;
|
||||||
align-items: flex-start;
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.session-id {
|
||||||
|
grid-column: 1;
|
||||||
|
justify-self: end;
|
||||||
}
|
}
|
||||||
|
|
||||||
.qr-code {
|
.qr-code {
|
||||||
order: -1;
|
grid-column: 2;
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.connection-status {
|
||||||
|
grid-column: 3;
|
||||||
|
justify-self: start;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1024px) {
|
||||||
|
.connection-setup {
|
||||||
|
gap: 4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.setup-option {
|
||||||
|
padding: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.session-details {
|
||||||
|
gap: 4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -231,17 +231,7 @@
|
|||||||
on:sendText={handleSendText}
|
on:sendText={handleSendText}
|
||||||
on:clearText={handleClearText}
|
on:clearText={handleClearText}
|
||||||
bind:textContent
|
bind:textContent
|
||||||
/>
|
/> {/if}
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{#if isConnected}
|
|
||||||
<!-- Disconnect Section -->
|
|
||||||
<div class="disconnect-section">
|
|
||||||
<ActionButton id="cleanup" click={handleCleanup}>
|
|
||||||
{$t("clipboard.disconnect")}
|
|
||||||
</ActionButton>
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@ -357,18 +347,7 @@
|
|||||||
|
|
||||||
.tab-content:hover {
|
.tab-content:hover {
|
||||||
box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
|
box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
|
||||||
border-color: rgba(255, 255, 255, 0.12);
|
border-color: rgba(255, 255, 255, 0.12); }
|
||||||
}
|
|
||||||
|
|
||||||
.disconnect-section {
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 3rem;
|
|
||||||
padding: 2rem;
|
|
||||||
background: rgba(255, 255, 255, 0.03);
|
|
||||||
border-radius: 15px;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
||||||
backdrop-filter: blur(5px);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Enhanced card-like sections */
|
/* Enhanced card-like sections */
|
||||||
:global(.card) {
|
:global(.card) {
|
||||||
|
Loading…
Reference in New Issue
Block a user