refactor: comment out name overlay in TemplateCard and simplify submit text in FriendsPhoto
This commit is contained in:
parent
60dafdc9df
commit
ceb96d606a
|
|
@ -85,9 +85,9 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) {
|
|||
<img className="video-poster" src={template.inputExampleUrl || ``} alt="poster" />
|
||||
<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>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
) : (
|
||||
<div className="image-comparison">
|
||||
|
|
@ -98,9 +98,9 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) {
|
|||
</div>
|
||||
|
||||
{/* 模板名称悬浮 - 图片底部 */}
|
||||
<div className="name-overlay">
|
||||
{/* <div className="name-overlay">
|
||||
<span className="name-badge">✨{template.name}</span>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
// 原有的图片对比逻辑
|
||||
|
|
|
|||
|
|
@ -100,9 +100,7 @@ export default function FriendsPhoto() {
|
|||
<div className="loading-spinner" style={{ margin: 'auto' }} />
|
||||
</>
|
||||
) : (
|
||||
<div className="submit-text">
|
||||
${template?.creditCost} {t('friendsPhoto.startGenerating')}
|
||||
</div>
|
||||
<div className="submit-text">{t('friendsPhoto.startGenerating')}</div>
|
||||
)}
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue