mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-27 15:17:38 +00:00
add phosphor decay effect for dead terminals
This commit is contained in:
parent
5d0fe3e7cf
commit
6377a3189c
2 changed files with 46 additions and 1 deletions
|
|
@ -1189,7 +1189,10 @@ export class SessionView extends LitElement {
|
||||||
|
|
||||||
<!-- Terminal Container -->
|
<!-- Terminal Container -->
|
||||||
<div
|
<div
|
||||||
class="flex-1 bg-dark-bg overflow-hidden min-h-0 relative"
|
class="flex-1 bg-dark-bg overflow-hidden min-h-0 relative ${this.session?.status ===
|
||||||
|
'exited'
|
||||||
|
? 'session-exited'
|
||||||
|
: ''}"
|
||||||
id="terminal-container"
|
id="terminal-container"
|
||||||
style="max-width: 100vw; height: 100%;"
|
style="max-width: 100vw; height: 100%;"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -911,3 +911,45 @@ body {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Phosphor Terminal Decay effect for exited sessions */
|
||||||
|
.session-exited {
|
||||||
|
filter: sepia(0.3) hue-rotate(45deg) brightness(0.8) contrast(1.2);
|
||||||
|
position: relative;
|
||||||
|
transition: filter 0.5s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.session-exited::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 20, 0, 0.4) 100%);
|
||||||
|
mix-blend-mode: multiply;
|
||||||
|
pointer-events: none;
|
||||||
|
animation: phosphor-fade 2s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes phosphor-fade {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Additional subtle scanline effect for exited sessions */
|
||||||
|
.session-exited::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
background: repeating-linear-gradient(
|
||||||
|
0deg,
|
||||||
|
rgba(0, 255, 0, 0.03),
|
||||||
|
rgba(0, 255, 0, 0.03) 1px,
|
||||||
|
transparent 1px,
|
||||||
|
transparent 2px
|
||||||
|
);
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue