import { format } from 'date-fns' import { Quote } from 'lucide-react' import React from 'react' import { isDark } from '../../../../utils/theme' import { DefaultLayout } from '../../../components/DefaultLayout' import { QRCodeWithAvatar } from '../../../components/QRCodeWithAvatar' import type { PosterProps } from '../../../types/ctx' import { DouyinCommentIcon, DouyinFavoriteIcon, DouyinLikeIcon, DouyinRecommendIcon, DouyinShareIcon } from '../../components/Icons' import type { DouyinRecommendListData } from './types' /** * 抖音推荐列表组件 */ export const DouyinRecommendList: React.FC> = (props) => { const dark = isDark(props.ctx) // 弥散光颜色配置 - 绿色 + 蓝色 const glowColors = dark ? { primary: 'rgba(16, 185, 129, 0.15)', // Emerald-500 (Green) secondary: 'rgba(59, 130, 246, 0.15)' // Blue-500 (Blue) } : { primary: 'rgba(34, 197, 94, 0.25)', // Green-500 secondary: 'rgba(59, 130, 246, 0.25)' // Blue-500 } return ( {/* 1. 弥散光背景层 */}
{/* 2. 杂色纹理层 */}
{/* 3. 主要内容区域 */}
{/* 左侧 */}
{/* 顶部 Branding */}
DOUYIN RECOMMEND
Push Notification
{/* 中间 */}
{/* 装饰图形 */}
{/* 装饰图形 */}
{/* 装饰图形 */}
Recommender
推荐
{props.data.recommender_username} {/* 装饰图形 */}
@{props.data.recommender_douyin_id}
刚刚推荐了这个作品
{/* 装饰线条 */}
{/* 底部 */}
{/* 装饰图形 */}
SCAN TO VIEW {format(new Date(), 'HH:mm')} {format(new Date(), 'yyyy.MM.dd')}
{/* 右侧 */}
{/* 作者信息栏 */}
Author
{props.data.author_username} 抖音号: {props.data.author_douyin_id}
发布于 {props.data.create_time.split(' ')[0]}
{/* 封面图 */}
Cover {/* 描述遮罩 */}
{/* 统计数据 */}
) } /** 统计项小组件 */ const StatItem: React.FC<{ icon: React.ComponentType<{ size?: number; className?: string; color?: string }> value: string iconColor?: string }> = ({ icon: IconComponent, value, iconColor }) => (
{value}
)