Files
vnidrop/docs/components/hero-scene.css

607 lines
11 KiB
CSS

/* Coordinated product transfer stage */
.hero-visual {
position: relative;
width: min(100%, 760px);
margin: 0;
}
.hero-stage {
--pointer-x: 0;
--pointer-y: 0;
position: relative;
width: 100%;
aspect-ratio: 1.17;
isolation: isolate;
perspective: 1400px;
}
.hero-stage-grid {
position: absolute;
z-index: -3;
inset: 3% 0 4% 1%;
overflow: hidden;
border: 1px solid rgba(159, 132, 173, 0.15);
border-radius: 44px;
background:
linear-gradient(rgba(110, 86, 122, 0.055) 1px, transparent 1px),
linear-gradient(90deg, rgba(110, 86, 122, 0.055) 1px, transparent 1px),
radial-gradient(circle at 72% 35%, rgba(192, 132, 252, 0.13), transparent 38%),
rgba(255, 255, 255, 0.2);
background-size: 28px 28px, 28px 28px, auto, auto;
mask-image: linear-gradient(to bottom, transparent 0, black 9%, black 88%, transparent 100%);
}
.hero-stage-grid::before,
.hero-stage-grid::after {
position: absolute;
width: 32px;
height: 32px;
border-style: solid;
border-color: rgba(168, 85, 247, 0.35);
content: "";
}
.hero-stage-grid::before {
top: 18px;
left: 18px;
border-width: 1px 0 0 1px;
}
.hero-stage-grid::after {
right: 18px;
bottom: 18px;
border-width: 0 1px 1px 0;
}
.hero-stage-glow {
position: absolute;
z-index: -2;
top: 18%;
right: 9%;
width: 45%;
aspect-ratio: 1;
border-radius: 50%;
background: rgba(168, 85, 247, 0.16);
filter: blur(70px);
transform: translate(
calc(var(--pointer-x) * 9px),
calc(var(--pointer-y) * 9px)
);
}
.stage-coordinate {
position: absolute;
z-index: 1;
color: rgba(87, 70, 95, 0.48);
font-family: var(--font-mono);
font-size: 7px;
font-weight: 750;
letter-spacing: 0.13em;
}
.stage-coordinate-top {
top: 1.5%;
left: 5%;
}
.stage-coordinate-side {
top: 27%;
right: -3%;
transform: rotate(90deg);
}
.desktop-product-shell {
position: absolute;
z-index: 3;
top: 11%;
left: 1.5%;
width: 64%;
height: 55%;
transform: translate(
calc(var(--pointer-x) * -5px),
calc(var(--pointer-y) * -4px)
)
rotateY(calc(var(--pointer-x) * 1.4deg))
rotateX(calc(var(--pointer-y) * -1.2deg));
transform-origin: center;
transition: transform 180ms ease-out;
}
.desktop-product-window {
position: relative;
width: 100%;
height: 100%;
overflow: visible;
border: 1px solid rgba(195, 186, 200, 0.95);
border-radius: 20px;
background: #fcfbfc;
box-shadow:
0 38px 90px rgba(52, 34, 62, 0.16),
0 8px 24px rgba(52, 34, 62, 0.08),
inset 0 1px white;
}
.desktop-product-window::after {
position: absolute;
inset: 0;
border-radius: inherit;
background: linear-gradient(118deg, rgba(255, 255, 255, 0.5), transparent 24%, transparent 72%, rgba(168, 85, 247, 0.025));
content: "";
pointer-events: none;
}
.desktop-window-bar {
position: relative;
z-index: 2;
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
height: 34px;
padding: 0 11px;
border-bottom: 1px solid #e9e5eb;
border-radius: 20px 20px 0 0;
background: rgba(248, 247, 249, 0.92);
}
.window-controls {
display: flex;
gap: 5px;
}
.window-controls i {
width: 7px;
height: 7px;
border-radius: 50%;
background: #d8d2dc;
}
.window-controls i:first-child { background: #c084fc; }
.window-title {
color: #777078;
font-size: 8px;
font-weight: 650;
}
.window-security {
display: inline-flex;
align-items: center;
justify-self: end;
gap: 4px;
color: #7b707f;
font-family: var(--font-mono);
font-size: 6px;
font-weight: 750;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.window-security svg {
width: 9px;
height: 9px;
color: var(--brand-600);
}
.desktop-app-layout {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: 50px 1fr;
height: calc(100% - 34px);
overflow: hidden;
border-radius: 0 0 20px 20px;
}
.desktop-sidebar {
display: flex;
flex-direction: column;
align-items: center;
gap: 7px;
padding: 9px 0 10px;
border-right: 1px solid #ebe7ed;
background: #f7f6f8;
}
.product-brand-mark {
width: 34px;
height: 34px;
margin-bottom: 2px;
object-fit: contain;
}
.desktop-sidebar-item {
display: grid;
width: 30px;
height: 30px;
place-items: center;
border-radius: 9px;
color: #8c848f;
}
.desktop-sidebar-item.is-active {
background: linear-gradient(135deg, #ead5fe, #f5eafe);
color: var(--brand-700);
box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.1);
}
.desktop-sidebar-item svg {
width: 14px;
height: 14px;
}
.desktop-sidebar-spacer { flex: 1; }
.desktop-profile {
display: grid;
width: 26px;
height: 26px;
place-items: center;
border-radius: 9px;
background: #232027;
color: white;
font-size: 7px;
font-weight: 780;
}
.desktop-transfer-view {
display: flex;
min-width: 0;
flex-direction: column;
padding: 14px 16px 12px;
background: #fdfcfd;
}
.desktop-view-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 11px;
}
.desktop-view-heading div {
display: grid;
gap: 2px;
}
.desktop-view-heading small {
color: #9a919e;
font-family: var(--font-mono);
font-size: 6px;
font-weight: 800;
letter-spacing: 0.11em;
}
.desktop-view-heading strong {
color: #211d24;
font-family: var(--font-display);
font-size: 15px;
line-height: 1.2;
letter-spacing: -0.035em;
}
.sharing-pill {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 7px;
border: 1px solid #e2d2ee;
border-radius: 999px;
background: #f6edfe;
color: #6f27e9;
font-size: 7px;
font-weight: 750;
}
.sharing-pill i {
width: 5px;
height: 5px;
border-radius: 50%;
background: var(--brand-500);
box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}
.file-collection-card {
position: relative;
display: grid;
grid-template-columns: 64px 1fr auto;
align-items: center;
gap: 11px;
padding: 9px;
border: 1px solid #e9e5eb;
border-radius: 14px;
background: #f7f6f8;
}
.file-collage {
display: grid;
width: 64px;
height: 52px;
grid-template-columns: 1.15fr 0.85fr;
grid-template-rows: repeat(2, 1fr);
gap: 2px;
overflow: hidden;
border-radius: 9px;
background: #e9e5eb;
}
.file-collage span:first-child {
grid-row: 1 / 3;
background:
radial-gradient(circle at 35% 23%, #ffe6b6 0 8%, transparent 9%),
linear-gradient(145deg, #94b8d5 0 38%, #5a8b8f 39% 57%, #efbc7b 58%);
}
.file-collage span:nth-child(2) {
background: linear-gradient(150deg, #8a76a8 0 35%, #d4a985 36% 68%, #5c4356 69%);
}
.file-collage span:nth-child(3) {
background: linear-gradient(140deg, #ceddca 0 38%, #6d9b77 39% 61%, #d7bd92 62%);
}
.file-collage span:nth-child(4) { display: none; }
.file-collection-copy {
display: grid;
min-width: 0;
}
.file-collection-copy strong {
overflow: hidden;
color: #27222a;
font-size: 10px;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-collection-copy > span {
color: #7f7683;
font-size: 7px;
}
.file-collection-copy small {
display: flex;
align-items: center;
gap: 4px;
margin-top: 5px;
color: #85798a;
font-size: 6px;
}
.file-collection-copy svg {
width: 9px;
color: var(--brand-600);
}
.collection-menu {
align-self: start;
padding: 0 2px;
color: #9c929f;
font-size: 9px;
letter-spacing: 1px;
}
.receiver-section-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
margin: 11px 2px 6px;
}
.receiver-section-heading span {
color: #373039;
font-size: 8px;
font-weight: 750;
}
.receiver-section-heading small {
color: #938a96;
font-size: 6px;
}
.desktop-receiver-row {
position: relative;
display: grid;
grid-template-columns: 31px 1fr auto;
align-items: center;
gap: 8px;
min-height: 48px;
padding: 8px 9px 10px;
border: 1px solid #e8e3ea;
border-radius: 12px;
background: white;
box-shadow: 0 5px 15px rgba(49, 36, 55, 0.035);
}
.receiver-avatar {
display: grid;
width: 29px;
height: 29px;
place-items: center;
border-radius: 10px;
background: linear-gradient(135deg, #ead2fe, #c084fc);
color: #5c1bb8;
font-size: 9px;
font-weight: 800;
}
.receiver-identity {
display: grid;
min-width: 0;
}
.receiver-identity strong {
overflow: hidden;
color: #302a33;
font-size: 8px;
text-overflow: ellipsis;
white-space: nowrap;
}
.receiver-identity small {
color: #938a96;
font-size: 6px;
}
.receiver-state-stack {
position: relative;
width: 86px;
height: 16px;
}
.receiver-row-state {
position: absolute;
inset: 0;
display: inline-flex;
align-items: center;
justify-content: flex-end;
gap: 3px;
font-size: 6px;
font-weight: 720;
white-space: nowrap;
}
.receiver-row-state.is-waiting { color: #9a6716; }
.receiver-row-state.is-sending { color: var(--brand-700); }
.receiver-row-state.is-complete { color: #23855a; }
.receiver-row-state svg { width: 9px; }
.receiver-progress-track {
position: absolute;
right: 9px;
bottom: 5px;
left: 48px;
height: 2px;
overflow: hidden;
border-radius: 999px;
background: #ede8ef;
}
.receiver-progress-track span {
display: block;
width: 100%;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, var(--brand-400), var(--brand-700));
transform: scaleX(0);
transform-origin: left;
}
.desktop-transfer-foot {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: auto;
padding: 8px 2px 0;
color: #8e8492;
font-size: 6px;
}
.desktop-transfer-foot span {
display: inline-flex;
align-items: center;
gap: 4px;
}
.desktop-transfer-foot svg {
width: 9px;
color: var(--brand-600);
}
.approval-knock-card {
position: absolute;
z-index: 8;
right: -8%;
bottom: -19%;
width: 238px;
padding: 12px;
border: 1px solid rgba(215, 202, 222, 0.95);
border-radius: 16px;
background: rgba(255, 255, 255, 0.96);
box-shadow: 0 24px 65px rgba(55, 31, 66, 0.2);
backdrop-filter: blur(18px);
}
.approval-knock-top {
display: grid;
grid-template-columns: 30px 1fr 27px;
align-items: center;
gap: 8px;
}
.approval-knock-top > span:nth-child(2) {
display: grid;
}
.approval-knock-top small {
color: #9a8da0;
font-family: var(--font-mono);
font-size: 5.5px;
font-weight: 800;
letter-spacing: 0.09em;
}
.approval-knock-top strong {
color: #27212b;
font-size: 8px;
}
.approval-lock {
display: grid;
width: 27px;
height: 27px;
place-items: center;
border-radius: 9px;
background: var(--brand-100);
color: var(--brand-700);
}
.approval-lock svg { width: 13px; }
.approval-knock-card p {
margin: 9px 0;
color: #756c79;
font-size: 7px;
}
.approval-knock-card p strong { color: #3b323e; }
.approval-knock-actions {
display: grid;
grid-template-columns: 1fr 1.2fr;
gap: 7px;
}
.approval-knock-actions > span {
display: inline-flex;
min-height: 28px;
align-items: center;
justify-content: center;
gap: 4px;
border: 1px solid #e6e0e9;
border-radius: 8px;
color: #685f6c;
font-size: 7px;
font-weight: 720;
}
.approval-knock-actions .approval-accept {
border-color: transparent;
background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
box-shadow: 0 8px 18px rgba(132, 47, 238, 0.22);
color: white;
}
.approval-accept svg { width: 10px; }
.hero-conduit {
position: absolute;
z-index: 2;
inset: 0;
width: 100%;
height: 100%;
overflow: visible;
pointer-events: none;
}