From eaa0ede2ec99a7afd140543bddbb5e4bcc6c2a01 Mon Sep 17 00:00:00 2001 From: WonderAliceUwU Date: Wed, 8 Jul 2026 17:06:32 +0200 Subject: [PATCH] feature: add calendar --- server/index.ts | 7 ++ server/lib/services.ts | 258 ++++++++++++++++++++++++++++++++++++++++- shared/contracts.ts | 18 +++ src/App.tsx | 167 ++++++++++++++++++++++++-- src/api.ts | 2 + src/index.css | 181 +++++++++++++++++++++++++++++ 6 files changed, 621 insertions(+), 12 deletions(-) diff --git a/server/index.ts b/server/index.ts index f614c74..a4596fb 100644 --- a/server/index.ts +++ b/server/index.ts @@ -14,6 +14,7 @@ import { import { decryptJson, deriveEncryptionKey, encryptJson, randomToken, verifyPassword, createPasswordRecord } from './lib/security.js'; import { loadState, readAdmin, readEncryptedConfig, saveAdminAndConfig, updateEncryptedConfig } from './lib/store.js'; import { + getCalendar, getConnectionStatuses, getDashboard, getDownloads, @@ -230,6 +231,12 @@ async function routeRequest(request: IncomingMessage, response: ServerResponse): return; } + if (url.pathname === '/api/calendar' && method === 'GET') { + const config = await readConfig(session!.encryptionKey); + sendJson(response, 200, await getCalendar(config)); + return; + } + if (url.pathname === '/api/title-details' && method === 'POST') { const config = await readConfig(session!.encryptionKey); const body = await readJson(request); diff --git a/server/lib/services.ts b/server/lib/services.ts index 6aa0fe2..c6488bd 100644 --- a/server/lib/services.ts +++ b/server/lib/services.ts @@ -1,5 +1,7 @@ import type { AppConfig, + CalendarEntry, + CalendarResponse, ConnectionStatus, DashboardResponse, DownloadItem, @@ -76,6 +78,25 @@ interface SonarrCommandRecord { }; } +interface SonarrCalendarRecord { + id?: number; + title?: string; + airDate?: string; + airDateUtc?: string; + overview?: string; + seasonNumber?: number; + episodeNumber?: number; + hasFile?: boolean; + monitored?: boolean; + series?: { + title?: string; + tmdbId?: number; + images?: Array<{ coverType?: string; remoteUrl?: string; url?: string }>; + year?: number; + status?: string; + }; +} + interface RadarrQueueRecord { id?: number; title?: string; @@ -87,6 +108,21 @@ interface RadarrQueueRecord { timeleft?: string; } +interface RadarrCalendarRecord { + id?: number; + tmdbId?: number; + title?: string; + year?: number; + overview?: string; + status?: string; + inCinemas?: string; + physicalRelease?: string; + digitalRelease?: string; + monitored?: boolean; + hasFile?: boolean; + images?: Array<{ coverType?: string; remoteUrl?: string; url?: string }>; +} + interface DownloadMetadataHint { query: string; mediaType: 'movie' | 'tv'; @@ -333,10 +369,11 @@ export async function getHubPage( 'en' ) ]); + const heroWithLogos = await applyTitleLogosToCards(config, heroWithHighResBackdrops || []); return { page, - hero: heroWithHighResBackdrops || [], + hero: heroWithLogos, continueWatching, sections: (sectionsWithHighResBackdrops || []) .filter((section) => section.items.some((item) => item.backdropUrl || item.posterUrl)) @@ -404,6 +441,46 @@ export async function getDownloads(config: AppConfig): Promise { return downloads.sort((a, b) => b.progress - a.progress); } +export async function getCalendar(config: AppConfig): Promise { + const start = startOfToday() + const end = addDays(start, 30) + + const [sonarrResult, radarrResult] = await Promise.allSettled([ + getSonarrCalendar(config, start, end), + getRadarrCalendar(config, start, end) + ]) + + const sonarrItems = sonarrResult.status === 'fulfilled' + ? sonarrResult.value.map((item) => mapSonarrCalendarEntry(item)) + : [] + const radarrItems = radarrResult.status === 'fulfilled' + ? radarrResult.value.map((item) => mapRadarrCalendarEntry(item)) + : [] + + const allItems = [...sonarrItems, ...radarrItems] + .filter((item): item is CalendarEntry => Boolean(item)); + + const backdropCache = new Map>(); + const cards = await applyHighResBackdropsToCards(config, allItems.map(i => i.card), shouldUseHighResBackdropForCard, backdropCache, 'en'); + + const itemsWithBackdrops = allItems.map(item => { + const correspondingCard = cards.find(c => c.id === item.card.id); + if (correspondingCard && correspondingCard.backdropUrl) { + return { + ...item, + imageUrl: correspondingCard.backdropUrl, + card: correspondingCard + } + } + return item; + }); + + return { + items: itemsWithBackdrops + .sort((left, right) => new Date(left.startsAt).getTime() - new Date(right.startsAt).getTime()) + } +} + export async function removeDownload(config: AppConfig, id: string): Promise { const [source, rawId] = id.split('-', 2); if (!source || !rawId) { @@ -735,6 +812,106 @@ function extractRemoteImage( return poster?.remoteUrl || poster?.url || undefined; } +function mapSonarrCalendarEntry(item: SonarrCalendarRecord): CalendarEntry | null { + const startsAt = item.airDateUtc || item.airDate + const seriesTitle = item.series?.title || '' + const tmdbId = Number(item.series?.tmdbId) || undefined + + if (!startsAt || !seriesTitle) { + return null + } + + const seasonNumber = typeof item.seasonNumber === 'number' ? item.seasonNumber : undefined + const episodeNumber = typeof item.episodeNumber === 'number' ? item.episodeNumber : undefined + const episodeCode = seasonNumber && episodeNumber + ? `S${String(seasonNumber).padStart(2, '0')}E${String(episodeNumber).padStart(2, '0')}` + : '' + const detail = item.title || '' + const subtitle = [ + typeof seasonNumber === 'number' ? `Season ${seasonNumber}` : '', + typeof episodeNumber === 'number' ? `Episode ${episodeNumber}` : '', + ].filter(Boolean).join(' ยท ') + + return { + id: `sonarr-calendar-${item.id || `${seriesTitle}-${startsAt}`}`, + source: 'sonarr', + kind: 'episode', + startsAt, + title: seriesTitle, + subtitle: subtitle || 'Upcoming episode', + detail: detail || 'Upcoming episode', + imageUrl: extractRemoteImage(item.series?.images), + stateLabel: item.hasFile ? 'Available' : item.monitored ? 'Upcoming' : 'Unmonitored', + card: { + id: `calendar-series-${tmdbId || item.id || seriesTitle}`, + tmdbId, + title: seriesTitle, + subtitle: subtitle || detail || 'Series', + overview: item.overview || '', + mediaType: 'series', + posterUrl: extractRemoteImage(item.series?.images) || '', + backdropUrl: extractRemoteImage(item.series?.images) || '', + badge: 'Sonarr', + actionLabel: 'Series details', + releaseDate: item.airDate, + firstAirDate: item.airDate, + mediaStatus: item.series?.status, + } + } +} + +function mapRadarrCalendarEntry(item: RadarrCalendarRecord): CalendarEntry | null { + const startsAt = item.physicalRelease || item.digitalRelease || item.inCinemas + if (!startsAt || !item.title) { + return null + } + + const posterUrl = extractRemoteImage(item.images) || '' + const releaseLabel = item.physicalRelease + ? 'Digital release' + : item.inCinemas + ? 'In cinemas' + : 'Release' + + return { + id: `radarr-calendar-${item.id || `${item.title}-${startsAt}`}`, + source: 'radarr', + kind: 'movie', + startsAt, + title: item.title, + subtitle: item.year ? String(item.year) : 'Movie', + detail: releaseLabel, + imageUrl: posterUrl, + stateLabel: item.hasFile ? 'Available' : item.monitored ? 'Upcoming' : 'Unmonitored', + card: { + id: `calendar-movie-${item.tmdbId || item.id || item.title}`, + tmdbId: Number(item.tmdbId) || undefined, + title: item.title, + subtitle: item.year ? String(item.year) : 'Movie', + overview: item.overview || '', + mediaType: 'movie', + posterUrl, + backdropUrl: posterUrl, + badge: 'Radarr', + actionLabel: 'Movie details', + releaseDate: startsAt, + mediaStatus: item.status, + } + } +} + +function startOfToday() { + const date = new Date() + date.setHours(0, 0, 0, 0) + return date +} + +function addDays(date: Date, amount: number) { + const next = new Date(date) + next.setDate(next.getDate() + amount) + return next +} + async function getJellyfinItemDetails(config: AppConfig, itemId: string): Promise { if (!config.jellyfin.baseUrl || !config.jellyfin.apiKey || !config.jellyfin.userId) { return null; @@ -2282,6 +2459,36 @@ async function getRadarrQueue(config: AppConfig): Promise { return response.records || []; } +async function getSonarrCalendar(config: AppConfig, start: Date, end: Date): Promise { + if (!config.sonarr.baseUrl || !config.sonarr.apiKey) { + return [] + } + + return fetchJson( + `${config.sonarr.baseUrl}/api/v3/calendar?includeSeries=true&start=${encodeURIComponent(start.toISOString())}&end=${encodeURIComponent(end.toISOString())}`, + { + headers: { + 'X-Api-Key': config.sonarr.apiKey + } + } + ) +} + +async function getRadarrCalendar(config: AppConfig, start: Date, end: Date): Promise { + if (!config.radarr.baseUrl || !config.radarr.apiKey) { + return [] + } + + return fetchJson( + `${config.radarr.baseUrl}/api/v3/calendar?start=${encodeURIComponent(start.toISOString())}&end=${encodeURIComponent(end.toISOString())}`, + { + headers: { + 'X-Api-Key': config.radarr.apiKey + } + } + ) +} + async function testJellyfin(config: AppConfig): Promise { if (!config.jellyfin.baseUrl || !config.jellyfin.apiKey) { return { @@ -2480,7 +2687,7 @@ function jellyfinToCard( overview: item.Overview || '', mediaType: item.Type === 'Movie' ? 'movie' : item.Type === 'Episode' ? 'episode' : 'series', posterUrl: `/api/assets/jellyfin/${item.Id}?kind=Primary&maxWidth=480&tag=${encodeURIComponent(posterTag)}`, - backdropUrl: `/api/assets/jellyfin/${backdropItemId}?kind=Backdrop&maxWidth=1280&tag=${encodeURIComponent(backdropTag)}`, + backdropUrl: `/api/assets/jellyfin/${backdropItemId}?kind=Backdrop&maxWidth=1920&tag=${encodeURIComponent(backdropTag)}`, badge: item.Type || 'Jellyfin', progress: progress > 0 ? progress : undefined, secondaryValue: item.UserData?.Played ? 'Watched' : undefined, @@ -2713,6 +2920,41 @@ async function applyHighResBackdropsToCards( ); } +async function applyTitleLogosToCards( + config: AppConfig, + cards: MediaCard[] +): Promise { + const logoCache = new Map>(); + + return Promise.all( + cards.map(async (card) => { + if (card.logoUrl || !card.tmdbId) { + return card; + } + + const mediaType = resolveTmdbLogoMediaType(card); + if (!mediaType) { + return card; + } + + const cacheKey = `${mediaType}:${card.tmdbId}`; + let logoPromise = logoCache.get(cacheKey); + if (!logoPromise) { + logoPromise = getPreferredTitleLogo(config, card.tmdbId, mediaType); + logoCache.set(cacheKey, logoPromise); + } + + const logoUrl = await logoPromise; + return logoUrl + ? { + ...card, + logoUrl + } + : card; + }) + ); +} + function shouldUseHighResBackdropForCard(card: MediaCard): boolean { return Boolean( card.tmdbId @@ -2725,6 +2967,18 @@ function shouldUseHighResBackdropForCard(card: MediaCard): boolean { ); } +function resolveTmdbLogoMediaType(card: MediaCard): 'movie' | 'tv' | null { + if (card.mediaType === 'movie') { + return 'movie'; + } + + if (card.mediaType === 'tv' || card.mediaType === 'series' || card.mediaType === 'episode') { + return 'tv'; + } + + return null; +} + function tmdbImagesPath(tmdbId: number, mediaType: 'movie' | 'tv'): string { return `/${mediaType}/${tmdbId}/images?include_image_language=en,en-US,null`; } diff --git a/shared/contracts.ts b/shared/contracts.ts index 3d4e2ac..4446c6b 100644 --- a/shared/contracts.ts +++ b/shared/contracts.ts @@ -9,6 +9,7 @@ export type AppRoute = | 'viki' | 'disney' | 'library' + | 'calendar' | 'downloads' | 'settings'; @@ -189,6 +190,23 @@ export interface DownloadItem { mediaType?: 'movie' | 'tv' | 'series'; } +export interface CalendarEntry { + id: string; + source: 'sonarr' | 'radarr'; + kind: 'episode' | 'movie'; + startsAt: string; + title: string; + subtitle: string; + detail: string; + imageUrl?: string; + stateLabel?: string; + card: MediaCard; +} + +export interface CalendarResponse { + items: CalendarEntry[]; +} + export interface DashboardResponse { connections: ConnectionStatus[]; hero: MediaCard[]; diff --git a/src/App.tsx b/src/App.tsx index 0c59d3c..625d22c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -11,6 +11,7 @@ import { } from 'react' import { api } from './api' import { + type CalendarEntry, defaultConfig, type AppConfig, type AppRoute, @@ -35,11 +36,12 @@ const EPISODE_SCROLL_DISTANCE_RATIO = 0.72 const SEASON_DOMINANCE_SWITCH_RATIO = 0.12 const SEASON_DOMINANCE_SWITCH_MIN_PX = 56 -const sidebarItems: Array<{ route: AppRoute; label: string; short: string }> = [ +const sidebarItems: Array<{ route: AppRoute; label: string; short: string; icon?: 'calendar' }> = [ { route: 'home', label: 'Inicio', short: 'H' }, { route: 'dorama', label: 'K-Drama', short: 'K' }, { route: 'anime', label: 'Anime', short: 'A' }, { route: 'library', label: 'Library', short: 'L' }, + { route: 'calendar', label: 'Upcoming', short: 'C', icon: 'calendar' }, { route: 'downloads', label: 'Downloads', short: 'D' }, ] @@ -73,6 +75,8 @@ function App() { const [connections, setConnections] = useState([]) const [hubPages, setHubPages] = useState>>({}) const [hubLoading, setHubLoading] = useState(false) + const [calendarItems, setCalendarItems] = useState([]) + const [calendarLoading, setCalendarLoading] = useState(false) const [selectedCard, setSelectedCard] = useState(null) const [downloadDeleteId, setDownloadDeleteId] = useState('') const [entryTransitionState, setEntryTransitionState] = useState('idle') @@ -129,6 +133,22 @@ function App() { } } + async function loadCalendar(options?: { silent?: boolean }) { + if (!options?.silent) { + setCalendarLoading(true) + } + try { + const calendar = await api.getCalendar() + setCalendarItems(calendar.items) + } catch (loadError) { + setError(loadError instanceof Error ? loadError.message : 'Failed to load the calendar.') + } finally { + if (!options?.silent) { + setCalendarLoading(false) + } + } + } + useEffect(() => { let cancelled = false @@ -170,7 +190,7 @@ function App() { return } - if (route === 'downloads' || route === 'settings') { + if (route === 'downloads' || route === 'settings' || route === 'calendar') { return } @@ -197,6 +217,14 @@ function App() { } }, [authState, entryStage, route]) + useEffect(() => { + if (authState !== 'app' || entryStage !== 'dashboard' || route !== 'calendar') { + return + } + + void loadCalendar() + }, [authState, entryStage, route]) + useEffect(() => { if (authState !== 'app' || entryStage !== 'dashboard') { return @@ -204,7 +232,9 @@ function App() { const interval = window.setInterval(() => { void refreshBaseData() - if (route !== 'downloads' && route !== 'settings') { + if (route === 'calendar') { + void loadCalendar({ silent: true }) + } else if (route !== 'downloads' && route !== 'settings') { void loadHub(route as HubPageResponse['page'], { silent: true }) } }, 30000) @@ -306,7 +336,9 @@ function App() { } else { await api.requestSeries(card.tmdbId) } - if (route !== 'downloads' && route !== 'settings') { + if (route === 'calendar') { + await loadCalendar({ silent: true }) + } else if (route !== 'downloads' && route !== 'settings') { await loadHub(route as HubPageResponse['page'], { silent: true }) } setNotice(`${card.title} sent to ${card.mediaType === 'movie' ? 'Radarr' : 'Sonarr'}.`) @@ -395,7 +427,7 @@ function App() { const currentJellyfinUser = options.jellyfinUsers.find((option) => option.id === config.jellyfin.userId)?.label || 'Media cockpit' - const currentHub = route !== 'downloads' && route !== 'settings' ? hubPages[route as HubPageResponse['page']] : undefined + const currentHub = route !== 'downloads' && route !== 'settings' && route !== 'calendar' ? hubPages[route as HubPageResponse['page']] : undefined return (
@@ -416,6 +448,7 @@ function App() { {error ?

{error}

: null}
+ {route === 'calendar' ? setSelectedCard({ card, originRect: originRect ?? null })} /> : null} {route === 'downloads' ? : null} {route === 'settings' ? ( ) : null} - {route !== 'downloads' && route !== 'settings' ? ( + {route !== 'downloads' && route !== 'settings' && route !== 'calendar' ? ( startTransition(() => props.setRoute(item.route))} type="button" > - + {item.label} ))} @@ -799,11 +834,20 @@ function HeroShowcase({ hero, onOpenCard, tmdbToken }: { hero: MediaCard[]; onOp useEffect(() => { if (!featured?.tmdbId) { - setActiveLogoUrl('') + setActiveLogoUrl(featured?.logoUrl || '') return } - const mediaType = featured.mediaType === 'movie' ? 'movie' : featured.mediaType === 'tv' || featured.mediaType === 'series' ? 'tv' : '' + if (featured.logoUrl) { + setActiveLogoUrl(featured.logoUrl) + return + } + + const mediaType = featured.mediaType === 'movie' + ? 'movie' + : featured.mediaType === 'tv' || featured.mediaType === 'series' || featured.mediaType === 'episode' + ? 'tv' + : '' if (!mediaType) { setActiveLogoUrl('') return @@ -855,7 +899,7 @@ function HeroShowcase({ hero, onOpenCard, tmdbToken }: { hero: MediaCard[]; onOp return () => { cancelled = true } - }, [featured]) + }, [featured, tmdbToken]) if (!featured) { return ( @@ -1944,6 +1988,14 @@ function PlayGlyph() { ) } +function CalendarGlyph() { + return ( + + ) +} + function MenuGlyph() { return (
+
+

Upcoming

+
+
+ {groups.map((group) => ( +
+
+ {group.label} +
+
+ {group.items.map((entry) => ( + + ))} +
+
+ ))} +
+
+ ) +} + function humanizeDownloadState(state: string) { return state .replace(/([a-z])([A-Z])/g, '$1 $2') @@ -2095,6 +2207,41 @@ function humanizeDownloadState(state: string) { .replace(/\b\w/g, (match) => match.toUpperCase()) } +function groupCalendarEntries(entries: CalendarEntry[]) { + const formatter = new Intl.DateTimeFormat('en-US', { + weekday: 'long', + month: 'long', + day: 'numeric', + }) + const grouped = new Map() + + for (const entry of entries) { + const date = new Date(entry.startsAt) + const key = date.toISOString().slice(0, 10) + const current = grouped.get(key) + if (current) { + current.items.push(entry) + continue + } + grouped.set(key, { + key, + label: formatter.format(date), + items: [entry], + }) + } + + return [...grouped.values()] +} + +function formatCalendarTime(startsAt: string) { + const date = new Date(startsAt) + return new Intl.DateTimeFormat('en-US', { + hour: 'numeric', + minute: '2-digit', + hour12: false, + }).format(date) +} + function SettingsView(props: { config: AppConfig connections: ConnectionStatus[] diff --git a/src/api.ts b/src/api.ts index 820fca8..93d87f4 100644 --- a/src/api.ts +++ b/src/api.ts @@ -2,6 +2,7 @@ import type { AppConfig, AuthPayload, AuthResponse, + CalendarResponse, DashboardResponse, DownloadItem, HubPageResponse, @@ -81,6 +82,7 @@ export const api = { body: JSON.stringify(payload), }), getDashboard: () => request('/api/dashboard'), + getCalendar: () => request('/api/calendar'), getHub: (page: HubPageResponse['page']) => request(`/api/hubs/${page}`), getTitleDetails: (card: MediaCard, seasonId?: string) => request('/api/title-details', { diff --git a/src/index.css b/src/index.css index 4806f99..9576969 100644 --- a/src/index.css +++ b/src/index.css @@ -369,6 +369,12 @@ img { flex: 0 0 auto; } +.sidebar-glyph-icon { + width: 0.98rem; + height: 0.98rem; + display: block; +} + .sidebar-network-icon { overflow: hidden; padding: 0.2rem; @@ -464,6 +470,7 @@ img { } .hub-page, +.calendar-page, .downloads-page, .settings-page { display: grid; @@ -2327,11 +2334,168 @@ img { color: #c4cee0; } +.calendar-groups, .downloads-grid, .settings-page { padding: 0 1.25rem 1rem; } +.calendar-page { + gap: 1.6rem; +} + +.calendar-header { + display: grid; + gap: 0.3rem; + padding: 0 2.35rem; +} + +.calendar-header h2 { + margin: 0; + font-size: 1.35rem; + font-weight: 700; + color: #d6d8de; +} + +.calendar-header p { + margin: 0; + color: #95a2ba; +} + +.calendar-groups { + display: grid; + gap: 1.15rem; +} + +.calendar-group { + display: grid; + gap: 0.8rem; +} + +.calendar-group-header { + display: flex; + align-items: baseline; + justify-content: space-between; + gap: 1rem; + padding: 0 1.2rem; +} + +.calendar-group-header strong { + color: #eef4ff; + font-size: 1.04rem; + font-weight: 700; +} + +.calendar-group-header span { + color: #8f9ab0; + font-size: 0.82rem; + letter-spacing: 0.05em; + text-transform: uppercase; +} + +.calendar-group-list { + display: grid; + gap: 0.9rem; +} + +.calendar-entry-card { + display: grid; + grid-template-columns: 12rem minmax(0, 1fr) auto; + gap: 1rem; + align-items: center; + width: 100%; + padding: 1rem 1.1rem; + border: 1px solid rgba(255, 255, 255, 0.06); + border-radius: 1.35rem; + background: rgba(255, 255, 255, 0.045); + color: inherit; + text-align: left; +} + +.calendar-entry-time { + display: grid; + align-content: center; + justify-items: end; +} + +.calendar-entry-time span { + display: inline-flex; + align-items: center; + min-height: 2rem; + padding: 0; + border-radius: 0; + background-color: transparent; + color: #c4cee0; + font-size: 2rem; + font-weight: 700; +} + +.calendar-entry-art { + border-radius: 1rem; + overflow: hidden; + aspect-ratio: 16 / 9; + background: rgba(255, 255, 255, 0.06); +} + +.calendar-entry-art img, +.calendar-entry-art .media-fallback { + width: 100%; + height: 100%; + object-fit: cover; +} + +.calendar-entry-copy { + display: grid; + align-content: center; + gap: 0.42rem; + min-width: 0; +} + +.calendar-entry-meta { + display: flex; + flex-wrap: wrap; + gap: 0.45rem; +} + +.calendar-entry-meta span { + padding: 0.2rem 0.55rem; + border-radius: 999px; + background: rgba(255, 255, 255, 0.07); + color: #aab5ca; + font-size: 0.7rem; + font-weight: 700; + letter-spacing: 0.05em; + text-transform: uppercase; +} + +.calendar-entry-meta .calendar-entry-source.is-sonarr { + color: #8fc8ff; +} + +.calendar-entry-meta .calendar-entry-source.is-radarr { + color: #ffd27a; +} + +.calendar-entry-copy h4, +.calendar-entry-subtitle, +.calendar-entry-detail { + margin: 0; +} + +.calendar-entry-copy h4 { + color: #eef4ff; + font-size: 1.08rem; + font-weight: 700; +} + +.calendar-entry-subtitle { + color: #d9e1f0; +} + +.calendar-entry-detail { + color: #93a0b9; +} + .downloads-section { padding-bottom: 1.4rem; } @@ -2994,6 +3158,23 @@ img { .download-card { grid-template-columns: 1fr; } + + .calendar-header { + padding-left: 1.25rem; + padding-right: 1.25rem; + } + + .calendar-entry-card { + grid-template-columns: 1fr; + } + + .calendar-entry-art { + order: -1; + } + + .calendar-entry-time { + padding-top: 0; + } } @keyframes titleHeroRise {