8ce5471c25
- lib/passcode.ts:module 58156/28116 移植——primaryPasscodePath("/2026")、buildPasscodeUnlockHref("/unlock/2026?return=%2F")、slotCount:4、品牌名按原站 charCode-1 混淆解码(TikTok)、锁定占位符与字符/散段样式类
- PasscodeAccess.tsx:module 4278 移植——access store(useSyncExternalStore + passcode-access-changed 事件驱动刷新)、usePasscodeAllowed/usePasscodeAccessLookup、submit/logout(POST /api/passcode)
- PasscodeUnlockScreen:4 格圆环输入(inset ring label-1/label-3 + caret-blink 光标)、满 4 位自动提交、错误 shake(WAAPI 等价原 framer x 关键帧抖动)、成功 'Access granted' 600ms 后 replace 回来源、已解锁进入立即跳回
- layout 挂 PasscodeAccessProvider(服务端 cookies 读初始 access);新增 /api/passcode GET/POST(httpOnly cookie 持久化,解锁码经 PASSCODE_CODE 配置,默认 2026)与 /unlock/[scope] 页
- ScrambleReveal 支持 slot part({length,scramble,className,settled}):打散期显示占位字符、收尾替换为交互节点,1:1 原版语义
- 首页 about 段换 c9/c2 移植:锁定点击跳解锁页、解锁显示 TikTok、长按 500ms/右键 confirm 重锁;WorkSection 按 access 过滤,解锁后 TikTok 卡(tt01/tt02 素材)出现在首位
- CDP 全流程验证:锁定→解锁→持久化→重锁 循环 + 错码抖动清空 + 卡片数 10↔11
122 lines
2.2 KiB
CSS
122 lines
2.2 KiB
CSS
@import "tailwindcss";
|
|
|
|
@theme {
|
|
--font-sans: var(--font-tiktok), sans-serif;
|
|
--font-mono: var(--font-mono), monospace;
|
|
--font-mono-2: var(--font-mono-2), monospace;
|
|
|
|
--color-l1: rgba(0, 0, 0, 1);
|
|
--color-l2: rgba(54, 54, 48, 0.6);
|
|
--color-l3: rgba(54, 54, 48, 0.32);
|
|
--color-line: rgba(54, 54, 48, 0.1);
|
|
--color-b1: rgb(251, 250, 244);
|
|
--color-be: #efede7;
|
|
--color-selection: #c0fe04;
|
|
}
|
|
|
|
:root {
|
|
--bg-color: rgb(251, 250, 244);
|
|
--text-color: rgba(0, 0, 0, 1);
|
|
--grid-dot: rgba(54, 54, 48, 0.1);
|
|
--selection-bg: #c0fe04;
|
|
|
|
/* Original label tokens (light theme): --label-1 = primary label,
|
|
--label-3 = tertiary label (link underline decoration color). */
|
|
--label: 0, 0, 0;
|
|
--label-d: 54, 54, 48;
|
|
--label-1: rgba(var(--label), 1);
|
|
--label-3: rgba(var(--label-d), 0.32);
|
|
}
|
|
|
|
html,
|
|
body {
|
|
background-color: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-family: var(--font-sans);
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100vh;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
::selection {
|
|
background-color: var(--selection-bg);
|
|
color: #000;
|
|
}
|
|
|
|
.no-scrollbar {
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
html, body {
|
|
scrollbar-width: none; /* Firefox */
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
}
|
|
html::-webkit-scrollbar, body::-webkit-scrollbar {
|
|
display: none; /* Chrome, Safari and Opera */
|
|
}
|
|
@keyframes vh-fade-in {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Hyper-space stagger text (original hsst-char / hsstFadeIn / hsstFadeOut). */
|
|
.hsst-char {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Passcode unlock screen (original ease-66 token + caret-blink). */
|
|
.ease-66 {
|
|
transition-timing-function: cubic-bezier(0.66, 0, 0.01, 1);
|
|
}
|
|
@keyframes caret-blink {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.caret-blink {
|
|
animation: caret-blink 1s step-end infinite;
|
|
}
|
|
|
|
@keyframes hsstFadeIn {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
32% {
|
|
opacity: 0.22;
|
|
}
|
|
62% {
|
|
opacity: 0.55;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
@keyframes hsstFadeOut {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
38% {
|
|
opacity: 0.62;
|
|
}
|
|
72% {
|
|
opacity: 0.28;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
}
|