first commit

This commit is contained in:
2026-07-21 14:54:36 +10:00
commit e79c793b9c
134 changed files with 14427 additions and 0 deletions

260
apps/demo/src/style.css Normal file
View File

@@ -0,0 +1,260 @@
@import "@native-vue-router/core/style.css";
@import "@native-vue-router/preset-native/style.css";
:root {
font-family: Inter, ui-rounded, "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: #f5f6fa;
background: #050608;
font-synthesis: none;
text-rendering: optimizeLegibility;
--nvr-view-background: #0b0d12;
--nvr-accent: #8b73ff;
--line: rgba(255, 255, 255, .08);
--muted: #898e9c;
--surface: #13161d;
}
* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
body {
min-width: 320px;
background:
radial-gradient(circle at 50% -15%, rgba(124, 92, 255, .18), transparent 36%),
#050608;
}
.app-frame {
position: relative;
width: 100%;
height: 100dvh;
max-width: 740px;
margin: 0 auto;
overflow: hidden;
background: #0b0d12;
box-shadow: 0 0 80px rgba(0, 0, 0, .5);
}
.app-tabs {
position: absolute;
z-index: 20;
right: 0;
bottom: 0;
left: 0;
}
.screen {
width: 100%;
height: 100%;
overflow: auto;
overscroll-behavior: contain;
background:
radial-gradient(circle at 88% 4%, rgba(124, 92, 255, .09), transparent 24%),
#0b0d12;
scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen--tabs { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-header {
position: sticky;
z-index: 10;
top: 0;
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
min-height: calc(58px + env(safe-area-inset-top));
padding: env(safe-area-inset-top) 14px 0;
border-bottom: 1px solid var(--line);
background: rgba(11, 13, 18, .82);
backdrop-filter: blur(24px) saturate(1.45);
}
.app-header--large {
position: relative;
align-items: end;
min-height: calc(126px + env(safe-area-inset-top));
padding: calc(24px + env(safe-area-inset-top)) 20px 16px;
border-bottom: 0;
background: transparent;
backdrop-filter: none;
}
.app-header__title { min-width: 0; }
.app-header__title p { margin: 0 0 3px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.app-header__title h1 { overflow: hidden; margin: 0; text-overflow: ellipsis; font-size: 17px; line-height: 1.2; white-space: nowrap; }
.app-header--large .app-header__title h1 { font-size: clamp(32px, 8vw, 42px); letter-spacing: -.045em; }
.app-header__actions { display: flex; align-items: center; justify-content: flex-end; }
.round-button,
.avatar-button {
display: grid;
width: 44px;
height: 44px;
place-items: center;
border: 1px solid rgba(255,255,255,.1);
border-radius: 50%;
color: #fff;
background: rgba(255,255,255,.07);
text-decoration: none;
cursor: pointer;
}
.round-button { font-size: 25px; font-weight: 300; }
.avatar-button { border: 0; background: transparent; }
.content-stack { padding: 0 16px 24px; }
.search-field {
display: flex;
align-items: center;
gap: 10px;
height: 46px;
padding: 0 14px;
border: 1px solid rgba(255,255,255,.06);
border-radius: 15px;
color: var(--muted);
background: rgba(255,255,255,.055);
}
.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: #fff; background: transparent; }
.search-field input::placeholder { color: #707582; }
.story-strip { display: flex; gap: 18px; padding: 22px 3px 20px; overflow-x: auto; scrollbar-width: none; }
.story-strip::-webkit-scrollbar { display: none; }
.story-person { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 7px; color: #c9ccd5; font-size: 11px; }
.avatar {
position: relative;
display: inline-grid;
flex: 0 0 auto;
width: 52px;
height: 52px;
place-items: center;
border: 2px solid color-mix(in srgb, var(--avatar-color) 65%, white 5%);
border-radius: 50%;
color: #fff;
background: linear-gradient(145deg, color-mix(in srgb, var(--avatar-color) 84%, white), color-mix(in srgb, var(--avatar-color) 54%, #111));
box-shadow: inset 0 0 22px rgba(255,255,255,.12), 0 8px 24px color-mix(in srgb, var(--avatar-color) 22%, transparent);
font-size: 15px;
font-weight: 750;
}
.avatar i { position: absolute; right: -1px; bottom: 1px; width: 12px; height: 12px; border: 2px solid #0b0d12; border-radius: 50%; background: #34d399; }
.avatar--sm { width: 38px; height: 38px; font-size: 11px; }
.avatar--lg { width: 60px; height: 60px; }
.avatar--xl { width: 102px; height: 102px; font-size: 27px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 10px; }
.section-heading h2 { margin: 0; font-size: 16px; }
.section-heading span { color: #646a77; font-size: 11px; }
.conversation-list { overflow: hidden; border: 1px solid rgba(255,255,255,.055); border-radius: 21px; background: rgba(255,255,255,.03); }
.conversation-row {
position: relative;
display: flex;
width: 100%;
min-height: 76px;
align-items: center;
gap: 13px;
padding: 11px 14px;
border: 0;
border-bottom: 1px solid var(--line);
color: inherit;
text-align: left;
background: transparent;
cursor: pointer;
}
.conversation-row:last-child { border-bottom: 0; }
.conversation-row:active { background: rgba(255,255,255,.045); }
.conversation-copy { min-width: 0; flex: 1; }
.conversation-copy > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conversation-copy strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy time { color: #6f7480; font-size: 11px; }
.conversation-copy p { overflow: hidden; margin: 5px 0 0; color: #858a97; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.unread-badge { display: grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; border-radius: 10px; background: var(--nvr-accent); font-size: 11px; font-weight: 800; }
.chevron { color: #515663; font-size: 24px; }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
.story-card { position: relative; display: flex; min-height: 240px; flex-direction: column; justify-content: flex-end; gap: 9px; overflow: hidden; padding: 16px; border-radius: 25px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); }
.story-card__glow { position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.62)); }
.story-card > *:not(.story-card__glow) { position: relative; z-index: 1; }
.story-card strong { font-size: 13px; }
.story-card p { margin: 2px 0 0; color: rgba(255,255,255,.7); font-size: 11px; }
.story-card__mark { position: absolute !important; top: 18px; right: 18px; font-size: 28px; }
.gesture-tip { margin: 22px auto; padding: 0 34px; color: #646a77; font-size: 12px; line-height: 1.5; text-align: center; }
.profile-card { margin: 0 16px 18px; padding: 28px 20px 22px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, rgba(124,92,255,.16), rgba(255,255,255,.025)); text-align: center; }
.profile-avatar { display: grid; width: 88px; height: 88px; margin: 0 auto 14px; place-items: center; border: 2px solid #9b88ff; border-radius: 30px; background: linear-gradient(145deg, #9b88ff, #4735a5); box-shadow: 0 18px 44px rgba(124,92,255,.26); font-size: 24px; font-weight: 800; transform: rotate(-3deg); }
.profile-card h2 { margin: 0; font-size: 24px; }
.profile-card > p { margin: 5px 0 22px; color: var(--muted); font-size: 13px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.profile-stats div { display: flex; flex-direction: column; gap: 3px; border-right: 1px solid var(--line); }
.profile-stats div:last-child { border: 0; }
.profile-stats strong { font-size: 17px; }
.profile-stats span { color: var(--muted); font-size: 11px; }
.settings-list, .settings-group { overflow: hidden; margin: 0 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.03); }
.settings-list > a, .settings-list > button { display: grid; width: 100%; min-height: 58px; grid-template-columns: 30px 1fr auto; align-items: center; padding: 0 15px; border: 0; border-bottom: 1px solid var(--line); color: inherit; background: transparent; text-align: left; text-decoration: none; }
.settings-list > :last-child { border-bottom: 0; }
.settings-list strong { font-size: 14px; }
.settings-list i { color: var(--muted); font-size: 12px; font-style: normal; }
.settings-list .danger { color: #ff6c76; }
.chat-screen { display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.message-list { display: flex; min-height: 0; flex-direction: column; gap: 8px; overflow-y: auto; padding: 18px 14px; overscroll-behavior: contain; }
.message-day { align-self: center; margin-bottom: 9px; padding: 5px 10px; border-radius: 12px; color: #737986; background: rgba(255,255,255,.04); font-size: 10px; font-weight: 700; }
.message { max-width: min(78%, 480px); align-self: flex-start; }
.message p { margin: 0; padding: 10px 13px; border-radius: 18px 18px 18px 5px; background: #1a1e27; font-size: 14px; line-height: 1.42; }
.message footer { display: flex; gap: 6px; margin: 4px 5px 0; color: #656b78; font-size: 9px; }
.message--mine { align-self: flex-end; }
.message--mine p { border-radius: 18px 18px 5px 18px; background: linear-gradient(145deg, #8268ff, #6247d7); }
.message--mine footer { justify-content: flex-end; }
.typing-pill { display: flex; width: 50px; gap: 4px; padding: 12px 13px; border-radius: 18px 18px 18px 5px; background: #1a1e27; }
.typing-pill i { width: 5px; height: 5px; border-radius: 50%; background: #777d89; animation: typing 1s infinite alternate; }
.typing-pill i:nth-child(2) { animation-delay: .2s; }.typing-pill i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { to { opacity: .25; transform: translateY(-3px); } }
.composer { display: grid; grid-template-columns: 38px 1fr 38px; gap: 8px; padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(11,13,18,.92); backdrop-filter: blur(24px); }
.composer input { min-width: 0; border: 1px solid var(--line); border-radius: 20px; outline: 0; padding: 0 15px; color: #fff; background: rgba(255,255,255,.055); }
.composer button { border: 0; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 21px; }
.composer .send-button { background: var(--nvr-accent); font-weight: 700; }
.composer .send-button:disabled { opacity: .35; }
.contact-hero { padding: 36px 24px 20px; text-align: center; }
.contact-hero h1 { margin: 15px 0 2px; font-size: 26px; }
.contact-hero p { max-width: 340px; margin: 5px auto; color: var(--muted); font-size: 13px; line-height: 1.5; }
.contact-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 22px; }
.contact-actions button { display: flex; min-height: 72px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); font-size: 11px; }
.contact-actions span { color: #9b88ff; font-size: 21px; }
.sheet-screen { border-radius: 22px 22px 0 0; }
.sheet-handle { position: sticky; z-index: 12; top: 8px; width: 38px; height: 5px; margin: 8px auto 0; border-radius: 4px; background: #4e5360; }
.sheet-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px; }
.sheet-header h1 { margin: 0; font-size: 16px; }
.sheet-header button { justify-self: start; border: 0; color: #9b88ff; background: transparent; }
.compose-search { margin: 0 16px 14px; }
.lab-intro { display: flex; align-items: center; gap: 16px; margin: 20px 16px; padding: 18px; border: 1px solid rgba(124,92,255,.2); border-radius: 20px; background: rgba(124,92,255,.1); }
.lab-intro > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: #7c5cff; font-size: 20px; font-weight: 800; }
.lab-intro strong { font-size: 14px; }.lab-intro p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.settings-group { padding: 8px 0; }
.settings-group h2 { margin: 8px 15px; color: #737986; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.settings-group > label, .settings-group > div { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 15px; border-top: 1px solid var(--line); }
.settings-group > p { margin: 0; padding: 12px 15px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.settings-group label span, .settings-group div span { display: flex; flex-direction: column; gap: 3px; }
.settings-group strong { font-size: 13px; }.settings-group small { color: var(--muted); }
.settings-group input[type="range"] { width: 120px; accent-color: var(--nvr-accent); }
.settings-group input[type="checkbox"] { width: 42px; height: 24px; accent-color: var(--nvr-accent); }
.settings-group b { color: #3dd9aa; font-size: 12px; }.settings-group b.offline { color: #ff7a84; }
.reset-button { display: block; width: calc(100% - 32px); min-height: 48px; margin: 0 16px 30px; border: 1px solid rgba(255,108,118,.2); border-radius: 15px; color: #ff7a84; background: rgba(255,108,118,.07); }
.empty-state { display: grid; place-items: center; }
.update-toast { position: absolute; z-index: 50; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 14px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(28,31,40,.96); box-shadow: 0 18px 50px rgba(0,0,0,.4); font-size: 12px; }
.update-toast button { border: 0; color: #a998ff; background: transparent; font-weight: 700; }
@media (min-width: 741px) {
.app-frame { height: min(920px, calc(100dvh - 28px)); margin-top: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 30px; }
.story-grid { grid-template-columns: repeat(4, 1fr); }
.story-card { min-height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}