diff --git a/admin/scripts/card.mjs b/admin/scripts/card.mjs index 9b5827c..5d8e643 100644 --- a/admin/scripts/card.mjs +++ b/admin/scripts/card.mjs @@ -9,7 +9,7 @@ import { execFileSync } from 'node:child_process' import { existsSync, mkdirSync, readFileSync, rmSync } from 'node:fs' import { resolve } from 'node:path' -const SLIDES = { tarot: 5, ootd: 6 } +const SLIDES = { tarot: 5, ootd: 6, intro: 8 } // 기본 문구가 서비스 데이터 그대로라 Claude 기획이 꼭 필요한 템플릿 (src/cards/templates.tsx autoPlan) const AUTO_PLAN = ['tarot'] // src/cards/themes.ts THEMES 의 id diff --git a/admin/src/assets/intro/shot-gak.webp b/admin/src/assets/intro/shot-gak.webp new file mode 100644 index 0000000..67d2fc4 Binary files /dev/null and b/admin/src/assets/intro/shot-gak.webp differ diff --git a/admin/src/assets/intro/shot-home.webp b/admin/src/assets/intro/shot-home.webp new file mode 100644 index 0000000..b3ede4d Binary files /dev/null and b/admin/src/assets/intro/shot-home.webp differ diff --git a/admin/src/assets/intro/shot-sky.webp b/admin/src/assets/intro/shot-sky.webp new file mode 100644 index 0000000..f979f43 Binary files /dev/null and b/admin/src/assets/intro/shot-sky.webp differ diff --git a/admin/src/assets/intro/shot-week.webp b/admin/src/assets/intro/shot-week.webp new file mode 100644 index 0000000..b9e8f6c Binary files /dev/null and b/admin/src/assets/intro/shot-week.webp differ diff --git a/admin/src/cards/cards.css b/admin/src/cards/cards.css index 8924ca3..0e3ba12 100644 --- a/admin/src/cards/cards.css +++ b/admin/src/cards/cards.css @@ -480,3 +480,160 @@ font-size: 27px; line-height: 1.4; } + +/* 서비스 소개 (intro) */ +.slide.intro { + --accent: var(--rust); + background: radial-gradient(80% 50% at 88% 98%, var(--stage), transparent 80%), var(--paper); +} +.intro .intro-title { + position: absolute; + top: 222px; + left: 80px; + right: 80px; + z-index: 2; + font: 98px/1.13 Jua, sans-serif; + letter-spacing: -3px; + word-break: keep-all; +} +.intro .intro-sub { + position: absolute; + top: 485px; + left: 80px; + right: 80px; + z-index: 2; + font: 650 44px/1.38 'Pretendard Variable', Pretendard, sans-serif; + letter-spacing: -1.5px; + word-break: keep-all; +} +.intro .intro-sub strong { font-weight: 800; } +.intro-cover .intro-title { top: 250px; font-size: 106px; } +.intro-cover .intro-sub { top: 540px; font-size: 46px; } +.intro-cover-stage { + position: absolute; + left: 115px; + top: 760px; + width: 850px; + height: 390px; + border-radius: 50%; + background: var(--stage); +} +.intro .intro-character { + position: absolute; + width: 260px; + height: 260px; + object-fit: contain; + z-index: 2; + filter: drop-shadow(0 18px 14px #28304a22); +} +.intro-cover .rabbit { left: 250px; top: 810px; transform: rotate(-9deg); } +.intro-cover .bear { right: 235px; top: 830px; transform: rotate(8deg); } +.intro .intro-turn { + position: absolute; + bottom: 90px; + right: 80px; + font: 700 38px/1.2 'Pretendard Variable', Pretendard, sans-serif; + color: var(--rust); +} +.intro-problem .intro-cloud { position: absolute; top: 230px; left: 80px; width: 140px; height: 140px; object-fit: contain; } +.intro-problem .intro-title { top: 425px; font-size: 88px; line-height: 1.2; } +.intro-problem .intro-sub { top: 715px; font-size: 48px; } +.intro-answer { + position: absolute; + top: 995px; + left: 80px; + right: 80px; + display: flex; + align-items: center; + gap: 32px; + padding: 28px 38px; + border-radius: 36px; + background: var(--stage); + font: 700 52px/1.2 'Pretendard Variable', Pretendard, sans-serif; + color: var(--rust); +} +.intro-answer img { width: 92px; height: 92px; object-fit: contain; } +.intro-scores .intro-title { font-size: 88px; } +.intro-scores .intro-scores { + position: absolute; + top: 555px; + left: 80px; + right: 80px; + display: grid; + gap: 20px; +} +.intro-score { + display: flex; + align-items: center; + justify-content: space-between; + padding: 24px 40px; + border-radius: 28px; + background: var(--stage); + font: 700 48px/1.1 'Pretendard Variable', Pretendard, sans-serif; +} +.intro-score b { font: 68px/1 Jua, sans-serif; } +.intro-score.rank-1 { background: var(--rust); color: var(--paper); } +.intro-score.rank-2 { background: var(--orange); color: var(--paper); } +.intro-score.rank-3 { background: var(--soft); color: var(--ink); } +.intro-score.rank-4 { color: var(--muted); } +.intro-scores .intro-sub { top: 1175px; font-size: 40px; } +.intro-home .intro-title, +.intro-sky .intro-title { top: 205px; } +.intro-home .intro-sub, +.intro-sky .intro-sub { top: 450px; font-size: 42px; } +.intro-phone { + position: absolute; + overflow: hidden; + width: 390px; + height: 844px; + border: 8px solid var(--ink); + border-radius: 44px; + background: var(--paper); + box-shadow: 0 18px 0 var(--soft), 0 30px 58px #28304a28; +} +.intro-phone img { display: block; width: 100%; height: 100%; object-fit: cover; } +.intro-phone.home, +.intro-phone.sky { top: 620px; left: 345px; } +.intro-kinds .intro-title { top: 205px; font-size: 88px; } +.intro-gak-grid { + position: absolute; + top: 525px; + left: 80px; + right: 80px; + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 16px; +} +.intro-gak { + height: 186px; + border-radius: 28px; + background: var(--stage); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + gap: 12px; +} +.intro-gak img { width: 80px; height: 80px; object-fit: contain; } +.intro-gak span { font: 700 30px/1.2 'Pretendard Variable', Pretendard, sans-serif; white-space: nowrap; } +.intro-kinds .intro-sub { top: 1195px; font-size: 36px; } +.intro-more .intro-title { top: 215px; font-size: 88px; } +.intro-more .intro-sub { top: 455px; font-size: 44px; } +.intro-more-icons { position: absolute; top: 750px; left: 90px; display: flex; flex-direction: column; gap: 34px; } +.intro-more-icons img { width: 105px; height: 105px; object-fit: contain; } +.intro-phone.week { top: 705px; left: 510px; width: 275px; height: 595px; border-width: 6px; border-radius: 34px; } +.intro .intro-note { + position: absolute; + left: 80px; + right: 80px; + font: 650 38px/1.35 'Pretendard Variable', Pretendard, sans-serif; + letter-spacing: -1px; + word-break: keep-all; +} +.intro-more .intro-note { top: 1205px; width: 880px; z-index: 2; padding: 12px 18px; border-radius: 18px; background: var(--paper); } +.intro-cta .intro-title { top: 220px; font-size: 105px; } +.intro-cta .intro-sub { top: 470px; font-size: 48px; color: var(--rust); } +.intro-phone.gak { top: 650px; left: 370px; width: 280px; height: 560px; border-width: 6px; border-radius: 34px; } +.intro-cta .rabbit { width: 175px; height: 175px; left: 155px; top: 925px; transform: rotate(-8deg); } +.intro-cta .bear { width: 175px; height: 175px; right: 160px; top: 950px; transform: rotate(8deg); } +.intro-cta .intro-note { top: 1250px; font-size: 36px; text-align: center; } diff --git a/admin/src/cards/templates.tsx b/admin/src/cards/templates.tsx index 1676b5d..80634fe 100644 --- a/admin/src/cards/templates.tsx +++ b/admin/src/cards/templates.tsx @@ -1,10 +1,14 @@ import type { ReactNode } from 'react' import tarotBack from '../assets/tarot-back.webp' +import shotHome from '../assets/intro/shot-home.webp' +import shotGak from '../assets/intro/shot-gak.webp' +import shotSky from '../assets/intro/shot-sky.webp' +import shotWeek from '../assets/intro/shot-week.webp' import type { CardData } from './data' import { Frame, Lines } from './Frame' import { tidy } from './text' import { DEFAULT_STYLE, ootdBand, ootdOutfits, styleLabel } from './ootd' -import { gakArt } from './gaks' +import { gakArt, gakByCode } from './gaks' // 대주제(skin)마다 한 번 만든 배경 그림 (npm run gen-image -- tarot-bg ). 없으면 민무늬 배경 const TAROT_BG = import.meta.glob('../assets/tarot-bg/*.webp', { eager: true, import: 'default' }) @@ -34,7 +38,7 @@ export type Template = { /** 처음 열 때 보여 주는 미리 만든 예시 문구 (그림도 미리 만들어 둠). 만들기를 누르면 그날 카드로 바뀐다 */ example?: Copy /** 날씨각 피드 포스트 제목·설명 */ - post: (d: CardData, c: Copy) => { title: string; caption: string } + post: (d: CardData, c: Copy) => { title: string; caption: string; hashtags?: string } } @@ -53,7 +57,11 @@ const ootd: Template = { defaults: () => ({ title: '', style: DEFAULT_STYLE }), // 예시: 17~22도 캐주얼 (Codex 그림 6장) example: { style: 'casual', band: 'mild', theme: 'berry' }, - post: (d, c) => ({ title: `오늘의 코디 · ${styleLabel(c.style)}`, caption: `낮 최고 ${d.maxC}도, 20대부터 40대~까지 오늘 입을 옷을 넘겨 보세요` }), + post: (d, c) => ({ + title: `오늘의 코디 · ${styleLabel(c.style)}`, + caption: `낮 최고 ${d.maxC}도, 20대부터 40대~까지 오늘 입을 옷을 넘겨 보세요`, + hashtags: '#날씨각 #오늘의코디 #OOTD #데일리룩 #옷차림 #코디추천 #날씨 #오늘날씨 #서울날씨 #일상', + }), warnings: (d, c) => { const missing = ootdOutfits(d.maxC, c.style).filter((o) => !o.image) const id = `${ootdBand(d.maxC).id}` @@ -89,7 +97,11 @@ const ootd: Template = { const tarot: Template = { id: 'tarot', - post: (_d, c) => ({ title: c.title.replaceAll('\n', ' ').replaceAll('*', ''), caption: `Q. ${c.question} 1·2·3 중 한 장을 골라 보세요` }), + post: (_d, c) => ({ + title: c.title.replaceAll('\n', ' ').replaceAll('*', ''), + caption: `Q. ${c.question} 1·2·3 중 한 장을 골라 보세요`, + hashtags: '#날씨각 #날씨타로 #타로 #오늘의타로 #오늘의운세 #날씨 #오늘날씨 #서울날씨 #오늘뭐하지 #일상', + }), name: '날씨 타로', autoPlan: true, about: '주제를 바꿔 가며 · 3장 중 고르기, 뒷면은 오늘 날씨', @@ -218,6 +230,102 @@ const tarot: Template = { }, } -export const TEMPLATES: Template[] = [tarot, ootd] +const INTRO_GAK_CODES = ['walk', 'camping', 'fishing', 'chimaek', 'jjamppong', 'carwash', 'laundry', 'vent', 'stars', 'hiking', 'date', 'golf'] + +const intro: Template = { + id: 'intro', + name: '날씨각 소개', + about: '날씨를 할 일로 바꿔 주는 서비스 소개 · 8장', + how: [ + '소개 카드는 문구가 고정되어 있고 Claude 기획을 쓰지 않는다. 칸에서 직접 고칠 수 있다.', + '앱 화면은 src/assets/intro의 스크린샷 4장을 쓴다. 각 이름과 아이콘은 서비스의 GAK_DECK에서 가져온다.', + '날씨 데이터와 점수 계산은 쓰지 않는다. 화면의 예시 점수는 소개용 문구다.', + ], + fields: [ + { key: 't1', label: '1장 제목' }, { key: 's1', label: '1장 부제' }, + { key: 't2', label: '2장 제목' }, { key: 's2', label: '2장 부제' }, + { key: 't3', label: '3장 제목' }, { key: 'g1', label: '3장 점수 1' }, + { key: 'g2', label: '3장 점수 2' }, { key: 'g3', label: '3장 점수 3' }, + { key: 'g4', label: '3장 점수 4' }, { key: 's3', label: '3장 부제' }, + { key: 't4', label: '4장 제목' }, { key: 's4', label: '4장 부제' }, + { key: 't5', label: '5장 제목' }, { key: 's5', label: '5장 부제' }, + { key: 't6', label: '6장 제목' }, { key: 's6', label: '6장 부제' }, + { key: 't7', label: '7장 제목' }, { key: 's7', label: '7장 부제' }, { key: 'n7', label: '7장 안내' }, + { key: 't8', label: '8장 제목' }, { key: 's8', label: '8장 링크' }, { key: 'n8', label: '8장 안내' }, + ], + defaults: () => ({ + theme: 'sky', + t1: '오늘 뭐 하기\n좋은 날이지?', s1: '날씨를 *할 일*로 바꿔 주는 앱, 날씨각', + t2: '"흐림, 19도, 습도 70%"\n…그래서 오늘 뭐 하죠?', s2: '숫자만 보면 모르겠는 날,\n날씨각은 바로 답해요', + t3: '오늘 날씨에 맞는 일을\n*점수*로', g1: '한강각 91', g2: '드라이브각 89', g3: '세차각 72', g4: '빨래각 45', s3: "'각' = 그걸 하기 딱 좋은 때", + t4: '지금 내 동네\n1위는?', s4: '아침·지금·저녁으로 보여 주고,\n동네를 바꾸면 점수도 바뀌어요', + t5: '밖에서 놀기부터\n집안일까지 *68가지*', s5: '밖에서 놀기 · 먹고 마시기 · 집안일', + t6: '오늘 노을,\n몇 시에 어디서?', s6: '노을 점수 · 피크 시각 · 골든아워\n가까운 노을 명소까지', + t7: '주말 행사 · 단풍\n동네 사람들 이야기', s7: '가까운 축제, 단풍 시기,\n우리 동네 날씨 한마디', n7: "'내 각'은 내가 정한 조건으로 점수를 매겨요", + t8: '설치 없이 바로,\n*무료*', s8: '프로필 링크 → weather.o2o.kr', n8: '매일 아침 날씨 타로 · 오늘의 코디도 여기서', + }), + post: () => ({ + title: '날씨각이 뭐예요?', + caption: "날씨각은 오늘 날씨에 맞는 '할 일'을 점수로 알려 주는 날씨 서비스예요. 세차각·빨래각·러닝각… 지금 내 동네 1위 각은 프로필 링크에서 👉", + hashtags: '#날씨각 #날씨 #오늘날씨 #날씨앱 #오늘뭐하지 #주말뭐하지 #노을 #노을맛집 #한강 #드라이브 #산책 #날씨타로 #오늘의코디 #서울날씨 #주말나들이 #가을 #일상', + }), + slides: (_d, c) => { + const phone = (src: string, name: string) =>
+ const head = (text: string, name = '') =>

+ const sub = (text: string, name = '') =>

+ const frame = (page: number, className: string, children: ReactNode) => {children} + return [ + frame(0, 'cover', <> + {head(c.t1)}{sub(c.s1)} +