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>