전 저장소 리팩터링과 SSOT 정비
This commit is contained in:
parent
14ecbd4e7d
commit
3dfddcac6f
173 changed files with 19679 additions and 6952 deletions
31
apps/web/src/components/auth/AuthShell.tsx
Normal file
31
apps/web/src/components/auth/AuthShell.tsx
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import type { HTMLAttributes, ReactNode } from "react";
|
||||
|
||||
export type AuthShellVariant = "botanical" | "room";
|
||||
|
||||
export interface AuthShellProps extends HTMLAttributes<HTMLElement> {
|
||||
variant?: AuthShellVariant;
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
/** 로그인·온보딩·승인 대기가 공유하는 viewport 캔버스. */
|
||||
export function AuthShell({
|
||||
variant = "botanical",
|
||||
className,
|
||||
children,
|
||||
...rest
|
||||
}: AuthShellProps) {
|
||||
return (
|
||||
<main
|
||||
className={[
|
||||
"vg-auth-shell",
|
||||
`vg-auth-shell--${variant}`,
|
||||
className ?? "",
|
||||
]
|
||||
.filter(Boolean)
|
||||
.join(" ")}
|
||||
{...rest}
|
||||
>
|
||||
{children}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
85
apps/web/src/components/auth/auth-shell.css
Normal file
85
apps/web/src/components/auth/auth-shell.css
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
.vg-auth-shell {
|
||||
position: relative;
|
||||
isolation: isolate;
|
||||
inline-size: 100vw;
|
||||
max-inline-size: none;
|
||||
min-block-size: 100vh;
|
||||
min-block-size: 100dvh;
|
||||
overflow-x: clip;
|
||||
color: var(--text-body);
|
||||
background-color: var(--bg-app);
|
||||
}
|
||||
|
||||
.vg-auth-shell > * {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.vg-auth-shell.vg-auth-shell--botanical {
|
||||
background:
|
||||
var(--asset-botanical-corner) right top / min(64vw, 860px) auto no-repeat,
|
||||
radial-gradient(circle at 72% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 32rem),
|
||||
radial-gradient(circle at 28% 78%, color-mix(in srgb, var(--botanical-gold) 14%, transparent), transparent 40rem),
|
||||
var(--glass-canvas);
|
||||
}
|
||||
|
||||
.vg-auth-shell.vg-auth-shell--botanical::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
z-index: 0;
|
||||
left: -8vw;
|
||||
bottom: -90px;
|
||||
width: min(66vw, 860px);
|
||||
height: min(74vw, 980px);
|
||||
background: var(--asset-botanical-corner) left bottom / contain no-repeat;
|
||||
opacity: 0.55;
|
||||
transform: rotate(180deg);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.vg-auth-shell.vg-auth-shell--room {
|
||||
--auth-room-veil:
|
||||
linear-gradient(
|
||||
90deg,
|
||||
rgba(247, 244, 236, 0.94) 0%,
|
||||
rgba(243, 238, 227, 0.86) 48%,
|
||||
rgba(238, 231, 217, 0.72) 74%,
|
||||
rgba(232, 223, 207, 0.62) 100%
|
||||
);
|
||||
--auth-room-shade: linear-gradient(180deg, rgba(255, 253, 248, 0.08), rgba(120, 101, 72, 0.12));
|
||||
--auth-hero-text: var(--text-strong);
|
||||
--auth-hero-muted: color-mix(in srgb, var(--text-body) 88%, transparent);
|
||||
--auth-hero-surface: rgba(255, 254, 251, 0.48);
|
||||
--auth-hero-border: rgba(101, 86, 62, 0.22);
|
||||
--auth-hero-chip: rgba(255, 254, 251, 0.62);
|
||||
background:
|
||||
var(--auth-room-veil),
|
||||
var(--asset-login-room) center / cover no-repeat;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .vg-auth-shell.vg-auth-shell--room {
|
||||
--auth-room-veil:
|
||||
linear-gradient(
|
||||
90deg,
|
||||
rgba(7, 16, 14, 0.84) 0%,
|
||||
rgba(10, 21, 19, 0.72) 48%,
|
||||
rgba(10, 21, 19, 0.55) 74%,
|
||||
rgba(10, 21, 19, 0.62) 100%
|
||||
);
|
||||
--auth-room-shade: linear-gradient(180deg, rgba(3, 9, 8, 0.18), rgba(3, 9, 8, 0.42));
|
||||
--auth-hero-text: #edf4f2;
|
||||
--auth-hero-muted: rgba(237, 244, 242, 0.72);
|
||||
--auth-hero-surface: rgba(237, 244, 242, 0.08);
|
||||
--auth-hero-border: rgba(255, 255, 255, 0.14);
|
||||
--auth-hero-chip: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.vg-auth-shell.vg-auth-shell--botanical::after {
|
||||
left: -30vw;
|
||||
bottom: -24px;
|
||||
width: 110vw;
|
||||
height: 120vw;
|
||||
opacity: 0.42;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue