Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add headshots index #150

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "add headshots index",
"packageName": "@acedatacloud/nexior",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 1 addition & 1 deletion src/components/headshots/task/Preview.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="preview">
<div class="left">
<el-image src="https://cdn.acedata.cloud/ahjfwi.png" class="avatar" />
<el-image src="https://cdn.acedata.cloud/isxyfw.png" class="avatar" />
</div>
<div class="main">
<div class="bot">
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/zh-CN/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
"message": "对接最新的 Luma 模型,一键生成自定义的视频,并支持灵活的视频扩展选项。",
"description": "AI 音乐章节标题"
},
"subtitle.headshots": {
"message": "对接最新的 AI 模型,一键生成自定义模板的证件照,并支持多种分格的证件照。",
"description": "AI 证件照章节标题"
},
"subtitle.comments": {
"message": "我们很高兴能够帮助这些客户,他们对我们的服务给予了很高的评价。",
"description": "客户评价章节标题"
Expand Down
35 changes: 35 additions & 0 deletions src/pages/index/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,32 @@
</el-row>
</div>
</div>
<div v-if="site?.features?.headshots?.enabled" id="headshots" class="block">
<div class="container">
<el-row>
<el-col :md="8" :xs="24" class="info">
<h2 class="title">{{ $t('index.title.headshots') }}</h2>
<p class="subtitle">{{ $t('index.subtitle.headshots') }}</p>
<el-button
type="primary"
round
class="btn-try"
@click="
$router.push({
path: '/headshots'
})
"
>
{{ $t('index.button.try') }}
</el-button>
</el-col>
<el-col :md="16" :xs="24" class="preview">
<img src="https://cdn.acedata.cloud/zlyshj.png" class="image desktop" />
<img src="https://cdn.acedata.cloud/8as0cx.png" class="image mobile" />
</el-col>
</el-row>
</div>
</div>
<div id="comments">
<div class="container">
<el-row class="mb-6">
Expand Down Expand Up @@ -324,6 +350,15 @@ export default defineComponent({
icon: 'fa-solid fa-film'
}
]
: []),
...(this.site?.features?.headshots?.enabled
? [
{
title: this.$t('index.title.headshots'),
subtitle: this.$t('index.subtitle.headshots'),
icon: 'fa-solid fa-id-card'
}
]
: [])
];
}
Expand Down
Loading