refactor: comment out name overlay in TemplateCard and simplify submit text in FriendsPhoto

This commit is contained in:
iHeyTang 2025-09-28 21:15:45 +08:00
parent 60dafdc9df
commit ceb96d606a
2 changed files with 5 additions and 7 deletions

View File

@ -85,9 +85,9 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) {
<img className="video-poster" src={template.inputExampleUrl || ``} alt="poster" /> <img className="video-poster" src={template.inputExampleUrl || ``} alt="poster" />
<video className="single-video" src={template.outputExampleUrl || ``} autoPlay muted loop style={{ objectFit: 'cover' }} controls={false} /> <video className="single-video" src={template.outputExampleUrl || ``} autoPlay muted loop style={{ objectFit: 'cover' }} controls={false} />
{/* 模板名称悬浮 - 视频底部 */} {/* 模板名称悬浮 - 视频底部 */}
<div className="name-overlay"> {/* <div className="name-overlay">
<span className="name-badge">{template.name}</span> <span className="name-badge">{template.name}</span>
</div> </div> */}
</div> </div>
) : ( ) : (
<div className="image-comparison"> <div className="image-comparison">
@ -98,9 +98,9 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) {
</div> </div>
{/* 模板名称悬浮 - 图片底部 */} {/* 模板名称悬浮 - 图片底部 */}
<div className="name-overlay"> {/* <div className="name-overlay">
<span className="name-badge">{template.name}</span> <span className="name-badge">{template.name}</span>
</div> </div> */}
</div> </div>
</div> </div>
// 原有的图片对比逻辑 // 原有的图片对比逻辑

View File

@ -100,9 +100,7 @@ export default function FriendsPhoto() {
<div className="loading-spinner" style={{ margin: 'auto' }} /> <div className="loading-spinner" style={{ margin: 'auto' }} />
</> </>
) : ( ) : (
<div className="submit-text"> <div className="submit-text">{t('friendsPhoto.startGenerating')}</div>
${template?.creditCost} {t('friendsPhoto.startGenerating')}
</div>
)} )}
</button> </button>
</div> </div>