show credits

This commit is contained in:
jaehwang committed 2026-09-16 10:46:33 +09:00
1 parent d59304f833
commit 49b4178453
8 files changed
+115 -13

No files matched your search

+2
View File
@@ -1,6 +1,7 @@
import type { Metadata } from "next";
import Link from "next/link";
import Ado2Logo from "@/components/ado2-logo";
import AccountBadge from "@/components/account-badge";
import AuthGate from "@/components/auth-gate";
import NavLink from "@/components/nav-link";
import { FEATURES } from "@/lib/features";
@@ -19,6 +20,7 @@ export default function Ado2Layout({ children }: { children: React.ReactNode })
<Ado2Logo height={20} />
<span className="sidebar-product">MOVING POSTER</span>
</Link>
<AccountBadge />
</div>
<nav className="sidebar-menu">
<NavLink href="/" icon="video">무빙포스터</NavLink>
+2 -1
View File
@@ -5,6 +5,7 @@ import Link from "next/link";
import { useRouter } from "next/navigation";
import { apiFetch, type Job } from "@/lib/api";
import { useMe } from "@/lib/auth";
import { FEATURES } from "@/lib/features";
import { GATE_META, type PlayreelJob } from "@/lib/playreel";
/* 무빙포스터 진입 — 두 갈래 (MOVING_POSTER_ENTRY_PLAN.md §1·§5) */
@@ -64,7 +65,7 @@ export default function HomePage() {
<p className="page-subtitle">가진 것에 따라 고르세요. 둘 다 9:16 세로 영상으로 완성됩니다.</p>
<div className="entry-stack">
{ENTRIES.map((e) => (
{ENTRIES.filter((e) => FEATURES.playreelEntry || e.href !== "/playreel").map((e) => (
<div key={e.href} className={`card entry${e.hot ? " entry--hot" : ""}`}>
{e.badge && <span className="entry-badge">{e.badge}</span>}
<div className="entry-head">
+7 -1
View File
@@ -6,6 +6,8 @@ import { useRouter } from "next/navigation";
import PosterDropzone from "@/components/poster-dropzone";
import { useRequireLogin } from "@/components/auth-gate";
import { apiFetch } from "@/lib/api";
import { refreshMe } from "@/lib/auth";
import { FEATURES } from "@/lib/features";
export default function HomePage() {
const router = useRouter();
@@ -26,6 +28,8 @@ export default function HomePage() {
fd.append("poster", file);
fd.append("name", name);
const { id } = await apiFetch<{ id: string }>("/api/f1/jobs", { method: "POST", body: fd });
// 남은 개수가 하나 줄었다
refreshMe();
router.push(`/poster/${id}`);
} catch (e) {
setError((e as Error).message);
@@ -51,7 +55,9 @@ export default function HomePage() {
<button className="btn-cta btn-lg" disabled={!file || busy} onClick={submit}>
{busy ? "업로드 중…" : "숏폼 만들기"}
</button>
<p className="note">공연 상품페이지 주소가 있나요? <Link href="/playreel">상품페이지로 시작하면 캐스팅·일정까지 담깁니다 →</Link></p>
{FEATURES.playreelEntry && (
<p className="note">공연 상품페이지 주소가 있나요? <Link href="/playreel">상품페이지로 시작하면 캐스팅·일정까지 담깁니다 →</Link></p>
)}
</div>
</div>
+3 -1
View File
@@ -7,7 +7,7 @@ import { apiFetch } from "@/lib/api";
import { GATE_META, parseGoodsId, type PlayreelJob } from "@/lib/playreel";
import { AutoApprovePanel } from "@/components/auto-approve";
import { useRequireLogin } from "@/components/auth-gate";
import { useMe } from "@/lib/auth";
import { refreshMe, useMe } from "@/lib/auth";
const STATUS_LABEL: Record<string, string> = {
queued: "대기 중", running: "만드는 중", awaiting_review: "검수 대기", failed: "실패", done: "완료",
@@ -50,6 +50,8 @@ export default function PlayreelStartPage() {
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ url: url.trim() }),
});
// 남은 개수가 하나 줄었다
refreshMe();
router.push(`/playreel/${id}`);
} catch (e) {
setError((e as Error).message);
+35
View File
@@ -103,6 +103,41 @@ body { margin: 0; -webkit-font-smoothing: antialiased; letter-spacing: -0.006em;
z-index: 50;
}
.sidebar-logo { padding: 1.5rem 1.5rem 0.5rem; }
/* 로고 아래 로그인 상태 */
.account-badge {
display: flex;
align-items: baseline;
gap: 0.5rem;
margin-top: 0.6rem;
min-width: 0;
}
.account-badge-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: var(--text-xs);
color: var(--color-text-gray-400);
}
.account-badge-quota {
flex: none;
font-size: var(--text-xs);
font-weight: 700;
color: var(--color-mint);
}
.account-badge-link {
flex: none;
padding: 0;
border: none;
background: none;
cursor: pointer;
font-family: var(--font);
font-size: var(--text-xs);
color: var(--color-mint);
}
.account-badge-link:hover { text-decoration: underline; }
.sidebar-menu { flex: 1; padding: 0 0.75rem; margin-top: 1rem; overflow-y: auto; }
.sidebar-item {
display: flex;