mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 02:29:55 +02:00
feat(docs): add animated product website
This commit is contained in:
405
docs/components/invitation-scene.css
Normal file
405
docs/components/invitation-scene.css
Normal file
@@ -0,0 +1,405 @@
|
||||
/* Invitation methods */
|
||||
.invite-showcase {
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 25px;
|
||||
background: white;
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.invite-tabs {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: #f7f4f8;
|
||||
}
|
||||
|
||||
.invite-tabs button {
|
||||
display: inline-flex;
|
||||
min-height: 66px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 9px;
|
||||
border: 0;
|
||||
border-right: 1px solid var(--line);
|
||||
background: transparent;
|
||||
color: var(--ink-muted);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
transition: color 180ms ease, background 180ms ease;
|
||||
}
|
||||
|
||||
.invite-tabs button:last-child { border-right: 0; }
|
||||
.invite-tabs button:hover { color: var(--ink); }
|
||||
.invite-tabs button.is-active {
|
||||
position: relative;
|
||||
background: white;
|
||||
color: var(--brand-600);
|
||||
}
|
||||
|
||||
.invite-tabs button.is-active::after {
|
||||
position: absolute;
|
||||
right: 20%;
|
||||
bottom: -1px;
|
||||
left: 20%;
|
||||
height: 2px;
|
||||
border-radius: 999px 999px 0 0;
|
||||
background: var(--brand-500);
|
||||
content: "";
|
||||
}
|
||||
|
||||
.invite-tabs svg { width: 19px; }
|
||||
|
||||
.invite-panel {
|
||||
display: grid;
|
||||
min-height: 490px;
|
||||
grid-template-columns: minmax(0, 0.83fr) minmax(480px, 1.17fr);
|
||||
animation: invite-panel-enter 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
|
||||
}
|
||||
|
||||
.invite-copy {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
padding: 60px;
|
||||
}
|
||||
|
||||
.mono-label {
|
||||
color: var(--brand-600);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 9px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.11em;
|
||||
}
|
||||
|
||||
.invite-copy h3 {
|
||||
max-width: 430px;
|
||||
margin: 12px 0 18px;
|
||||
font-size: clamp(2rem, 3vw, 3.15rem);
|
||||
letter-spacing: -0.055em;
|
||||
line-height: 1.06;
|
||||
}
|
||||
|
||||
.invite-copy > p {
|
||||
max-width: 440px;
|
||||
margin-bottom: 30px;
|
||||
color: var(--ink-soft);
|
||||
font-size: 15px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.invite-detail {
|
||||
display: flex;
|
||||
gap: 11px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.invite-detail > svg {
|
||||
width: 19px;
|
||||
flex: 0 0 auto;
|
||||
color: var(--brand-600);
|
||||
}
|
||||
|
||||
.invite-detail strong,
|
||||
.invite-detail small {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.invite-detail strong {
|
||||
margin-bottom: 3px;
|
||||
color: #3c3440;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.invite-detail small {
|
||||
color: var(--ink-muted);
|
||||
font-size: 9px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.invite-art {
|
||||
position: relative;
|
||||
display: grid;
|
||||
overflow: hidden;
|
||||
place-items: center;
|
||||
border-left: 1px solid var(--line);
|
||||
background:
|
||||
linear-gradient(rgba(116, 86, 130, 0.05) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(116, 86, 130, 0.05) 1px, transparent 1px),
|
||||
radial-gradient(circle at center, #fbf7fd, #f2edf5);
|
||||
background-size: 24px 24px, 24px 24px, auto;
|
||||
}
|
||||
|
||||
.invite-art::before {
|
||||
position: absolute;
|
||||
width: 330px;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 50%;
|
||||
background: rgba(168, 85, 247, 0.14);
|
||||
content: "";
|
||||
filter: blur(55px);
|
||||
}
|
||||
|
||||
.invite-qr-art {
|
||||
position: relative;
|
||||
display: grid;
|
||||
width: 265px;
|
||||
height: 265px;
|
||||
place-items: center;
|
||||
border: 1px solid #e0d5e5;
|
||||
border-radius: 25px;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
box-shadow: 0 30px 80px rgba(59, 35, 70, 0.18);
|
||||
transform: rotate(2deg);
|
||||
animation: qr-card-float 6s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.invite-qr-grid {
|
||||
display: grid;
|
||||
width: 178px;
|
||||
height: 178px;
|
||||
grid-template-columns: repeat(9, 1fr);
|
||||
grid-template-rows: repeat(9, 1fr);
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.invite-qr-grid span {
|
||||
border-radius: 2px;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.invite-qr-grid span.is-filled {
|
||||
background: #2b2230;
|
||||
animation: qr-cell 600ms ease backwards;
|
||||
}
|
||||
|
||||
.invite-qr-grid span:nth-child(3n) { animation-delay: 80ms; }
|
||||
.invite-qr-grid span:nth-child(4n) { animation-delay: 160ms; }
|
||||
.invite-qr-grid span:nth-child(7n) { animation-delay: 230ms; }
|
||||
|
||||
.qr-scan-line {
|
||||
position: absolute;
|
||||
right: 34px;
|
||||
left: 34px;
|
||||
height: 2px;
|
||||
background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
|
||||
box-shadow: 0 0 13px var(--brand-400);
|
||||
animation: qr-scan 3.2s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.qr-corner {
|
||||
position: absolute;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
border-color: var(--brand-500);
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.qr-corner-one { top: 21px; left: 21px; border-width: 2px 0 0 2px; border-radius: 7px 0 0; }
|
||||
.qr-corner-two { top: 21px; right: 21px; border-width: 2px 2px 0 0; border-radius: 0 7px 0 0; }
|
||||
.qr-corner-three { right: 21px; bottom: 21px; border-width: 0 2px 2px 0; border-radius: 0 0 7px; }
|
||||
.qr-corner-four { bottom: 21px; left: 21px; border-width: 0 0 2px 2px; border-radius: 0 0 0 7px; }
|
||||
|
||||
.invite-nfc-art {
|
||||
position: relative;
|
||||
width: 440px;
|
||||
height: 330px;
|
||||
}
|
||||
|
||||
.nfc-device {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
left: 10px;
|
||||
width: 155px;
|
||||
height: 300px;
|
||||
border: 7px solid #d7cfdc;
|
||||
border-radius: 30px;
|
||||
background: #211c25;
|
||||
box-shadow: var(--shadow-lg);
|
||||
transform: rotate(-8deg);
|
||||
}
|
||||
|
||||
.nfc-device::after {
|
||||
position: absolute;
|
||||
top: 11px;
|
||||
left: 50%;
|
||||
width: 50px;
|
||||
height: 7px;
|
||||
border-radius: 999px;
|
||||
background: #09070a;
|
||||
content: "";
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.nfc-screen-dot {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
border: 1px solid rgba(192, 132, 252, 0.55);
|
||||
border-radius: 50%;
|
||||
background: rgba(168, 85, 247, 0.2);
|
||||
transform: translate(-50%, -50%);
|
||||
animation: nfc-dot 2.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.nfc-tag {
|
||||
position: absolute;
|
||||
right: 25px;
|
||||
bottom: 30px;
|
||||
display: grid;
|
||||
width: 138px;
|
||||
height: 138px;
|
||||
place-items: center;
|
||||
border: 1px solid #d9cfe0;
|
||||
border-radius: 28px;
|
||||
background: white;
|
||||
box-shadow: 0 25px 70px rgba(52, 31, 62, 0.18);
|
||||
color: var(--brand-600);
|
||||
transform: rotate(8deg);
|
||||
}
|
||||
|
||||
.nfc-tag svg { width: 46px; }
|
||||
.nfc-tag small {
|
||||
position: absolute;
|
||||
bottom: 18px;
|
||||
color: var(--ink-muted);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.nfc-waves {
|
||||
position: absolute;
|
||||
top: 75px;
|
||||
left: 145px;
|
||||
width: 185px;
|
||||
height: 160px;
|
||||
}
|
||||
|
||||
.nfc-waves span {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
border: 2px solid var(--brand-500);
|
||||
border-top-color: transparent;
|
||||
border-bottom-color: transparent;
|
||||
border-left-color: transparent;
|
||||
border-radius: 50%;
|
||||
transform: translateY(-50%);
|
||||
animation: nfc-wave 2.4s ease-in-out infinite;
|
||||
}
|
||||
|
||||
.nfc-waves span:nth-child(1) { width: 55px; height: 70px; }
|
||||
.nfc-waves span:nth-child(2) { width: 98px; height: 112px; animation-delay: 180ms; }
|
||||
.nfc-waves span:nth-child(3) { width: 142px; height: 154px; animation-delay: 360ms; }
|
||||
.nfc-waves i {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 15px;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 50%;
|
||||
background: var(--brand-500);
|
||||
box-shadow: 0 0 0 8px rgba(168, 85, 247, 0.13);
|
||||
transform: translateY(-50%);
|
||||
}
|
||||
|
||||
.invite-file-art {
|
||||
position: relative;
|
||||
width: 410px;
|
||||
height: 350px;
|
||||
}
|
||||
|
||||
.vnd-file {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
top: 13px;
|
||||
left: 50%;
|
||||
display: flex;
|
||||
width: 218px;
|
||||
height: 270px;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
border: 1px solid #d8cbe0;
|
||||
border-radius: 23px;
|
||||
background: linear-gradient(145deg, #fff, #f7f0fb);
|
||||
box-shadow: 0 30px 80px rgba(59, 35, 70, 0.2);
|
||||
transform: translateX(-50%) rotate(-2deg);
|
||||
animation: vnd-drop 4.8s cubic-bezier(0.3, 0.75, 0.3, 1) infinite;
|
||||
}
|
||||
|
||||
.vnd-fold {
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
right: -1px;
|
||||
width: 58px;
|
||||
height: 58px;
|
||||
border-bottom: 1px solid #d1c1dc;
|
||||
border-left: 1px solid #d1c1dc;
|
||||
border-radius: 0 23px 0 16px;
|
||||
background: #e7cdf9;
|
||||
clip-path: polygon(0 0, 100% 100%, 0 100%);
|
||||
}
|
||||
|
||||
.vnd-file > svg {
|
||||
width: 58px;
|
||||
margin-bottom: 20px;
|
||||
color: var(--brand-600);
|
||||
}
|
||||
|
||||
.vnd-file strong {
|
||||
font-family: var(--font-display);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.vnd-file small {
|
||||
color: var(--ink-muted);
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.vnd-file code {
|
||||
margin-top: 18px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 7px;
|
||||
background: var(--brand-100);
|
||||
color: var(--brand-600);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.file-tray {
|
||||
position: absolute;
|
||||
right: 37px;
|
||||
bottom: 7px;
|
||||
left: 37px;
|
||||
height: 73px;
|
||||
border: 2px solid #cabbd2;
|
||||
border-radius: 19px;
|
||||
background: rgba(237, 228, 242, 0.85);
|
||||
transform: perspective(250px) rotateX(55deg);
|
||||
}
|
||||
|
||||
.file-tray span {
|
||||
position: absolute;
|
||||
inset: 14px;
|
||||
border: 1px dashed #aa8cbc;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.file-art-orbit {
|
||||
position: absolute;
|
||||
border: 1px solid rgba(168, 85, 247, 0.2);
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.file-art-orbit-one { inset: 14px 32px 44px; animation: scene-orbits 24s linear infinite; }
|
||||
.file-art-orbit-two { inset: 52px 70px 80px; border-style: dashed; animation: scene-orbits 18s linear infinite reverse; }
|
||||
|
||||
Reference in New Issue
Block a user