feat: add child motion entry and fix auth env
Some checks failed
CI / verify (push) Has been cancelled
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
467
src/index.css
467
src/index.css
@@ -5623,6 +5623,473 @@ button {
|
||||
color: rgba(255, 255, 255, 0.9) !important;
|
||||
}
|
||||
|
||||
.child-motion-demo {
|
||||
--child-motion-bg: #07151c;
|
||||
--child-motion-panel: rgba(6, 24, 30, 0.64);
|
||||
--child-motion-panel-border: rgba(178, 239, 220, 0.25);
|
||||
--child-motion-text: #eefcf7;
|
||||
--child-motion-soft: rgba(238, 252, 247, 0.7);
|
||||
--child-motion-green: #5ff08f;
|
||||
--child-motion-sky: #8fd8ff;
|
||||
display: grid;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
background:
|
||||
radial-gradient(circle at 18% 14%, rgba(143, 216, 255, 0.24), transparent 32%),
|
||||
radial-gradient(circle at 82% 22%, rgba(95, 240, 143, 0.18), transparent 30%),
|
||||
linear-gradient(180deg, #092433 0%, var(--child-motion-bg) 54%, #0a1f18 100%);
|
||||
color: var(--child-motion-text);
|
||||
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
|
||||
}
|
||||
|
||||
@supports (height: 100dvh) {
|
||||
.child-motion-demo {
|
||||
height: 100dvh;
|
||||
min-height: 100dvh;
|
||||
}
|
||||
}
|
||||
|
||||
.child-motion-stage {
|
||||
position: relative;
|
||||
width: min(100vw, calc(100vh * 16 / 9));
|
||||
height: min(100vh, calc(100vw * 9 / 16));
|
||||
overflow: hidden;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(16, 64, 86, 0.86), rgba(9, 42, 39, 0.9)),
|
||||
var(--child-motion-bg);
|
||||
box-shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
|
||||
touch-action: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@supports (height: 100dvh) {
|
||||
.child-motion-stage {
|
||||
width: min(100vw, calc(100dvh * 16 / 9));
|
||||
height: min(100dvh, calc(100vw * 9 / 16));
|
||||
}
|
||||
}
|
||||
|
||||
.child-motion-camera-layer {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
background:
|
||||
radial-gradient(circle at 50% 33%, rgba(255, 255, 255, 0.12), transparent 28%),
|
||||
linear-gradient(110deg, rgba(255, 255, 255, 0.06) 0 12%, transparent 12% 20%, rgba(255, 255, 255, 0.04) 20% 31%, transparent 31% 100%);
|
||||
filter: blur(7px) saturate(0.8);
|
||||
opacity: 0.62;
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.child-motion-camera-state {
|
||||
position: absolute;
|
||||
top: 18%;
|
||||
left: 50%;
|
||||
z-index: 7;
|
||||
transform: translateX(-50%);
|
||||
border: 1px solid rgba(238, 252, 247, 0.2);
|
||||
border-radius: 999px;
|
||||
background: rgba(6, 24, 30, 0.52);
|
||||
color: rgba(238, 252, 247, 0.82);
|
||||
padding: 0.45rem 0.9rem;
|
||||
font-size: clamp(0.68rem, 1.35vw, 0.84rem);
|
||||
font-weight: 800;
|
||||
backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.child-motion-floor {
|
||||
position: absolute;
|
||||
right: -8%;
|
||||
bottom: -19%;
|
||||
left: -8%;
|
||||
height: 47%;
|
||||
border-radius: 50% 50% 0 0;
|
||||
background:
|
||||
radial-gradient(ellipse at 50% 8%, rgba(190, 255, 220, 0.22), transparent 36%),
|
||||
linear-gradient(180deg, rgba(24, 86, 67, 0.84), rgba(7, 43, 34, 0.96));
|
||||
box-shadow: inset 0 22px 70px rgba(255, 255, 255, 0.07);
|
||||
}
|
||||
|
||||
.child-motion-hud {
|
||||
position: absolute;
|
||||
z-index: 8;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: clamp(0.6rem, 1.8vw, 1rem);
|
||||
border: 1px solid var(--child-motion-panel-border);
|
||||
border-radius: clamp(0.75rem, 2vw, 1.25rem);
|
||||
background: var(--child-motion-panel);
|
||||
box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.child-motion-hud--top {
|
||||
top: 4.2%;
|
||||
left: 50%;
|
||||
width: min(72%, 48rem);
|
||||
min-height: clamp(4.2rem, 11vh, 6.25rem);
|
||||
transform: translateX(-50%);
|
||||
padding: clamp(0.65rem, 1.8vw, 1rem) clamp(0.8rem, 2.2vw, 1.25rem);
|
||||
}
|
||||
|
||||
.child-motion-hud h1 {
|
||||
margin: 0;
|
||||
color: var(--child-motion-text);
|
||||
font-size: clamp(1.2rem, 3.2vw, 2rem);
|
||||
font-weight: 900;
|
||||
line-height: 1.08;
|
||||
}
|
||||
|
||||
.child-motion-hud p {
|
||||
margin: 0.28rem 0 0;
|
||||
color: var(--child-motion-soft);
|
||||
font-size: clamp(0.72rem, 1.45vw, 0.98rem);
|
||||
font-weight: 700;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.child-motion-step-count,
|
||||
.child-motion-progress {
|
||||
display: inline-flex;
|
||||
width: clamp(2.7rem, 7vw, 4rem);
|
||||
height: clamp(2.7rem, 7vw, 4rem);
|
||||
flex: 0 0 auto;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1px solid rgba(238, 252, 247, 0.2);
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
color: var(--child-motion-text);
|
||||
font-size: clamp(0.72rem, 1.45vw, 0.95rem);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.child-motion-ring {
|
||||
position: absolute;
|
||||
bottom: 20.5%;
|
||||
z-index: 3;
|
||||
width: clamp(5.8rem, 13vw, 9rem);
|
||||
aspect-ratio: 1;
|
||||
transform: translateX(-50%) rotateX(62deg);
|
||||
border-radius: 999px;
|
||||
background:
|
||||
conic-gradient(
|
||||
from -90deg,
|
||||
rgba(255, 255, 255, 0.95) 0 var(--child-motion-ring-progress),
|
||||
rgba(95, 240, 143, 0.18) var(--child-motion-ring-progress) 360deg
|
||||
);
|
||||
box-shadow:
|
||||
0 0 28px rgba(95, 240, 143, 0.42),
|
||||
inset 0 0 26px rgba(255, 255, 255, 0.18);
|
||||
}
|
||||
|
||||
.child-motion-ring::before {
|
||||
position: absolute;
|
||||
inset: 14%;
|
||||
border-radius: inherit;
|
||||
background: rgba(8, 44, 36, 0.94);
|
||||
content: '';
|
||||
}
|
||||
|
||||
.child-motion-ring__core {
|
||||
position: absolute;
|
||||
inset: 34%;
|
||||
border-radius: 999px;
|
||||
background: var(--child-motion-green);
|
||||
opacity: 0.28;
|
||||
}
|
||||
|
||||
.child-motion-ring--active {
|
||||
animation: child-motion-ring-pulse 0.78s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
@keyframes child-motion-ring-pulse {
|
||||
from {
|
||||
filter: brightness(1);
|
||||
}
|
||||
|
||||
to {
|
||||
filter: brightness(1.25);
|
||||
}
|
||||
}
|
||||
|
||||
.child-motion-avatar {
|
||||
position: absolute;
|
||||
bottom: 24%;
|
||||
z-index: 5;
|
||||
width: clamp(3.4rem, 7vw, 5.6rem);
|
||||
height: clamp(6rem, 13vw, 10rem);
|
||||
transform: translateX(-50%);
|
||||
transition: left 260ms ease, transform 220ms ease;
|
||||
}
|
||||
|
||||
.child-motion-avatar--jumping {
|
||||
transform: translate(-50%, -14%);
|
||||
}
|
||||
|
||||
.child-motion-avatar__head,
|
||||
.child-motion-avatar__body,
|
||||
.child-motion-avatar__arm,
|
||||
.child-motion-avatar__leg {
|
||||
position: absolute;
|
||||
display: block;
|
||||
background: rgba(7, 18, 24, 0.82);
|
||||
box-shadow: 0 0 24px rgba(143, 216, 255, 0.18);
|
||||
}
|
||||
|
||||
.child-motion-avatar__head {
|
||||
top: 0;
|
||||
left: 50%;
|
||||
width: 34%;
|
||||
aspect-ratio: 1;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.child-motion-avatar__body {
|
||||
top: 27%;
|
||||
left: 50%;
|
||||
width: 42%;
|
||||
height: 36%;
|
||||
transform: translateX(-50%);
|
||||
border-radius: 999px 999px 45% 45%;
|
||||
}
|
||||
|
||||
.child-motion-avatar__arm {
|
||||
top: 33%;
|
||||
width: 15%;
|
||||
height: 34%;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.child-motion-avatar__arm--left {
|
||||
left: 17%;
|
||||
transform: rotate(18deg);
|
||||
}
|
||||
|
||||
.child-motion-avatar__arm--right {
|
||||
right: 17%;
|
||||
transform: rotate(-18deg);
|
||||
}
|
||||
|
||||
.child-motion-avatar__leg {
|
||||
bottom: 0;
|
||||
width: 15%;
|
||||
height: 34%;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.child-motion-avatar__leg--left {
|
||||
left: 36%;
|
||||
transform: rotate(7deg);
|
||||
}
|
||||
|
||||
.child-motion-avatar__leg--right {
|
||||
right: 36%;
|
||||
transform: rotate(-7deg);
|
||||
}
|
||||
|
||||
.child-motion-gesture-guide {
|
||||
position: absolute;
|
||||
inset: 20% 22% 19%;
|
||||
z-index: 4;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.child-motion-gesture-guide__wave,
|
||||
.child-motion-gesture-guide__jump {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 38%;
|
||||
display: inline-flex;
|
||||
width: clamp(4.5rem, 11vw, 8rem);
|
||||
aspect-ratio: 1;
|
||||
transform: translate(-50%, -50%);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 2px solid rgba(95, 240, 143, 0.64);
|
||||
border-radius: 999px;
|
||||
background: rgba(95, 240, 143, 0.1);
|
||||
color: var(--child-motion-text);
|
||||
font-size: clamp(1rem, 2.4vw, 1.55rem);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.child-motion-gesture-guide__hand {
|
||||
position: absolute;
|
||||
top: 28%;
|
||||
width: clamp(4rem, 9vw, 7rem);
|
||||
aspect-ratio: 1;
|
||||
border: 2px dashed rgba(95, 240, 143, 0.58);
|
||||
border-radius: 999px;
|
||||
animation: child-motion-hand-guide 1.1s ease-in-out infinite alternate;
|
||||
}
|
||||
|
||||
.child-motion-gesture-guide__hand--left {
|
||||
left: 22%;
|
||||
}
|
||||
|
||||
.child-motion-gesture-guide__hand--right {
|
||||
right: 22%;
|
||||
}
|
||||
|
||||
@keyframes child-motion-hand-guide {
|
||||
from {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translateY(-10%);
|
||||
}
|
||||
}
|
||||
|
||||
.child-motion-gesture-guide__trail {
|
||||
position: absolute;
|
||||
width: 0.8rem;
|
||||
height: 0.8rem;
|
||||
transform: translate(-50%, -50%);
|
||||
border-radius: 999px;
|
||||
background: #b9ffd0;
|
||||
box-shadow: 0 0 16px rgba(95, 240, 143, 0.56);
|
||||
}
|
||||
|
||||
.child-motion-floating-reward {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 34%;
|
||||
z-index: 9;
|
||||
transform: translateX(-50%);
|
||||
color: #ffffff;
|
||||
font-size: clamp(1.4rem, 4vw, 2.4rem);
|
||||
font-weight: 900;
|
||||
text-shadow: 0 4px 26px rgba(0, 0, 0, 0.42);
|
||||
animation: child-motion-reward-rise 0.72s ease-out forwards;
|
||||
}
|
||||
|
||||
@keyframes child-motion-reward-rise {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translate(-50%, 22%);
|
||||
}
|
||||
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translate(-50%, -18%);
|
||||
}
|
||||
}
|
||||
|
||||
.child-motion-calibration {
|
||||
position: absolute;
|
||||
right: 3.2%;
|
||||
bottom: 4%;
|
||||
z-index: 8;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, auto));
|
||||
gap: 0.45rem;
|
||||
max-width: 82%;
|
||||
border: 1px solid var(--child-motion-panel-border);
|
||||
border-radius: 999px;
|
||||
background: var(--child-motion-panel);
|
||||
padding: 0.45rem;
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.child-motion-calibration div {
|
||||
display: grid;
|
||||
min-width: clamp(3.2rem, 7vw, 4.8rem);
|
||||
gap: 0.08rem;
|
||||
justify-items: center;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
padding: 0.36rem 0.55rem;
|
||||
}
|
||||
|
||||
.child-motion-calibration span {
|
||||
color: var(--child-motion-soft);
|
||||
font-size: clamp(0.55rem, 1.2vw, 0.72rem);
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.child-motion-calibration strong {
|
||||
color: var(--child-motion-text);
|
||||
font-size: clamp(0.72rem, 1.5vw, 0.95rem);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.child-motion-start-panel {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 53%;
|
||||
z-index: 10;
|
||||
display: flex;
|
||||
transform: translate(-50%, -50%);
|
||||
align-items: center;
|
||||
gap: 0.85rem;
|
||||
border: 1px solid rgba(178, 239, 220, 0.32);
|
||||
border-radius: 1.4rem;
|
||||
background: rgba(6, 24, 30, 0.7);
|
||||
padding: clamp(0.85rem, 2vw, 1.15rem);
|
||||
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
|
||||
.child-motion-start-panel button {
|
||||
min-width: clamp(8rem, 18vw, 12rem);
|
||||
min-height: clamp(3rem, 7vw, 4.2rem);
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, #5ff08f, #8fd8ff);
|
||||
color: #062018;
|
||||
font-size: clamp(1rem, 2.5vw, 1.4rem);
|
||||
font-weight: 950;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 16px 44px rgba(95, 240, 143, 0.28);
|
||||
}
|
||||
|
||||
.child-motion-start-panel span {
|
||||
color: var(--child-motion-text);
|
||||
font-size: clamp(1rem, 2vw, 1.25rem);
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
.child-motion-orientation-tip {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 30;
|
||||
display: none;
|
||||
place-items: center;
|
||||
background: #07151c;
|
||||
color: var(--child-motion-text);
|
||||
font-size: 1.25rem;
|
||||
font-weight: 900;
|
||||
}
|
||||
|
||||
@media (orientation: portrait) and (max-width: 920px) {
|
||||
.child-motion-orientation-tip {
|
||||
display: grid;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.child-motion-hud--top {
|
||||
width: 88%;
|
||||
}
|
||||
|
||||
.child-motion-calibration {
|
||||
left: 50%;
|
||||
right: auto;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
width: min(92%, 35rem);
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.platform-work-detail {
|
||||
border-radius: 1.2rem;
|
||||
|
||||
Reference in New Issue
Block a user