feat: 날씨각 캐릭터 보송·말랑(nalssigak-shorts Three.js)을 3D 릴스·소개 카드에, 카드에서 폰 프레임·스크린샷 제거(3D 스틸 무대·순위·기능 타일)

This commit is contained in:
minaChoi committed 2026-10-24 20:26:03 +09:00
1 parent 615dd27404
commit f2eed74e9d
16 files changed
+265 -57

No files matched your search

+40 -14
View File
@@ -1,9 +1,10 @@
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 stillDay from '../assets/intro/still-day.webp'
import bosong from '../assets/intro/bosong.webp'
import malang from '../assets/intro/malang.webp'
import stillSunset from '../assets/intro/still-sunset.webp'
import stillNight from '../assets/intro/still-night.webp'
import type { CardData } from './data'
import { Frame, Lines } from './Frame'
import { tidy } from './text'
@@ -270,7 +271,9 @@ const intro: Template = {
hashtags: '#날씨각 #날씨 #오늘날씨 #날씨앱 #앱인토스 #토스 #오늘뭐하지 #주말뭐하지 #노을 #노을맛집 #한강 #드라이브 #산책 #날씨타로 #오늘의코디 #서울날씨 #주말나들이 #가을 #일상',
}),
slides: (_d, c) => {
const phone = (src: string, name: string) => <div className={`intro-phone ${name}`}><img src={src} alt="" /></div>
// 3D 릴스 장면 스틸을 둥근 무대에 (폰 프레임·앱 스크린샷은 쓰지 않는다)
const stage = (src: string, name: string, children?: ReactNode) => <div className={`intro-stage ${name}`}><img src={src} alt="" />{children}</div>
const chars = <><img className="intro-character rabbit" src={bosong} alt="" /><img className="intro-character bear" src={malang} alt="" /></>
const head = (text: string, name = '') => <h1 className={`intro-title ${name}`}><Lines text={tidy(text)} /></h1>
const sub = (text: string, name = '') => <p className={`intro-sub ${name}`}><Lines text={tidy(text)} /></p>
const frame = (page: number, className: string, children: ReactNode) => <Frame page={page} total={8} theme={c.theme || 'sky'} className={`intro intro-${className}`} key={page}>{children}</Frame>
@@ -278,8 +281,8 @@ const intro: Template = {
frame(0, 'cover', <>
{head(c.t1)}{sub(c.s1)}
<div className="intro-cover-stage" aria-hidden="true" />
<img className="intro-character rabbit" src={iconUrl('rabbit')} alt="" />
<img className="intro-character bear" src={iconUrl('bear')} alt="" />
<img className="intro-character rabbit" src={bosong} alt="" />
<img className="intro-character bear" src={malang} alt="" />
<p className="intro-turn">넘겨 보세요 →</p>
</>),
frame(1, 'problem', <>
@@ -297,7 +300,18 @@ const intro: Template = {
</div>
{sub(c.s3)}
</>),
frame(3, 'home', <>{head(c.t4)}{sub(c.s4)}{phone(shotHome, 'home')}</>),
frame(3, 'home', <>
{head(c.t4)}{sub(c.s4)}
{stage(stillDay, 'home', (
<ol className="intro-rank">
{[['한강각', 84, 'hangang'], ['드라이브각', 82, 'drive'], ['산책각', 79, 'walk']].map(([n, v, ic], i) => (
<li key={n}><em>{i + 1}위</em><img src={iconUrl(String(ic))} alt="" /><span>{n}</span><b>{v}</b></li>
))}
</ol>
))}
{chars}
<p className="intro-note">10.24 서울 중구 · 실제 점수</p>
</>),
frame(4, 'kinds', <>
{head(c.t5)}
<div className="intro-gak-grid">
@@ -308,18 +322,30 @@ const intro: Template = {
</div>
{sub(c.s5)}
</>),
frame(5, 'sky', <>{head(c.t6)}{sub(c.s6)}{phone(shotSky, 'sky')}</>),
frame(5, 'sky', <>
{head(c.t6)}{sub(c.s6)}
{stage(stillSunset, 'sky', (
<div className="intro-chips">
<span><img src={iconUrl('sunset')} alt="" />노을 피크 18:04</span>
<span>골든아워 17:08 ~ 17:44</span>
</div>
))}
{chars}
<p className="intro-note">10.24 서울 마포구 기준</p>
</>),
frame(6, 'more', <>
{head(c.t7)}{sub(c.s7)}
<div className="intro-more-icons" aria-hidden="true"><img src={iconUrl('maple')} alt="" /><img src={iconUrl('camping')} alt="" /><img src={iconUrl('walk')} alt="" /></div>
{phone(shotWeek, 'week')}
<ul className="intro-features">
<li><img src={iconUrl('party')} alt="" /><b>주말 행사</b><span>이번 주말 가까운 축제</span></li>
<li><img src={iconUrl('maple')} alt="" /><b>단풍·계절</b><span>절정 시기와 계절 상식</span></li>
<li><img src={iconUrl('letter')} alt="" /><b>동네 이야기</b><span>우리 동네 날씨 한마디</span></li>
</ul>
<p className="intro-note"><Lines text={tidy(c.n7)} /></p>
</>),
frame(7, 'cta', <>
{head(c.t8)}{sub(c.s8)}
{phone(shotGak, 'gak')}
<img className="intro-character rabbit" src={iconUrl('rabbit')} alt="" />
<img className="intro-character bear" src={iconUrl('bear')} alt="" />
{stage(stillNight, 'cta', <img className="intro-app" src="/apple-touch-icon.png" alt="" />)}
{chars}
<p className="intro-note"><Lines text={tidy(c.n8)} /></p>
</>),
]